PageSourceSearch

https://www.ottohub.cn/assets/blogMeta-BvgcPzkT.js

js ottohub.cn collected 2026-10-06 13:14:40 UTC 1,549 bytes, 1 lines download raw bytes

1var e=[{value:`all`,labelKey:`blog.ageAll`},{value:`0`,labelKey:`blog.age8Plus`},{value:`1`,labelKey:`blog.age4000Plus`}];function t(e){return+(e===1||e===`1`)}function n(e){return Number(e)===1?`4000+`:`8+`}function r(e){if(Array.isArray(e))return e.filter(e=>typeof e==`string`&&e.trim().length>0);if(typeof e==`string`&&e.trim())try{let t=JSON.parse(e);if(Array.isArray(t))return t.filter(e=>typeof e==`string`&&e.trim().length>0)}catch{return e.split(/[,#]/).map(e=>e.trim()).filter(Boolean)}return[]}function i(e){let t=e.map(e=>e.trim()).filter(Boolean).slice(0,10);if(t.length!==0)return JSON.stringify(t)}var a=280;function o(e){return e?e.replace(/<[^>]+>/g,``).replace(/\s+/g,` `).trim():``}function s(e){let t=o(e);return t.length<=a?t:`${t.slice(0,a)}…`}function c(e,t){(t===`0`||t===`1`)&&e.push(`is_gore=${t}`)}function l(e){return e===`0`||e===`1`?e:`all`}function u(e){let t=e.map(e=>e.trim()).filter(Boolean).slice(0,10);if(t.length!==0)return JSON.stringify(t)}function d(e){let t=[];t.push(`search_term=${encodeURIComponent(e.searchTerm)}`),t.push(`offset=${e.offset}`),t.push(`num=${e.num}`),e.sort?.bidDesc&&t.push(`bid_desc=1`),e.sort?.viewCountDesc&&t.push(`view_count_desc=1`),e.sort?.likeCountDesc&&t.push(`like_count_desc=1`),e.sort?.favoriteCountDesc&&t.push(`favorite_count_desc=1`),e.uid?.trim()&&t.push(`uid=${encodeURIComponent(e.uid.trim())}`);let n=u(e.tags??[]);return n&&t.push(`tag=${encodeURIComponent(n)}`),c(t,e.ageFilter??`all`),t.join(`&`)}export{r as a,i as c,l as i,s as l,n,t as o,d as r,o as s,e as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.