PageSourceSearch

https://aldoah.com/assets/js/main.min.js

js aldoah.com collected 2026-09-24 13:29:50 UTC 6,745 bytes, 2 lines download raw bytes

1(()=>{document.addEventListener("DOMContentLoaded",()=>{let w=document.querySelector(".sidebar-nav"),v=document.querySelector("[data-sidebar-toggle]");w&&v&&(v.addEventListener("click",s=>{s.stopPropagation(),document.body.classList.toggle("sidebar-open")}),document.addEventListener("click",s=>{!w.contains(s.target)&&!v.contains(s.target)&&document.body.classList.remove("sidebar-open")}));let E=document.querySelectorAll(".filter-chip");E.forEach(s=>{s.addEventListener("click",()=>{E.forEach(f=>f.classList.remove("active")),s.classList.add("active")})});let S=document.getElementById("source-list"),L=document.getElementById("episode-list");if(S&&L){let s=S.querySelectorAll(".control-btn, .press-source-btn");s.forEach(f=>{f.addEventListener("click",b=>{b.preventDefault(),s.forEach(m=>m.classList.remove("active")),f.classList.add("active");let A=parseInt(f.dataset.sourceIndex,10);L.querySelectorAll(".episode-link, .press-episode-link").forEach(m=>{let _=parseInt(m.dataset.sourceIndex,10);m.classList.toggle("d-none",_!==A)})})})}});(function(){"use strict";function w(e){try{return decodeURIComponent(Array.prototype.map.call(atob(String(e||"")),function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join(""))}catch(t){try{return atob(String(e||""))}catch(r){return""}}}function v(e){return/\.m3u8(?:[?#]|$)/i.test(String(e||""))}var E=["adjump","/ad/","/ads/","/adv/","/advert","advertis","/guanggao","/gg/","/ad_","_ad.","/ad-","-ad/","/pian_tou","/piantou"];function S(e){return!!(e&&e.m3u8_ad_filter)}function L(e){return String(e&&e.m3u8_ad_keywords||"").split(",").map(function(t){return t.trim().toLowerCase()}).filter(Boolean)}function s(e,t){for(var r=0;r<t.length;r++)if(e.indexOf(t[r])!==-1)return!0;return!1}function f(e){var t=String(e||"").split("#")[0].split("?")[0],r=t.lastIndexOf("/");return(r>=0?t.slice(0,r+1):t).toLowerCase()}function b(e){var t=e.toUpperCase();return t.indexOf("#EXTINF")===0||t==="#EXT-X-DISCONTINUITY"||t.indexOf("#EXT-X-BYTERANGE")===0||t.indexOf("#EXT-X-PROGRAM-DATE-TIME")===0}function A(e){for(var t=[],r=!1,n=!1,a=0;a<e.length;a++){var u=e[a].trim();if(u==="#EXT-X-DISCONTINUITY"){if(!r||n)continue;n=!0,t.push(e[a]);continue}t.push(e[a]),u!==""&&(u.charAt(0)!=="#"&&(r=!0),n=!1)}return t}function m(e,t){if(!e||e.indexOf("#EXTM3U")===-1)return e;for(var r=e.split(/\r?\n/),n=[],a=[],u=0;u<r.length;u++){var o=r[u],i=o.trim();if(i===""){n.push({raw:o});continue}if(i.charAt(0)==="#"){b(i)?a.push(o):n.push({raw:o});continue}n.push({tags:a,uri:o,dir:f(i)}),a=[]}for(var l=0;l<a.length;l++)n.push({raw:a[l]});var c=n.filter(function(W){return W.uri!=null});if(c.length===0)return e;for(var d={},p="",x=0,M=0;M<c.length;M++){var g=c[M].dir;d[g]=(d[g]||0)+1,d[g]>x&&(x=d[g],p=g)}for(var F=x/c.length,V=E.concat(t||[]),q=0,T=[],O=0;O<n.length;O++){var y=n[O];if(y.uri==null){T.push(y);continue}var D=s(y.uri.toLowerCase(),V);if(!D&&F>=.55&&y.dir!==p&&(D=!0),D){q++;continue}T.push(y)}if(q===0)return e;for(var C=[],B=0;B<T.length;B++){var h=T[B];if(h.uri==null){C.push(h.raw);continue}for(var U=0;U<h.tags.length;U++)C.push(h.tags[U]);C.push(h.uri)}return A(C).join(`
2`)}function _(e){if(!window.Hls||!window.Hls.DefaultConfig||!window.Hls.DefaultConfig.loader)return null;var t=window.Hls.DefaultConfig.loader;function r(n){t.call(this,n)}return r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.prototype.load=function(n,a,u){var o=u.onSuccess;
2u.onSuccess=function(i,l,c,d){try{i&&typeof i.data=="string"&&i.data.indexOf("#EXTM3U")!==-1&&(i.data=m(i.data,e))}catch(p){}return o(i,l,c,d)},t.prototype.load.call(this,n,a,u)},r}function N(e){var t=String(e||"").trim();if(!t||/^(javascript|data|vbscript|file):/i.test(t))return!1;try{var r=new URL(t,window.location.href);return r.protocol==="http:"||r.protocol==="https:"}catch(n){return/^\/\//.test(t)}}function H(e,t,r){e.innerHTML="";var n=document.createElement("div");n.className="nova-player-message",n.innerHTML="<strong></strong><p></p>",n.querySelector("strong").textContent=t||"提示",n.querySelector("p").textContent=r||"",e.appendChild(n)}function I(e,t){if(!N(t)){H(e,"播放地址不可用","当前播放地址协议不受支持。");return}e.innerHTML="";var r=document.createElement("iframe");r.id="videocms",r.src=t,r.allow="autoplay; fullscreen; encrypted-media; picture-in-picture",r.allowFullscreen=!0,r.referrerPolicy="no-referrer",r.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-presentation"),e.appendChild(r)}function R(e,t,r){if(!window.Artplayer){I(e,t);return}e.innerHTML="";var n={container:e,url:t,poster:r.poster||"",volume:.75,autoplay:!1,pip:!0,screenshot:!1,setting:!0,playbackRate:!0,aspectRatio:!0,flip:!0,hotkey:!0,fullscreen:!0,fullscreenWeb:!0,mutex:!0,theme:r.theme||"#8b5cf6"};v(t)&&(n.type="m3u8",n.customType={m3u8:function(o,i){if(window.Hls&&window.Hls.isSupported()){var l={enableWorker:!0},c=r&&r.player||{};if(S(c)){var d=_(L(c));d&&(l.pLoader=d)}var p=new window.Hls(l);p.loadSource(i),p.attachMedia(o),o.art&&o.art.on&&o.art.on("destroy",function(){p.destroy()})}else o.canPlayType("application/vnd.apple.mpegurl")?o.src=i:I(e,i)}});try{var a=new window.Artplayer(n);if(r.logoText){a.layers.add({name:"site-logo",html:'<span class="nova-player-logo"></span>',style:{position:"absolute",top:"14px",right:"14px",color:"#fff",fontSize:"13px",opacity:".72"}});var u=e.querySelector(".nova-player-logo");u&&(u.textContent=r.logoText)}}catch(o){I(e,t)}}function P(e,t,r){e&&(e.style.display="none"),t.classList.remove("is-waiting-ad"),r()}function j(e,t,r){var n=document.getElementById(e.adLayerId||"player-ad-overlay");if(!n||!e.ad_enabled){r();return}if(t.classList.add("is-waiting-ad"),e.block_play){n.style.display="grid",n.innerHTML='<div class="nova-copyright"><strong>版权保护已开启</strong><p>当前站点已开启版权保护,暂不提供在线播放。</p><a href="'+(e.detailUrl||"/")+'">返回详情</a></div>';return}var a=n.querySelector("[data-player-ad-counter]"),u=n.querySelector("[data-player-ad-skip]"),o=Math.max(0,parseInt(e.ad_duration||0,10)||0),i=!1;function l(){i||(i=!0,P(n,t,r))}if(u&&u.addEventListener("click",l),o<=0){l();return}a&&(a.textContent=o);var c=window.setInterval(function(){o-=1,a&&(a.textContent=Math.max(0,o)),o<=0&&(window.clearInterval(c),l())},1e3)}function k(e){var t=document.getElementById(e.containerId);if(t){var r=e.player||{},n=w(e.episodeUrlB64||""),a=function(){if(!n){H(t,"无可用播放链接","当前集数没有有效播放地址。");return}v(n)?R(t,n,e):I(t,n)};j(r,t,a)}}window.VideoCmsPlayer={boot:k};function X(){window.__VIDEOCMS_BOOT__&&k(window.__VIDEOCMS_BOOT__)}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",X):X()})();})();

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.