// ==UserScript== // @name Adblock4limbo.[github] // @namespace https://github.com/limbopro/Adblock4limbo/raw/main/Adguard/Adblock4limbo.user.js // @version 0.4.06.19 // @license CC BY-NC-SA 4.0 // @description 毒奶去广告计划油猴版;新增导航按钮;通过 JavaScript 移除Pornhub/搜索引擎(Bing/Google)广告及内容农场结果清除/泥巴影视/低端影视(可避免PC端10秒广告倒计时)/欧乐影院/独播库/ibvio/Jable(包含M3U8文件提取)/MissAv(禁止离开激活窗口视频自动暂停播放)/禁漫天堂/紳士漫畫/91porn/哔滴影视(加速跳过视频广告/避免反查)/555电影网(o8tv)等视频网站上的视频广告和图片广告,保持界面清爽干净无打扰!其他:优化PC端未登录状态访问知乎浏览体验(动态移除登录窗口/永远不会跳转至首页登录页面); // @author limbopro // @match https://ddrk.me/* // @match https://ddys.tv/* // @match https://ddys.pro/* // @match https://ddys.art/* // @match https://ddys2.me/* // @match https://ddys.mov/* // @match https://jable.tv/* // @match https://cnys.tv/* // @match https://en.jable.tv/* // @match https://*.jable.tv/* // @match https://www.btbdys.com/* // @match https://www.bdys01.com/* // @match https://www.bdys02.com/* // @match https://www.bdys03.com/* // @match https://www.bdys10.com/* // @match https://cn.pornhub.com/* // @match https://www.pornhub.com/* // @match https://missav.com/* // @match https://91porn.com/* // @match https://91porna.com/* // @match https://www.91porn.com/* // @match https://avple.tv/* // @match https://18comic.org/* // @match https://18comic.vip/* // @match https://www.5dy5.cc/* // @match https://www.5dy6.cc/* // @match https://www.5dy7.cc/* // @match https://www.5dy8.cc/* // @match https://www.o8tv.com/* // @match https://www.555dd5.com/* // @match https://www.555dd6.com/* // @match https://www.555dd7.com/* // @match https://www.555dd8.com/* // @match https://555dyx1.com/* // @match https://555dyx3.com/* // @match https://555dyx4.com/* // @match https://555dyx5.com/* // @match https://o8tv.com/* // @match https://www.wnacg.com/* // @match https://www.wnacg.org/* // @match https://w.duboku.io/* // @match https://www.duboku.tv/* // @match https://www.libvio.com/* // @match https://www.libvio.pro/* // @match https://www.libvio.top/* // @match https://www.libvio.me/* // @match https://www.tvn.cc/* // @match https://m.tvn.cc/* // @match https://wap.tvn.cc/* // @match https://www.google.com/search* // @match https://www.google.com.hk/search* // @match https://www.bing.com/search?q=* // @match https://cn.bing.com/search?q=* // @match https://zhuanlan.zhihu.com/* // @match https://www.zhihu.com/* // @match https://www.instagram.com/* // @match https://www.nbys.tv/* // @match https://www.ttsp.tv/* // @match http://www.tz659.com/* // @match https://anime1.me/* // @match https://m.yhdmp.cc/* // @match https://m.yhdmp.com/* // @match https://m.yhpdm.com/* // @match https://www.nivod5.com/* // @match https://m.nivod5.com/* // @match https://www.nivod4.tv/* // @match https://www.nivod8.tv/* // @match https://www.nivod9.tv/* // @match https://m.nivod4.tv/* // @match https://m.nivod8.tv/* // @match https://m.nivod9.tv/* // @include https://m.nivod*.tv/* // @include https://www.nivod*.tv/* // @match https://www.javbus.com/* // @match https://cn1.91short.com/* // @match https://xiaobaotv.net/* // @match https://javday.tv/* // @match https://www.xvideos.com/* // @match https://4hu.tv/* // @match https://netflav.com/* // @match https://netflav5.com/* // @match https://filemoon.sx/* // @match https://emturbovid.com/* // @match https://netflavns1.com/* // @match https://fc2stream.tv/* // @match https://mmsw02.com/* // @match https://embedrise.com/* // @match https://mmfl02.com/* // @match https://netflavns2.com/* // @match https://supjav.com/* // @match https://hanime1.me/* // @match https://wangdoc.com/* // @match https://developer.mozilla.org/* // @match https://zh.javascript.info/* // @match https://deerchao.cn/* // @match https://gimy.ai/* // @match https://www.olevod.tv/* // @match https://www.olevod.com/* // @match https://www.olevod.one/* // @match https://t.me/* // @match https://twitter.com/* // @match https://tameikegoro.jp/* // @match https://njav.tv/* // @match https://www.ntdm9.com/* // @match https://www.novel543.com/* // @match https://m.diyibanzhu.me/* // @match https://www.javlibrary.com/* // @match https://rouman5.com/* // @exclude https://limbopro.com/* // @exclude https://limbopro.com/* // @exclude https://venus-av.com/* // @exclude https://developer.mozilla.org/ // @exclude https://www.youtube.com/* // @exclude https://www.xvideos.com/* // @require https://update.greasyfork.org/scripts/478651/Twitter%20%E7%BD%91%E9%A1%B5%E7%89%88%E5%A4%9A%E8%A7%86%E9%A2%91gif%E4%B8%8B%E8%BD%BD%5Blimbopro%5D.user.js // @icon https://www.google.com/s2/favicons?sz=64&domain=limbopro.com // @run-at document-end // @grant none // ==/UserScript== /** * --------------------------- * Author: limbopro * View: https://limbopro.com/archives/12904.html * 电报群组:https://t.me/Adblock4limbo * FAQ:https://t.me/Adblock4limbo/21 常见问题与回答 * Github:https://github.com/limbopro/Adblock4limbo * --------------------------- */ /** * 为网页增加导航按钮,将位于页面右下角呈现; * 如需取消该按钮,请将如上调用代码注释; */ daohang_build(); // 为页面增加导航按钮 // 如不要导航可注释该行代码 在代码前加两行斜杆 // // daohang_build() 就像这样 // 一些常量 /* Start */ var uBlockOrigin = { // uBlockOrigin 默认脚本 // https://github.com/uBlockOrigin/uBOL-home/tree/main/chromium/rulesets/scripting/scriptlet // uBO Lite (uBOL), a permission-less MV3 API-based content blocker. // uBOL is entirely declarative, meaning there is no need for a permanent uBOL process for the filtering to occur, and CSS/JS injection-based content filtering is performed reliably by the browser itself rather than by the extension. This means that uBOL itself does not consume CPU/memory resources while content blocking is ongoing -- uBOL's service worker process is required only when you interact with the popup panel or the option pages. // uBOL does not require broad "read/modify data" permission at install time, hence its limited capabilities out of the box compared to uBlock Origin or other content blockers requiring broad "read/modify data" permissions at install time. /*如若需同步至 https://greasyfork.org/zh-CN 则需将本常量删除; 这将导致审核不通过且脚本有被 GreasyFork 管理员 删除的风险; */ chn0abortcurrentscript: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/chn-0.abort-current-script.js", // chn-0.abort-current-script.js chn0setconstant: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/chn-0.set-constant.js", // chn-0.set-constant.js abortcurrentscript: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.abort-current-script.js", // abort-current-script abortonpropertyread: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.abort-on-property-read.js", // default.abort-on-property-read.js abortonpropertywrite: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.abort-on-property-write.js", // default.abort-on-property-write.js abortonstacktrace: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.abort-on-stack-trace.js", // abort-on-stack-trace.js addEventListenerdefuser: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.addEventListener-defuser.js", // default.addEventListener-defuser.js alertbuster: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.alert-buster.js", // default.alert-buster.js cookieremover: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.cookie-remover.js", // default.cookie-remover.js disablenewtablinks: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.disable-newtab-links.js", // default.disable-newtab-links.js evaldataprune: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.evaldata-prune.js", // default.evaldata-prune.js jsonprune: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.json-prune.js", // default.json-prune.js m3uprune: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.m3u-prune.js", // default.m3u-prune.js nanosetIntervalbooster: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.nano-setInterval-booster.js", // default.nano-setInterval-booster.js nanosetTimeoutbooster: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.nano-setTimeout-booster.js", // default.nano-setTimeout-booster.js noevalif: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.noeval-if.js", // default.noeval-if.js nofetchif: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.no-fetch-if.js", // default.no-fetch-if.js norequestAnimationFrameif: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.no-requestAnimationFrame-if.js", // default.no-requestAnimationFrame-if.js nosetIntervalif: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.no-setInterval-if.js", // default.no-setInterval-if.js nosetTimeoutif: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.no-setTimeout-if.js", // default.no-setTimeout-if.js nowebrtc: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.nowebrtc.js", // default.nowebrtc.js nowindowopenif: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.no-window-open-if.js", // default.no-window-open-if.js noxhrif: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.no-xhr-if.js", // default.no-xhr-if.js refreshdefuser: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.refresh-defuser.js", // default.refresh-defuser.js removeattr: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.remove-attr.js", // default.remove-attr.js removeclass: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.remove-class.js", // default.remove-class.js removenodetext: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.remove-node-text.js", // default.remove-node-text.js replacenodetext: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.replace-node-text.js", // default.replace-node-text.js setattr: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.set-attr.js", // default.set-attr.js setconstant: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.set-constant.js", // default.set-constant.js setcookie: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.set-cookie.js", // default.set-cookie.js setlocalstorageitem: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.set-local-storage-item.js", // set-local-storage-item.js spoofcss: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.spoof-css.js", // default.spoof-css.js trustedsetconstant: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.trusted-set-constant.js", // default.trusted-set-constant.js trustedsetcookie: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.trusted-set-cookie.js", // default.trusted-set-cookie.js windowcloseif: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.window-close-if.js", // default.window-close-if.js xmlprune: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/scripting/scriptlet/default.xml-prune.js", // default.xml-prune.js } var js_common = { crisp: 'https://limbopro.com/Adguard/crisp.js' // crisp 聊天系统 chat } var css_common = { //General element hiding rules /*如若需同步至 https://greasyfork.org/zh-CN 则需将本常量删除; 这将导致审核不通过且脚本有被 GreasyFork 管理员 删除的风险; */ gehr: "https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/CSS/Adblock4limbo.user.css" } // 暂时 third_party_fileX('link', css_common.gehr, 'head'); // 动态引入 ublcok origin 通用去广告样式; // third_party_fileX("script", js_common.crisp, "head"); // 动态引入 crisp 聊天系统; // 油猴用户(桌面浏览器用户)可通过 // 注释上述代码来禁用Crisp; // Qx/Shadrowrocket/Surge/Loon 等代理软件用户可通过添加分流来禁用Crisp;(分流类型选择 host-keyword, crisp, reject); /* End */ var imax = { js: { //functionx: "https://greasyfork.org/scripts/477474-functionx4limbo-x/code/functionx4limboX.user.js", functionx: "https://limbopro.com/Adguard/Adblock4limbo.function.js", // 全局js //duboku: "https://limbopro.com/Adguard/duboku.js", // 独播库 avple: "https://limbopro.com/Adguard/avple.js", // avple 同步至 Greasy 时需注释 contentFarm: "https://limbopro.com/Adguard/contentFarm.js", // 内容农场 //contentFarm: 'https://greasyfork.org/scripts/442253-%E5%B1%8F%E8%94%BD%E5%86%85%E5%AE%B9%E5%86%9C%E5%9C%BA-with-%E6%B2%B9%E7%8C%B4%E8%84%9A%E6%9C%AC/code/%E5%B1%8F%E8%94%BD%E5%86%85%E5%AE%B9%E5%86%9C%E5%9C%BA%EF%BC%88with%20%E6%B2%B9%E7%8C%B4%E8%84%9A%E6%9C%AC%EF%BC%89.user.js', }, css: { globalcss: "https://limbopro.com/CSS/Adblock4limbo.user.css", // 全局 libvio: ".container > .t-img-box:first-child, .hidden-log ,a[target=\"_blank\"] > .img-responsive ,.advertise ,#adsbox ,.t-img-box ,.inner-advertise ,.advertise {display: none! important;}", // libvio goole: "#tvcap,[data-text-ad] {display:none !important}", // 谷歌搜索广告 avple: "#adsbox,.asg-overlay,.jss20,.jss13,iframe,span[class*=MuiSkeleton-root],.jss16 ,.MuiSkeleton-pulse.jss12.MuiSkeleton-rect.MuiSkeleton-root,[id*=KnvW],img[src*=\".gif\"],iframe[data-width] {display: none! important;}", // avple btbdys: ".artplayer-plugin-ads, .artplayer-plugin-ads, *#ad-float, a[href*='z2py'], a[href*='dodder'], .ayx[style^=\"position\: fixed;bottom\"],#ad-index,#adsbox,.ayx[style=\"display:block;\"],.ayx[style^=\"position: fixed;bottom\"],a[target*=_new] {display:none !important;}", // 哔滴影视 switch: ".switch {display:none !important}", ddrk: "div#afc_sidebar_2842, div.cfa_popup, div[class*='popup'], #sajdhfbjwhe, #kasjbgih, #fkasjgf, img[src*='bcebos'] {opacity:0% !important; pointer-events: none !important; height: 0px !important}", jable: "body {overflow-x:hidden;} div.site-content {overflow-x:hidden!important;} div.text-center > a[target=_blank], li[class*='nav-item'] > a[target=_blank], div.asg-interstitial, div.asg-interstitial__mask, iframe, div[class*=\"exo\"], .exo-native-widget-outer-container, a[href*=\"trwl1\"], div[data-width=\"300\"], div.text-center.mb-e-30, div[data-width*=\"300\"], div[style*=\"300px\"], section[class*=\"justify\"], iframe[width=\"728\"][height=\"90\"], #site-content > div.container > section.pb-3.pb-e-lg-40.text-center, a[href*=\"\?banner=\"],[class*=\"root--\"],.badge,a[href=\"http\:\/\/uus52\.com/\"] {display :none !important; pointer-events: none !important;}", // Jable.tv test: "*, div,img {display: none !important}", tvn: "img[src*='gif'], iframe {display:none !important; pointer-events:none important;}", comic_18: "div.div2_sticky2, p > a[target=_blank], div.modal-body > a[target=_blank], li[class*='pop'] > a[target=_blank], li[class*='top'] > a[target=_blank], .modal-backdrop,[data-height*='90'],div[data-height='250'][data-width='300'],a[href^='http']:not([href*='18comic.']) > img ,#adsbox ,a[target='_blank'][rel*='nofollow'] > img[src*='.gif'] ,#guide-modal ,iframe[width='300'][height='250'] ,.modal-body > ul.pop-list,.adsbyexoclick,div[data-group^='skyscraper_'],.bot-per,.top-a2db,a[href*='.taobao.com'],div[data-height='264'][data-width='956'],div[style^='position: fixed; top:'],.bot-per.visible-xs.visible-sm {display: none !important; pointer-events: none !important;}", // 555电影网 dy555: "div.module {z-index:1!important} div.popup.popup-tips.none.popupShow, a[target=\"_blank\"] img,.playtop.col-pd,a[href*=\"?channelCode=\"] > img[src*=\".com:\"],#adsbox,div.myui-panel.myui-panel-bg.clearfix.wapad {display:none !important}", // 555影院 wnacg: "div > img[src*='gif'],div.sh,div > a[target='_blank'] > img {display:none !important}", // 绅士漫画 missav: "a[href*='bit.ly'][target=_blank], a[href*='/vip'],img[src*='.gif'], iframe,#a[href*='//bit.ly/'],div[style*='z-index: 1001'],ul.space-y-2.mb-4.ml-4.list-disc.text-nord14,div.space-y-5.mb-5,div.under_player,div[style=\"width: 300px; height: 250px;\"] {display:none !important; pointer-events:none important;} body{overflow-x:hidden;}", // MissAV porna91: "a[href*='cloudfront'], div.filters, div.filters > div#videobox, div.row > div.col.col-24 { min-height: 0px !important; display:none !important; pointer-events: none !important;}", // 91porna porn91: "br, .ad_img,img[class*=\"ad_img\"], iframe[src*=\"ads\"], img[href*='.gif'] {display:none !important; pointer-events: none !important;}", // 91porn zhihuAds: "div.css-1izy64v,[class='Card AppBanner'],.Footer,.Banner-link,div.Pc-word {display:none !important; pointer-events: none !important;}", pornhubx: ".topAdContainter, a[href*='ads'], div.adContainer.clearfix.noBottom, .adContainer.clearfix.middleVideoAdContainer, div.adContainer.clearfix.noBottom, a[href*='fuck'][target='_blank'], [data-href][target='_blank'],iframe, a.ad#link, #header.hasAdAlert {grid-template-rows:60px 40px 0px !important} div.hd.clear, div > img[data-title][srcset], #js-networkBar,div#abAlert, .adsbytrafficjunky, #pb_template, .sponsor-text, #adsbox, .abAlertShown, .abAlertInner, #main-container > .abovePlayer, [rel*='noopener nofollow'],a[href^=\"http://ads.trafficjunky.net/\"], .topAdContainter,.adsbytrafficjunky,.ad-link {height:0px !important; display:none !important; pointer-events:none;}", // pornhub instagram: "div._aagw {display:none !important}", // 网页版Instagram不能复制图片的问题 ttsp: "div#playad1,a[href*=\"8616.tech\"],.play_list_adbox,#adsbox,.ads_all > .ads_w,.ads_box,.right_ads {display:none !important}", tz659: "figure, img[src*='mt2.jpg'],img[src*='pf.gif'],[src*='.gif'], iframe {display:none !important}", anime: "div[id*=ad] {display:none !important}", yhdmp: ".yrtjbmnk_b, .hvitsutz_b {display :none !important; pointer-events: none !important;}", // 樱花动漫 //nivod: "[style='text-align: center; margin-top: 30px;'], iframe, img[src*=gif], .video-ad, .nav-ads, #adDiv, .v-ad, .ad-text, #video-container + ul[style^=\"width:\"] > li > img {display: none !important; pointer-events:none important;}", // 泥巴影视视频左上角水印贴片 nivod nivod: "img[src*='1a732eeb1adb'], img[src*='49e8abd32d13'], span[style*='1a2d'],span[style*='0891'],[style='text-align: center; margin-top: 30px;'],.qy20-h-carousel__li:nth-child(-n+2), .qy20-h-carousel__li:nth-child(-1n+2), span[style*='d92ea585-0'],span[style*='3db8c0fd-218f-491f-b2b0-2057bd401a2d'], iframe, img[src*=gif], .video-ad, .nav-ads, #adDiv, .v-ad, .ad-text, #video-container + ul[style^=\"width:\"] > li > img {display: none !important; pointer-events:none important;}", // 泥巴影视视频左上角水印贴片 nivod _91short: "a[href*=lhiefl], a[href*=lol], div.shortcuts-mobile-overlay,div.xtbhkpvx_b,a[href*=cpa],img[src*=gif],#adsbox, div.adm {display:none !important; pointer-events: none !important;}", xiaobaotv: "", cnys: "div#player_pause, e#time_ad, div.vod-gg, img[src*='b02.gif'], #adsbox, #ADtip, .ec-ad {display:none !important; pointer-events: none !important;}", google: "div.XDZKBc,.jnyxRd.TpRPV {display:none !important}", javday: "p[style], p > a {display:none !important; pointer-events: none !important;} ", xvideos: "#video-sponsor-links,.videoad-title,.remove-ads-link,.remove-ads,.exo-ad-ins-container,.adsbyexoclick,#video-ad,#ad-footer,.videoad-title {display:none !important; pointer-events: none !important;}", // xvideos javbus: ".ad-item,.ad-box {display:none !important}", _4hu: "#adsbox,.wrap + #midBox ,.wrap + #btmBox,script[src=\"/static/base.js\"] + #couplet ,.search + #midBox,.mod.clearfix,dl#randomBox,dl#listwoBox ,body[ontouchstart] > #topBox, .wrap + #midBox, .wrap + #btmBox, .clearfix.col5.row > #listBox {opacity:0% !important; pointer-events: none !important; height: 0px !important}", // {opacity:0% !important; pointer-events: none !important; height: 0px !important} netflav: "iframe[src*=xlv],.ads_video_overlay_mobile, div.widget-container, a[href*=\"register\"][target=\"_blank\"],div.ads_video_close_button,div.ads_video_overlay_mobile,div.footer_root,div.ads_head_banner_container {display:none !important;}", supjav: "
,
,