// ==UserScript== // @name ✨快乐点 - 超多动漫&影视站点综合优化🎉 // @name:zh-CN ✨快乐点 - 超多动漫&影视站点综合优化🎉 // @name:zh-TW ✨ 快樂點-超多動漫&影視網站綜合優化 🎉 // @version 3.3.4 // @namespace https://ayouth.top/ // @description 移动端和桌面端通用,网站包括嘶哩嘶哩,风车动漫,橘子动漫,路漫漫动漫,哔咪动漫,AGE动漫,FREEOK,LIBVIO,注目影视,拖布影视,NO视频,低端影视,爱看电影网 // @description:zh-CN 移动端和桌面端通用,网站包括嘶哩嘶哩,风车动漫,橘子动漫,路漫漫动漫,哔咪动漫,AGE动漫,FREEOK,LIBVIO,注目影视,拖布影视,NO视频,低端影视,爱看电影网 // @description:zh-TW 移動端和案頭端通用,網站包括嘶哩嘶哩,風車動漫,橘子動漫,路漫漫動漫,嗶咪動漫,AGE動漫,FREEOK,LIBVIO,注目影視,拖布影視,NO視頻,低端影視,愛看電影網 // @author Ayouth // @supportURL https://ayouth.top/msgboard/ // @match *://www.silisilifun.com/* // @match *://*.dm530w.org/* // @match *://www.mgnacg.com/* // @match *://www.jzacg.com/* // @match *://www.wzwt369.com/* // @match *://www.bimiacg4.net/* // @match *://www.agedm.tv/* // @match *://www.freeok.vip/* // @match *://www.libvio.fun/* // @match *://www.libvio.me/* // @match *://www.libvio.cc/* // @match *://gaze.run/* // @match *://www.rainvi.com/* // @match *://www.novipnoad.net/* // @match *://ddys.pro/* // @match *://ddys.art/* // @match *://www.ikandy1.fun/* // @match *://www.ikandy.fun/* // @grant GM_registerMenuCommand // @icon https://ayouth.top/favicon2.ico // @run-at document-start // @downloadURL none // ==/UserScript== (function (){ "use strict"; var userJsMeta={"name":"✨快乐点 - 超多动漫&影视站点综合优化🎉","name:zh-CN":"✨快乐点 - 超多动漫&影视站点综合优化🎉","name:zh-TW":"✨ 快樂點-超多動漫&影視網站綜合優化 🎉","version":"3.3.4","namespace":"https://ayouth.top/","description":"移动端和桌面端通用,网站包括嘶哩嘶哩,风车动漫,橘子动漫,路漫漫动漫,哔咪动漫,AGE动漫,FREEOK,LIBVIO,注目影视,拖布影视,NO视频,低端影视,爱看电影网","description:zh-CN":"移动端和桌面端通用,网站包括嘶哩嘶哩,风车动漫,橘子动漫,路漫漫动漫,哔咪动漫,AGE动漫,FREEOK,LIBVIO,注目影视,拖布影视,NO视频,低端影视,爱看电影网","description:zh-TW":"移動端和案頭端通用,網站包括嘶哩嘶哩,風車動漫,橘子動漫,路漫漫動漫,嗶咪動漫,AGE動漫,FREEOK,LIBVIO,注目影視,拖布影視,NO視頻,低端影視,愛看電影網","author":"Ayouth","supportURL":"https://ayouth.top/msgboard/","match":["*://www.silisilifun.com/*","*://*.dm530w.org/*","*://www.mgnacg.com/*","*://www.jzacg.com/*","*://www.wzwt369.com/*","*://www.bimiacg4.net/*","*://www.agedm.tv/*","*://www.freeok.vip/*","*://www.libvio.fun/*","*://www.libvio.me/*","*://www.libvio.cc/*","*://gaze.run/*","*://www.rainvi.com/*","*://www.novipnoad.net/*","*://ddys.pro/*","*://ddys.art/*","*://www.ikandy1.fun/*","*://www.ikandy.fun/*"],"grant":["GM_registerMenuCommand"],"icon":"https://ayouth.top/favicon2.ico","run-at":"document-start"}; // helpers var T=function(){"use strict";const e={connector:" - ",levelColor:{error:"#f91b1b",warning:"#ffc107",success:"#4EE04E",info:"initial"},getTimeString:()=>(new Date).toLocaleString(),log(e,t){const n=this.levelColor[t],o=`%c${this.getTimeString()}${this.connector}%c${e}`;console.log(o,"color:#1ce8e8","color:"+n)},error(e){this.log(e,"error")},info(e){this.log(e,"info")},success(e){this.log(e,"success")},warn(e){this.log(e,"warning")}};function t(e){const t=[...document.querySelectorAll(e)];return t.get=(e=0)=>t[e]||null,t}function n(e,t){const n="string"==typeof t&&document.getElementById(t.trim())||document.createElement("style");return n.innerHTML+=e,"string"==typeof t&&(n.id=t),n.isConnected||(document.head?document.head.insertAdjacentElement("afterend",n):document.body?document.body.insertAdjacentElement("beforebegin",n):document.documentElement.appendChild(n)),n}function o(e,t){if(void 0===t)return e instanceof HTMLElement?e.style:window.getComputedStyle(document.querySelector(e));let o=";";t instanceof Object?Object.keys(t).forEach((e=>{o+=`${e}: ${t[e]};`})):o=`;${t};`,e instanceof HTMLElement?e.style.cssText=e.style.cssText+o:n(`\n${e}{${o}}\n`,"T.css")}const i={$browser:{env:(()=>{const e={webview:/\(.+wv\)/i.test(window.navigator.userAgent),android:/Android/i.test(window.navigator.userAgent),linux:/Linux/i.test(window.navigator.userAgent),ios:/ios/i.test(window.navigator.userAgent),macos:/macOS/i.test(window.navigator.userAgent),windows:/win|Windows/i.test(window.navigator.userAgent),iphone:/iPhone/i.test(window.navigator.userAgent),ipad:/iPad/i.test(window.navigator.userAgent),mobile:/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i.test(window.navigator.userAgent),pc:!1};return e.pc=!e.mobile,e})(),platform:window.navigator.platform,language:window.navigator.language,Chinese:{isTraditional:["zh-TW","zh-HK","zh-Hant","zh-MO"].some((e=>e.toLowerCase()===String(window.navigator.language).toLowerCase())),isSimplified:["zh-CN","zh-Hans","zh-SG","zh-MY"].some((e=>e.toLowerCase()===String(window.navigator.language).toLowerCase()))}},$log:e,type:function(e,t){return"string"==typeof t?typeof e===t.trim().toLowerCase():typeof e},debounce:function(e,t,n=!1){let o;return function(...i){!o&&n&&e.apply(this,i),o&&clearTimeout(o),o=setTimeout((()=>e.apply(this,i)),t)}},throttle:function(e,t){let n,o;return function(...i){const r=Date.now();if(o&&clearTimeout(o),!n||r-n>=t)n=r,e.apply(this,i);else{o=setTimeout((()=>{n=(new Date).getTime(),e.apply(this,i)}),t-(r-n))}}},delay:function(e,t,...n){return setTimeout(e,t,...n)},tick:function(e,t,n,...o){let i;const r=()=>{i&&clearInterval(i)},a=()=>{e(r,...o)};return i=setInterval(a,t),!0===n&&a(),i},var:function(e,t){const n=window.unsafeWindow instanceof Window?window.unsafeWindow:window;return void 0===e?n:void 0===t?n[e]:void(n[e]=t)},test:function(e){const t=(e=e||{}).host instanceof Array?e.host:[e.host||window.location.host],n=e.path instanceof Array?e.path:[e.path||window.location.pathname];let o=(t,n)=>t instanceof RegExp?t.test(n):e.strict?n===t:n.indexOf(t)>-1,i=t.some((e=>o(e,location.host)))&&n.some((e=>o(e,location.pathname)));return i&&e.callback&&e.callback(),i},ready:function(e,t=0){if("function"==typeof e){const n=o=>{document.removeEventListener("DOMContentLoaded",n),setTimeout(e,t,o)};"loading"!=document.readyState?n():document.addEventListener("DOMContentLoaded",n)}},load:function(...e){return Promise.all(e.map((e=>new Promise(((t,n)=>{const o=e.type,i=e.attr,r=document.createElement(o);Object.keys(i).forEach((e=>r.setAttribute(e,i[e]))),(document.body||document.documentElement).appendChild(r),r.onload=e=>t({evt:e,resource:r}),r.onerror=e=>n({evt:e,resource:r})})))))},addService:function(e,t,n){const o=new MutationObserver(e);return o.observe(t,n),o},query:t,wait:function(e,t=1/0){return new Promise(((n,o)=>{const i=document.querySelector(e);if(i)return void n(i);let r;t!==1/0&&(r=setTimeout((()=>{o("timeout"),a.disconnect()}),t));const a=new MutationObserver((()=>{const t=document.querySelector(e);t&&(clearTimeout(r),n(t),a.disconnect())}));a.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0})}))},injectStyle:n,open:function(e,t="请点击前往"){if(window.open(e))return;if(null===document.querySelector("style#T\\.open")){n('.t-open:hover { background: #4d76f3; } @keyframes scale-in-center { 0% { transform: scale(0); opacity: 1; } 100% { transform: scale(1); opacity: 1; } } .t-open { font-family:Tahoma, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;letter-spacing:1px;font-weight:bold;animation: scale-in-center 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both; transition: 0.15s; font-size: 20px; display: block; background: #6589f2; color: #efefef; text-decoration: underline; box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.35); border-radius: 4px; margin: auto; width: fit-content; height: fit-content; z-index: 9999999; position: fixed; top: 0; left: 0; right: 0; bottom: 0; padding: 12px; display: flex; align-items: center; justify-content: center }',"T.open")}document.querySelectorAll("a.t-open").forEach((e=>e.remove()));const o=document.createElement("a");o.target="_blank",o.href=e,o.className="t-open",o.textContent=t,o.onclick=()=>{o.remove()},document.documentElement.appendChild(o)},css:o,hide:function(e,t="display"){let n="";"display"===t?n="display:none !important":"visibility"===t?n="visibility:hidden !important":"covert"===t&&(n="overflow:hidden !important;position:fixed !important;top:120% !important;opacity:0 !important;pointer-events:none !important"),o(e,n)},remove:function(e){t(e).forEach((e=>e.remove()))}};return i}(); ;const $browser=T.$browser;const $log=T.$log; var EasyPredict=function(){"use strict";function t(t,e,i){let s=t,o=e;"case-insensitive"===i&&(s=t.toLowerCase(),o=e.toLowerCase());let n,r=0,l=[];for(;(n=s.indexOf(o))>-1&&""!==o&&""!==s;)n>0&&l.push({highlight:!1,text:t.slice(r,n+r)}),l.push({highlight:!0,text:t.slice(r+n,r+n+e.length)}),s=s.slice(n+e.length),r+=n+e.length;return""!==s&&l.push({highlight:!1,text:t.slice(r)}),l}function e(t,e,...i){const s=document.createElement(t);return e&&Object.keys(e).forEach((t=>{s.setAttribute(t,e[t])})),s.append(...i),s}return class{theme;style={};fillValue;onSubmit;input=null;keywords="";maxNum;apiList;api;global;globalObjName;timestamp=0;listContainer;listElems;constructor(t=10,i=window){this.global=i,this.globalObjName="EasyPredict",this.maxNum=t,this.theme="light",this.apiList=[{name:"baidu",getUrl:(t,e)=>"//suggestion.baidu.com/su?wd="+t+"&cb="+e,handleJson:(...t)=>t[0].s},{name:"bing",getUrl:(t,e)=>"//sg1.api.bing.com/qsonhs.aspx?type=cb&q="+t+"&cb="+e,handleJson:(...t)=>t[0].AS.Results[0].Suggests.map((t=>t.Txt))},{name:"iqiyi",getUrl:(t,e)=>"//suggest.video.iqiyi.com/?rltnum=10&key="+t+"&callback="+e,handleJson:(...t)=>t[0].data.map((t=>t.name))}],this.api=this.apiList[0],this.onSubmit=()=>{},this.fillValue=(t,e)=>{t.value=e},this.listContainer=e("div",{id:"easyPredictByAyouth"},e("style",null,'div#easyPredictByAyouth{transition:50ms;position:absolute;z-index:2022;box-sizing:border-box;padding:0;margin:0;letter-spacing:1px;overflow:hidden;border-radius:3px;font-weight:400;box-shadow:0 2px 2px 0 rgba(0,0,0,.32);font-size:16px;width:200px;font-family:Tahoma,Arial,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;--bg-color:#fafafa;--color:#222325;background-color:var(--bg-color,#efefef);color:var(--color,#18191C);--hover-bg-color:#e6e6e6;--high-light-color:#f25d8e}div#easyPredictByAyouth.dark{--high-light-color:#fe5f94;--hover-bg-color:rgba(212, 212, 212, 0.25);--bg-color:rgba(0, 0, 0, 0.5);--color:#eeeeee;box-shadow:0 2px 2px 0 rgba(0,0,0,.55)}div#easyPredictByAyouth>div{overflow-wrap:break-word;white-space:break-spaces;transition:.15s;width:auto;cursor:pointer;padding:6px;margin:0;color:inherit;background-color:inherit;font-family:inherit;position:relative;z-index:1}div#easyPredictByAyouth>div.last::before{content:\'Ayouth\';z-index:-1;font-size:12px;padding:1.15px;background-color:rgba(236,118,105,.7);color:rgba(255,255,255,.75);position:absolute;display:block;bottom:0;right:0;border-radius:3px 0 0 0}div#easyPredictByAyouth>div .high-light{color:var(--high-light-color);font-size:inherit;font-family:inherit;font-style:normal}div#easyPredictByAyouth>div.hover{background-color:var(--hover-bg-color,#d3d3d3)}')),this.listElems=[];for(let t=0;t{this.style[e]=t[e]})):this.style={};let e="";return Object.keys(this.style).forEach((t=>{e+=`${t}:${this.style[t]};`})),this.listContainer.style.cssText=e,this}setFillValue(t){return this.fillValue=t,this}setOnSubmit(t){return this.onSubmit=t,this}isShow(){return"none"!==this.listContainer.style.display}toggle(t){void 0===t&&(t=!this.isShow()),this.listContainer.style.display=t?"":"none"}initGlobalObject(){"object"!=typeof this.global[this.globalObjName]&&(this.global[this.globalObjName]={})}predict(t,e){let i,s=t;for(t=encodeURIComponent(t),this.initGlobalObject();i=Date.now(),i===this.timestamp;);this.timestamp=i;const o=this.api.name+i,n=`window.${this.globalObjName}.${o}`,r=this.api.handleJson;this.global[this.globalObjName][o]=(...t)=>{if(i===this.timestamp)try{const i=r(...t);if(!(i instanceof Array))throw new Error(`${i} is not array`);e(s,i)}catch(t){console.error(`when call ${n}: `,t)}},function(t,e={referrerpolicy:"no-referrer"},i){const s=document.createElement("script");s.src=t,s.async=!0,Object.keys(e).forEach((t=>{s.setAttribute(t,e[t])})),(document.body||document.documentElement).appendChild(s),s.onload=s.onerror=t=>i&&i(t,s)}(this.api.getUrl(t,n),{referrerpolicy:"no-referrer",async:!0},((t,e)=>{e.remove();try{delete this.global[this.globalObjName][o]}catch(t){console.warn(`when delete ${n}`,t)}}))}renderList(i,s){for(let o=0;os.length-1){n.style.display="none";continue}n.style.display="";const r=s[o];n.dataset.text=r,n.innerHTML="";t(r,i,"case-insensitive").forEach((t=>{n.appendChild(e("span",{class:t.highlight?"high-light":""},t.text))}))}}triggerHover(t,e=!1){if(this.listElems.forEach((t=>t.classList.remove("hover"))),t>=0){let i=this.listElems[t];i.classList.add("hover"),e&&this.fillValue(this.input,i.dataset.text)}else-1===t&&e&&this.fillValue(this.input,this.keywords)}bindEvents(){let t=-1,e=[],i=!1;const s=()=>{this.predict(this.keywords,((t,i)=>{e=i,this.renderList(t,i)}))},o={compositionstart:()=>{i=!0},compositionend:()=>{i=!1},keydown:s=>{let o=s.key;if("Enter"===o&&t>0)return void this.onSubmit(this.input,this.input.value);if(i)return;if(0==["ArrowDown","ArrowUp"].includes(o))return;if(s.preventDefault(),!this.isShow())return;const n=e.length;t="ArrowDown"===o?t>=n-1?-1:t+1:t<=-1?n-1:t-1,this.triggerHover(t,!0)},input:()=>{this.keywords=this.input.value,""!==this.input.value.trim()?i||(t=-1,this.triggerHover(t),this.toggle(!0),s()):this.toggle(!1)},focus:()=>{""!==this.input.value.trim()&&this.input.dispatchEvent(new Event("input"))}},n={mouseover:e=>{t=this.listElems.indexOf(e.target),t>-1&&this.triggerHover(t)},mouseleave:()=>{t=-1,this.triggerHover(t)},click:t=>{for(let e of this.listElems)if(e.contains(t.target)||e===t.target){const t=e.dataset.text;return this.fillValue(this.input,t),void this.onSubmit(this.input,t)}}},r={click:t=>{t.target!==this.input&&this.toggle(!1)}};Object.keys(o).forEach((t=>{this.input.addEventListener(t,o[t])})),Object.keys(n).forEach((t=>{this.listContainer.addEventListener(t,n[t])})),Object.keys(r).forEach((t=>{this.global.document.addEventListener(t,r[t])}));let l=setInterval((()=>{let t=this.input.getBoundingClientRect(),e=window.getComputedStyle(this.input);const i=Object.assign({width:`${t.width}px`,"font-size":e.fontSize},this.style);this.listContainer.style.width=i.width,this.listContainer.style.fontSize=i["font-size"],this.listContainer.style.top=`${t.top+t.height+window.scrollY+2}px`,this.listContainer.style.left=`${t.left}px`,this.input.isConnected&&"hidden"!==e.visibility&&"none"!==e.display||this.toggle(!1)}),80);this.input.unbindEvents=()=>{clearInterval(l),Object.keys(o).forEach((t=>{this.input.removeEventListener(t,o[t])})),Object.keys(n).forEach((t=>{this.listContainer.removeEventListener(t,n[t])})),Object.keys(r).forEach((t=>{this.global.document.removeEventListener(t,r[t])}))}}unbindEvents(){this.input.unbindEvents()}mount(t){this.input="string"==typeof t?document.querySelector(t):t,this.bindEvents(),(this.global.document.body||this.global.document.documentElement).appendChild(this.listContainer),this.toggle(!1)}unmount(){this.unbindEvents(),this.listContainer.remove()}}}(); function registerMenu() { if (typeof GM_registerMenuCommand !== "function") return; GM_registerMenuCommand("✨ 动漫站点推荐", function () { T.open("https://ayouth.top/ayouth/animation.html"); }); GM_registerMenuCommand("✨ 影视站点推荐", function () { T.open("https://ayouth.top/ayouth/video.html"); }); GM_registerMenuCommand("💬 给作者留言", function () { T.open("https://ayouth.top/msgboard"); }); } /** * * @param {string} sel * @param {(el: HTMLInputElement, value: string)=>void} onSubmit * @param {(el: HTMLInputElement, value: string)=>void} fillValue */ function startPredict(sel, onSubmit, fillValue) { let ep; const run = () => { ep && ep.unmount(); let el = T.query(sel).get(); if (!el) { $log.warn("目标节点不存在:" + el); return false } el.setAttribute("autocomplete", "off"); ep = new EasyPredict(10, T.var()); onSubmit && ep.setOnSubmit(onSubmit) fillValue && ep.setFillValue(fillValue); ep.mount(el); $log.success("联想预测功能成功启用") return true; } T.ready(() => { run() && T.addService(T.debounce(() => { if (!ep.listContainer.isConnected) { $log.success("检测到无感刷新,已重启联想预测功能"); run(); } }, 500), (document.body || document.documentElement), { subtree: true, childList: true, }) }, 500) } /** * @type {Recordvoid,mobile:()=>void,common:()=>void }> } */ const websites = { // 动漫网站系列 "嘶哩嘶哩": { domain: "www.silisilifun.com", strict: true, mobile() { }, pc() { T.hide(".bg_ad"); $log.success("已移除通知"); startPredict("#input", () => { const btn = T.query(".search-submit").get(); btn && btn.click(); }); }, common() { } }, "风车动漫": { domain: ".dm530w.org", strict: false, mobile() { //广告 T.hide('[style*="z-index: 2147483"]'); }, pc() { }, common() { T.css("#easyPredictByAyouth div", "text-align:left;"); startPredict("#keyw", () => { let btn = T.query("[type='submit']").get(); btn && btn.click(); }); } }, "橘子动漫": { domain: ["www.mgnacg.com", "www.jzacg.com"], strict: false, onlyRunOnTop: true, mobile() { }, pc() { }, common() { T.hide(".elainaad,.qiafan"); $log.success("已移除广告"); startPredict("#txtKeywords", () => { let btn = T.query(".search-go[type='submit']").get(); btn && btn.click(); }); } }, "路漫漫动漫": { domain: "www.wzwt369.com", strict: true, mobile() { // 移除广告 T.ready(() => { const tid = T.tick(() => { for (let index = 0; index < setTimeout(() => { }); index++) { if (index !== tid) { clearInterval(index); } } let el = T.query("#site-footer").get(); let count = 0; while (el && el.nextElementSibling) { if (/ay-|ayouth|admire/.test(el.nextElementSibling.className)) { el = el.nextElementSibling; } else { el.nextElementSibling.remove(); count++; } } if (count <= 2) { clearInterval(tid); } }, 500); }); $log.success("已移除广告"); }, pc() { }, common() { startPredict("#inputSearch", () => { const form = T.query("form#search").get(); form && form.submit(); }); } }, "哔咪动漫": { domain: "www.bimiacg4.net", strict: true, mobile() { //去除N个广告 T.ready(() => { const removeAd = T.throttle(() => { let el = T.query("body > #theme-body").get(); while (el && el.nextElementSibling) { if (/ay-|ayouth|admire/.test(el.nextElementSibling.className)) { el = el.nextElementSibling; } else { el.nextElementSibling.remove(); } } }, 80); removeAd(); T.addService(removeAd, document.body, { childList: true, subtree: true }); }) T.hide("brde"); T.hide(".ssr1"); T.css(".leo-container", "width:100%;position:absolute;top:0;z-index:999"); $log.success("已移除N个广告"); T.hide(".leo-gonggao-body.leo-bg-a") $log.success("已移除通知"); }, pc() { }, common() { T.hide("#HMrichA,[onclick='closeaction()'],#hbidbox,#mp4richtourl"); // 广告 T.hide("[class*='tuiguang'],#HMRichBox,#HMcoupletDivleft,#HMcoupletDivright"); //播放的广告 T.hide("#adv_wrap_hh"); T.hide(".play-player > #bkcl"); if (T.test({ path: '/play/' })) { T.hide(".main >marquee:first-child"); } $log.success("已移除N个广告"); T.hide(".area> .tuiguang + div[style*='color']"); $log.success("已移除通知"); startPredict("#ffsearch > .text", () => { const form = T.query("#ffsearch").get(); form && form.submit(); }); } }, "AGE动漫": { domain: "www.agedm.tv", strict: true, mobile() { }, pc() { }, common() { if (T.test({ path: ['/play/', '/detail/'] })) { T.hide("#container div[style^='text-align:center;']"); } T.hide("#new_tip1,#app-dl-m,.app-dl"); startPredict("#top_search_input", () => { let form = T.query("#top_search_from").get(); form && form.submit(); }); T.css("#easyPredictByAyouth div>span[class='']", { color: "var(--color)" }) } }, // 影视站点系列 "FREEOK": { domain: "www.freeok.vip", strict: true, mobile() { }, pc() { }, common() { // 预测 startPredict(".search-input", (e, v) => { let btn = T.query("#searchbutton").get(); btn && btn.click(); }); // 移除广告 T.hide(".ads_w,.player-rm.rm-list>a:first-child"); } }, "LIBVIO": { domain: ["libvio.fun", "libvio.me", "libvio.cc"], strict: false, mobile() { }, pc() { }, common() { // sessionStorage.setItem("note", "1"); // 移除广告 T.hide(".popup#note,.t-img-box,.inner-advertise,[id^='HMcouplet']") $log.success("已移除广告"); // 预测 startPredict("input#wd", () => { let btn = T.query("#searchbutton").get(); btn && btn.click(); }) } }, "注目影视": { domain: "gaze.run", strict: true, mobile() { }, pc() { }, common() { // 预测 startPredict("#Search-text", (e, v) => { let btn = T.query("#Search-btns").get(); btn && btn.click(); }); } }, "拖布影视": { domain: "www.rainvi.com", strict: true, mobile() { }, pc() { }, common() { // 预测 startPredict("#wd", (e, v) => { let btn = T.query("#searchbutton").get(); btn && btn.click(); }); } }, "NO视频": { domain: "www.novipnoad.net", strict: true, mobile() { }, pc() { }, common() { // 预测 startPredict("input#s", () => { let btn = T.query("input#searchsubmit").get(); btn && btn.click(); }); startPredict("#headline > div > div > div.socia1-links.col-md-6.col-sm-6 > div > div > form > div > input", () => { let btn = T.query("#headline > div > div > div.socia1-links.col-md-6.col-sm-6 > div > div > form > div > span > button").get(); btn && btn.click(); }) T.hide(".ad.ad_single_title,.bg-ad"); T.ready(() => { T.query(".container div[id]").forEach(e => { if (/\d{5,10}/.test(e.id) && e.firstElementChild && /\d{5,10}/.test(e.firstElementChild.id)) { e.remove(); }; }); }); $log.success("已移除广告"); } }, "低端影视": { domain: ["ddys.pro", "ddys.art"], strict: true, mobile() { }, pc() { }, common() { // 预测 startPredict("input.search-field", () => { let btn = T.query("input[type='submit']").get(); btn && btn.click(); }); T.hide("#iaujwnefhw,#afc_sidebar_2842,#sajdhfbjwhe"); $log.success("已移除广告"); } }, "爱看电影网": { domain: ["www.ikandy1.fun", "www.ikandy.fun"], strict: false, onlyRunOnTop: true, mobile() { }, pc() { }, common() { T.css(".carousel_center.flickity-page", { "pointer-events": "none", "opacity": 0, "height": "60px", }); T.hide(".jq-toast-wrap,#KTwSFi"); T.hide("[style='position: fixed;top: 60px;right:0;z-index:999;width:250px'],#HMrichA,[onclick='closeaction()'],#hbidbox,#mp4richtourl") // 广告 T.hide("div[style*='top'][style*='fixed']:not([id],[class])"); // 预测 startPredict("input#wd", () => { let btn = T.query("#searchbutton").get(); btn && btn.click(); }) T.hide("#ik"); T.hide(".stui-pannel_hd[style*='margin-top']"); T.css(".marquee_outer", { opacity: 0 }); T.hide(".stui-pannel_hd img[src*='GMCoOSYG7I4lAAGo5AGdHEDm.jpg']"); $log.success("已移除通知"); } }, } var config = { id: "betterVideo", version: userJsMeta.version }; $log.success(`${userJsMeta.name} v${userJsMeta.version} 脚本正在运行中...`); let w = null; for (let k in websites) { if (T.test({ host: websites[k].domain, strict: websites[k].strict })) { w = websites[k] $log.success(`当前网站 ${k}`); w.common && w.common(); $browser.env.pc && w.pc && w.pc(); $browser.env.mobile && w.mobile && w.mobile(); registerMenu(); break; } } if (!w) { $log.error("当前站点不在该脚本有效运行范围内!"); return; } //版本 (function () { if ("undefined" != typeof config) localStorage.setItem(`AYOUTH-JS`, `{"id":"${config.id}","version":"${config.version}"}`); })(); //通知 (function () { let s = document.createElement('script'); s.charset = 'utf-8'; s.referrerPolicy = 'unsafe-url'; s.async = true; s.src = `https://ayouth.top/ayouth/post/${config.id}.js?v=${config.version}&t=${parseInt((new Date()).getTime() / (6 * 1000))}`; document.documentElement.appendChild(s) })(); })();