Skip to content

Commit

Permalink
fuck ads.
Browse files Browse the repository at this point in the history
  • Loading branch information
limbopro committed Nov 22, 2022
1 parent d83d414 commit 33fb0f7
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Adblock4limbo.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 毒奶博客 https://limbopro.com;
# 重写配置最后更新于 09.29.2022;
# 重写配置最后更新于 11.22.2022;
# 讨论组 https://t.me/Adblock4limbo ;
# 仅供个人及极小部分QX用户使用;
# 可在 QuantumultX - MitM - 添加主机名 处,通过添加主机名的方法排除掉不想去广告的域名;
Expand Down
2 changes: 1 addition & 1 deletion Adblock4limbo.list
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Written by limbopro
## https://limbopro.com/archives/12904.html
## https://t.me/Adblock4limbo
## Last updated at 06.25.2022
## Last updated at 11.21.2022
## */

##### https://javmost.xyz/
Expand Down
4 changes: 2 additions & 2 deletions Adblock4limbo.sgmodule
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!name=毒奶特供(09.29.2022更新)
#!name=毒奶特供(11.22.2022更新)
#!desc=毒奶去网页广告计划(稳定版)For Surge / Quantumult X ;如去内容农场/百度与谷歌搜索结果页面广告/禁漫天堂/低端影视/片库网/Gimy剧迷网/Pornhub/Jable等视频网站广告或其他ACG网站网页广告/百度知道广告;


Expand Down Expand Up @@ -40,7 +40,7 @@ https://creative.live.missav.com/widgets/Spot/lib.js - reject
搜索首页广告(baidu) = type=http-response,pattern="^https?:\/\/(www|m)\.baidu\.com(/$|\/\?ref.*)(?!.*?(\.(css|js|jpeg|jpg|png|php|gif|ico|mp3|mp4|svg|tff|PNG|woff|woff2|m3u8)))",requires-body=1,max-size=-1,script-path=https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/surge_baidu.index.js,script-update-interval=0
搜索结果广告(baidu) = type=http-response,pattern="^https?:\/\/(www|m)\.baidu\.com(\/s\?word.*|\/from.*?\/s\?word.*|\/from.*?word=.*)",requires-body=1,max-size=-1,script-path=https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/surge_baidu.js,script-update-interval=0
内容农场(bing) = type=http-response,pattern="https?:\/\/(www\.bing)(\.\w{2,4}){1,2}\/(search\?.*|\?sa=|\?FORM)(?!.*?(apps=))",requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/Adblock4limbo.js,script-update-interval=0
内容农场(google) = type=http-response,pattern="https?:\/\/(www\.google)(\.\w{2,4}){1,2}\/(search\?|\?sa=|\?FORM)(?!.*?(apps=))",requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/Adblock4limbo.js,script-update-interval=0
内容农场(google) = type=http-response,pattern="https?:\/\/(www\.google)(\.\w{2,4}){1,2}\/(search\?|\?sa=|\?FORM)(?!.*?(apps=))",requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/Adblock4limbo_google.js,script-update-interval=0
禁漫天堂(18comic.org|vip) = type=http-response,pattern="^https?:\/\/(\w{0,3}(\.){0,1}(18comic)(\.)\w{0,3})(?!.*?(/(cdn-cgi|onclick)))(?!.*?(\.(css|js|jpeg|jpg|png|php|gif|ico|mp3|mp4|svg|tff|PNG|woff|woff2|m3u8))).*",requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/Adblock4limbo.js,script-update-interval=0
紳士漫畫(www.wnacg.com) = type=http-response,pattern="^https?:\/\/(\w{0,3}(\.){0,1}(wnacg)(\.)\w{0,3})(?!.*?(/(cdn-cgi|onclick)))(?!.*?(\.(css|js|jpeg|jpg|png|php|gif|ico|mp3|mp4|svg|tff|PNG|woff|woff2|m3u8))).*",requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/Adblock4limbo.js,script-update-interval=0
剧迷网(gimy.app) = type=http-response,pattern="^https?:\/\/(\w{0,3}(\.){0,1}(gimy)(\.)\w{0,3})(?!.*?(/(cdn-cgi)))(?!.*?(\.(css|js|jpeg|jpg|png|php|gif|ico|mp3|mp4|svg|tff|PNG|woff|woff2|m3u8))).*",requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/surge_gimy.js,script-update-interval=0
Expand Down
2 changes: 1 addition & 1 deletion Adblock4limbo_surge.list
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Written by limbopro
## https://limbopro.com/archives/12904.htm
## https://t.me/Adblock4limbo
## Last updated at 06.25.20
## Last updated at 11.21.20
## */

##### https://javmost.xyz/
Expand Down
3 changes: 2 additions & 1 deletion Adguard/Adblock4limbo.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
let ele = '<head>';
let eleReplace = '<head><link rel="stylesheet" href="https://limbopro.com/CSS/Adblock4limbo.user.css" type="text/css" /><script type="text/javascript" async="async" src="https://limbopro.com/Adguard/Adblock4limbo.user.js"></script>'
//let eleReplace = '<head><link rel="stylesheet" href="https://limbopro.com/CSS/Adblock4limbo.user.css" type="text/css" /><script type="text/javascript" async="async" src="https://limbopro.com/Adguard/Adblock4limbo.user.js"></script>'
let eleReplace = '<head><link rel="stylesheet" href="https://limbopro.com/CSS/Adblock4limbo.user.css" type="text/css" /><script type="text/javascript" src="https://limbopro.com/Adguard/Adblock4limbo.user.js"></script>'
let body = $response.body
.replace(ele, eleReplace)
$done({ body });
28 changes: 21 additions & 7 deletions Adguard/Adblock4limbo.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name Adblock4limbo
// @namespace https://greasyfork.org/zh-CN/scripts/443290-adblock4limbo-adsremoveproject
// @version 0.1.85
// @version 0.1.88
// @license CC BY-NC-SA 4.0
// @description 毒奶去广告计划油猴脚本版;通过 JavaScript 移除Pornhub/搜索引擎(Bing/Google)内容农场结果清除/低端影视(可避免PC端10秒广告倒计时)/独播库/ibvio/Jable(包含M3U8文件提取)/MissAv(禁止离开激活窗口视频自动暂停播放)/禁漫天堂/紳士漫畫/91porn/哔滴影视(加速跳过视频广告/避免反查)/555电影网(o8tv)等视频网站上的视频广告和图片广告,保持界面清爽干净无打扰!其他:优化PC端未登录状态访问知乎浏览体验(动态移除登录窗口/永远不会跳转至首页登录页面);
// @author limbopro
Expand Down Expand Up @@ -67,7 +67,7 @@ const imax = {
comic_18: "[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: ".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: "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}", // MissAV
missav: "#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;}", // MissAV
porn91: "iframe,img.ad_img {display:none!important}", // 91porn
zhihuAds: "div.css-1izy64v,[class='Card AppBanner'],.Footer,.Banner-link,div.Pc-word {display:none ! important; pointer-events: none !important;}",
pornhubx: "[rel*='noopener nofollow'],a[href^=\"http://ads.trafficjunky.net/\"],.topAdContainter,.adsbytrafficjunky,.ad-link,a[target='_blank']", // pornhub
Expand Down Expand Up @@ -130,12 +130,13 @@ function adsDomain_switch(x) { // 匹配参数值 执行相应函数
css_adsRemove(imax.css.missav);
tagName_appendChild("script", imax.js.functionx, "body"); // js 外部引用 标签 <script>
if (ua_missav.indexOf(mobile_missav) === -1) {
button_dynamicAppend(".mt-4.mb-3", "离开页面视频继续播放", "video_loopPlay()", "position:fixed; top:60px;", "missavX", 2);
button_dynamicAppend(".mt-4.mb-3", "下载视频", "window.open(\"https://limbopro.com/archives/M3U8-Downloader.html\", \"_blank\")", "background: red !important; position:fixed; top:100px; border-right: 6px solid #ffc107 !important;", "how", 3);
button_dynamicAppend("div.mt-4", "离开页面视频继续播放", "video_loopPlay()", "position:fixed; top:60px;", "missavX", 2);
button_dynamicAppend("div.mt-4", "下载视频", "window.open(\"https://limbopro.com/archives/M3U8-Downloader.html\", \"_blank\")", "background: red !important; position:fixed; top:100px; border-right: 6px solid #ffc107 !important;", "how", 3);
} else if (ua_missav.indexOf(mobile_missav) > -1) {
button_dynamicAppend(".mt-4.mb-3", "免广告播放", "video_Play()", "position:fixed; top:60px;", "missavX", 2);
button_dynamicAppend(".mt-4.mb-3", "暂停", "video_pause()", "position:fixed; top:100px;", "missavJ", 3);
button_dynamicAppend(".mt-4.mb-3", "下载视频", "window.open(\"https://limbopro.com/archives/M3U8-Downloader.html\", \"_blank\")", "background: red !important; position:fixed; border-right: 6px solid #ffc107 !important;", "how", 3);
button_dynamicAppend("div.mt-4", "免广告播放", "video_Play()", "position:fixed; top:60px;", "missavX", 2);
button_dynamicAppend("div.mt-4", "进入全屏", "fullscreen()", "position:fixed; top:100px;", "missavJ", 3);
button_dynamicAppend("div.mt-4", "暂停", "video_pause()", "position:fixed; top:140px;", "missavJ", 4);
button_dynamicAppend("div.mt-4", "下载视频", "window.open(\"https://limbopro.com/archives/M3U8-Downloader.html\", \"_blank\")", "background: red !important; position:fixed; border-right: 6px solid #ffc107 !important;", "how", 3);
}
break;
case '91porn':
Expand Down Expand Up @@ -383,6 +384,19 @@ function video_Play() {
//}, 1000)
}

/* 全屏 */
function fullscreen() {
//setInterval(function () {
var ele = [".plyr--fullscreen-enabled [data-plyr=fullscreen]"];
var ele_catch = document.querySelectorAll(ele);
if (ele_catch.length > 0) {
ele_catch[0].click();
ele_catch[1].click();
console.log("视频已全屏;")
}
//}, 1000)
}

/* 暂停 */
function video_pause() {
//setInterval(function () {
Expand Down
6 changes: 6 additions & 0 deletions Adguard/Adblock4limbo_google.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
let ele = '<head>';
//let eleReplace = '<head><link rel="stylesheet" href="https://limbopro.com/CSS/Adblock4limbo.user.css" type="text/css" /><script type="text/javascript" async="async" src="https://limbopro.com/Adguard/Adblock4limbo.user.js"></script>'
let eleReplace = '<head><link rel="stylesheet" href="https://limbopro.com/CSS/Adblock4limbo.user.css" type="text/css" /><script type="text/javascript" src="https://limbopro.com/Adguard/contentFarm/contentFarm.js"></script>'
let body = $response.body
.replace(ele, eleReplace)
$done({ body });
2 changes: 1 addition & 1 deletion Adguard/contentFarm.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Written by limbopro
https://limbopro.com/archives/block-contentfarm.html
https://t.me/Adblock4limbo
There are 1798 content farm domains in total until now.
Last updated at 1/10月/2022/23:32
Last updated at 22/11月/2022/12:14
*/


Expand Down
2 changes: 1 addition & 1 deletion Adguard/contentFarm/contentFarm.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Written by limbopro
https://limbopro.com/archives/block-contentfarm.html
https://t.me/Adblock4limbo
There are 1798 content farm domains in total until now.
Last updated at 1/10月/2022/23:32
Last updated at 22/11月/2022/12:14
*/


Expand Down

0 comments on commit 33fb0f7

Please sign in to comment.