Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
limbopro committed Jun 27, 2022
1 parent de411a1 commit 37029c9
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 21 deletions.
7 changes: 4 additions & 3 deletions Adblock4limbo.conf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# 毒奶博客 https://limbopro.com;
# 重写配置最后更新于 05.14.2022;
# 重写配置最后更新于 06.27.2022;
# 讨论组 https://t.me/Adblock4limbo ;
# 仅供个人及极小部分QX用户使用;
# 可在 QuantumultX - MitM - 添加主机名 处,通过添加主机名的方法排除掉不想去广告的域名;

hostname = *.cloudfront.net, www.o8tv.com, www.5dy*, *.tvn.cc, www.wnacg.com, www.wnacg.org, suzihaza.com, 91porn.com, netflav.com, www.javmost.xyz, javmost.xyz, www5.javmost.xyz, www5.javmost.com, www.bing.com, zhuanlan.zhihu.com, www.zhihu.com, jable.tv, *.tvn.cc, ddrk.me, 18comic.org, 18comic.vip, www.google.com, www.google.com.hk, cn.pornhub.com, missav.com, www.libvio.com, 4hu.*, *.gimy.*, *.duboku.*, assert.avple.tv, avple.tv, *.btbdys.*, *.javbus.*, www.baidu.com, m.baidu.com, zhidao.baidu.com
hostname = www.ttsp.tv, *.cloudfront.net, www.o8tv.com, www.5dy*, *.tvn.cc, www.wnacg.com, www.wnacg.org, suzihaza.com, 91porn.com, netflav.com, www.javmost.xyz, javmost.xyz, www5.javmost.xyz, www5.javmost.com, www.bing.com, zhuanlan.zhihu.com, www.zhihu.com, jable.tv, *.tvn.cc, ddrk.me, 18comic.org, 18comic.vip, www.google.com, www.google.com.hk, cn.pornhub.com, missav.com, www.libvio.com, 4hu.*, *.gimy.*, *.duboku.*, assert.avple.tv, avple.tv, *.btbdys.*, *.javbus.*, www.baidu.com, m.baidu.com, zhidao.baidu.com

#知道搜索广告(baidu)
^https?:\/\/(zhidao)\.baidu\.com\/(question|index|\?fr|\?word) url script-response-body https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/surge_baidu.zhidao.js
Expand Down Expand Up @@ -59,7 +59,8 @@ https?:\/\/[0-9a-zA-Z]{10,16}\.cloudfront\.net\/\?[a-z]{3,7}=\d{4,8} url reject
^https:\/\/cn\.pornhub\.com\/_xa\/ads.* url reject
# www.91porn.com
^https?:\/\/(\w{0,3}(\.){0,1}(91porn)(\.)\w{0,3})(?!.*?(/(cdn-cgi)))(?!.*?(\.(css|js|jpeg|jpg|png|gif|ico|mp3|mp4|svg|tff|ttf|PNG|woff|woff2|m3u8))).* url script-response-body https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/surge_91porn.js

# www.ttsp.tv
^https?:\/\/(www.ttsp.tv)(?!.*?(/(cdn-cgi)))(?!.*?(\.(css|js|jpeg|jpg|png|gif|ico|mp3|mp4|svg|tff|PNG|woff|woff2|m3u8))).* url script-response-body https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/Adblock4limbo.js

# 片库网(www.pianku.li) - 年久失修
^https?:\/\/(\w{0,3}(\.){0,1}(mypianku|pianku)(\.)\w{0,3})(?!.*?(/(cdn-cgi)))(?!.*?(\.(css|js|jpeg|jpg|png|php|gif|ico|mp3|mp4|svg|tff|PNG|woff|woff2|m3u8))).* url response-body </body> response-body <link rel="stylesheet" href="https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/CSS/mypianku.css" type="text/css"><script type="text/javascript" src="//raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/mypianku.js"></script></body>
Expand Down
6 changes: 3 additions & 3 deletions Adblock4limbo.sgmodule
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!name=毒奶特供(04.23.2022更新)
#!name=毒奶特供(06.27.2022更新)
#!desc=毒奶去网页广告计划(稳定版)For Surge / Quantumult X ;如去内容农场/百度与谷歌搜索结果页面广告/禁漫天堂/低端影视/片库网/Gimy剧迷网/Pornhub/Jable等视频网站广告或其他ACG网站网页广告/百度知道广告;


Expand Down Expand Up @@ -56,7 +56,7 @@ missav.com = type=http-response,pattern="^https?:\/\/(\w{0,3}(\.){0,1}(missav)(\
4hu.tv = type=http-response,pattern="^https?:\/\/(\w{0,3}(\.){0,1}(4hu)(\.)\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_4hu.js,script-update-interval=0
cn.pornhub.com = type=http-response,pattern="^https?:\/\/(\w{0,3}(\.){0,1}(pornhub)(\.)\w{0,3})(?!.*?(/(cdn-cgi)))(?!.*?(\.(css|js|jpeg|jpg|png|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
91porn = type=http-response,pattern="^https?:\/\/(\w{0,3}(\.){0,1}(91porn)(\.)\w{0,3})(?!.*?(/(cdn-cgi)))(?!.*?(\.(css|js|jpeg|jpg|png|gif|ico|mp3|mp4|svg|tff|ttf|PNG|woff|woff2|m3u8))).*",requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/limbopro/Adblock4limbo/main/Adguard/surge_91porn.js,script-update-interval=0

ttsp = type=http-response,pattern="^https?:\/\/(www.ttsp.tv)(?!.*?(/(cdn-cgi)))(?!.*?(\.(css|js|jpeg|jpg|png|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

[MITM]
hostname = %APPEND% *.cloudfront.net, www.o8tv.com, www.5dy*, *.tvn.cc, www.wnacg.com, www.wnacg.org, suzihaza.com, 91porn.com, netflav.com, www.javmost.xyz, javmost.xyz, www5.javmost.xyz, www5.javmost.com, www.bing.com, zhuanlan.zhihu.com, www.zhihu.com, jable.tv, *.tvn.cc, ddrk.me, 18comic.org, 18comic.vip, www.google.com, www.google.com.hk, cn.pornhub.com, missav.com, www.libvio.com, 4hu.*, *.gimy.*, *.duboku.*, assert.avple.tv, avple.tv, *.btbdys.*, *.javbus.*, www.baidu.com, m.baidu.com, zhidao.baidu.com
hostname = %APPEND% www.ttsp.tv, *.cloudfront.net, www.o8tv.com, www.5dy*, *.tvn.cc, www.wnacg.com, www.wnacg.org, suzihaza.com, 91porn.com, netflav.com, www.javmost.xyz, javmost.xyz, www5.javmost.xyz, www5.javmost.com, www.bing.com, zhuanlan.zhihu.com, www.zhihu.com, jable.tv, *.tvn.cc, ddrk.me, 18comic.org, 18comic.vip, www.google.com, www.google.com.hk, cn.pornhub.com, missav.com, www.libvio.com, 4hu.*, *.gimy.*, *.duboku.*, assert.avple.tv, avple.tv, *.btbdys.*, *.javbus.*, www.baidu.com, m.baidu.com, zhidao.baidu.com
45 changes: 32 additions & 13 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.74
// @version 0.1.78
// @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 @@ -33,6 +33,8 @@
// @match https://www.bing.com/*
// @match https://zhuanlan.zhihu.com/*
// @match https://www.zhihu.com/*
// @match https://www.instagram.com/*
// @match https://www.ttsp.tv/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=limbopro.com
// @run-at document-end
// @grant none
Expand Down Expand Up @@ -64,8 +66,10 @@ const imax = {
wnacg: "div > img[src*='gif'],div.sh,div > a[target='_blank'] > img {display:none!important}", // 绅士漫画
missav: "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
porn91: "iframe,img.ad_img {display:none!important}", // 91porn
zhihuAds: "[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
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
instagram: "div._aagw {display:none!important}",
ttsp: "div#playad1,a[href*=\"8616.tech\"],.play_list_adbox,#adsbox,.ads_all > .ads_w,.ads_box,.right_ads {display:none!important}"
}
}

Expand All @@ -90,6 +94,8 @@ function values() {
"tvn",
"www.5dy",
"o8tv",
"instagram",
"ttsp",
"zhihu"
]

Expand Down Expand Up @@ -119,10 +125,10 @@ 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(".space-y-4.my-4", "离开页面视频继续播放", "video_loopPlay()", "position:fixed; top:60px;", "missavX", 2);
button_dynamicAppend(".space-y-4.my-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);
button_dynamicAppend(".space-y-4.my-4", "离开页面视频继续播放", "video_loopPlay()", "position:fixed; top:60px;", "missavX", 2);
button_dynamicAppend(".space-y-4.my-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(".space-y-4.my-4", "下载视频", "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(".space-y-4.my-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 @@ -180,6 +186,14 @@ function adsDomain_switch(x) { // 匹配参数值 执行相应函数
css_adsRemove(imax.css.btbdys, 500);
videoAds_accelerateSkip(0.1);
hrefAttribute_set();
break;
case 'instagram':
// 解除 Instagram 桌面浏览器版禁用右键复制图片
css_adsRemove(imax.css.instagram);
break;
case 'ttsp':
css_adsRemove(imax.css.ttsp);

break;
case 'google':
js_adsRemove(imax.js.contentFarm);
Expand All @@ -196,6 +210,7 @@ function adsDomain_switch(x) { // 匹配参数值 执行相应函数
//button_dynamicAppend("header[role='banner']", "清理中! ♻️", "undefined", "position:fixed; right:0px;", zhihu_id, 3);
css_adsRemove(imax.css.zhihuAds, 100, "hloyx");
indexLogin();
addListener("div.TopNavBar-tab-d8yaD", () => { indexLogin() });

/*
window.onload = href_attributeSet(500, zhihu_id);
Expand Down Expand Up @@ -490,19 +505,23 @@ function button_dynamicRemove(selector, times) {
// 知乎循环跳转绕过登录页
function indexLogin() { // 跳转至热门话题 Explore 或 随机
let url = document.location.href;
let cssSelector = "a[href='//www.zhihu.com/'],a[href='//www.zhihu.com']";
let cssSelector = "a[href='//www.zhihu.com/'],a[href='//www.zhihu.com'],a[href='https://www.zhihu.com']";
let rewrite_url = "https://www.zhihu.com/knowledge-plan/hot-question/hot/0/hour";
let reg = /^https:\/\/www.zhihu.com\/signin/gi;
if (url.search(reg) !== -1) {
window.location = rewrite_url;
}
var ele = document.querySelectorAll(cssSelector)
if (ele.length > 0) {
let i;
for (i = 0; i < ele.length; i++) {
ele[i].href = rewrite_url;

setTimeout(() => { // 延时执行函数优化
var ele = document.querySelectorAll(cssSelector)
if (ele.length > 0) {
let i;
for (i = 0; i < ele.length; i++) {
ele[i].href = rewrite_url;
}
}
}
}, 300);

/*
var url = document.location.href;
var url_list = [
Expand Down
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 4618 content farm domains in total until now.
Last updated at 25/6月/2022/01:21
Last updated at 27/6月/2022/23:17
*/


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 4618 content farm domains in total until now.
Last updated at 25/6月/2022/01:21
Last updated at 27/6月/2022/23:17
*/


Expand Down

0 comments on commit 37029c9

Please sign in to comment.