Skip to content

Commit

Permalink
修复 Adblock4limbo.user.js 中 case:default; 匹配视频播放页引入 window_open_defuse…
Browse files Browse the repository at this point in the history
…r 函数(以打断所有弹窗)的**URL匹配**规则,不会再匹配到如哔哩哔哩、爱奇艺等没有奇怪弹窗的视频网站;油猴用户可优先安装: https://github.com/limbopro/Adblock4limbo/raw/main/Adguard/Adblock4limbo.user.js ,其内容将会与本次修复同步更新;
  • Loading branch information
limbopro committed Oct 24, 2023
1 parent 751ceff commit 26c2f16
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 39 deletions.
2 changes: 1 addition & 1 deletion Adblock4limbo.list
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
## EasyList China: 5296 Domains/IP/Others From https://raw.githubusercontent.com/easylist/easylistchina/master/easylistchina.txt
## ACL4SSR BadAD: 591 Domains/IP/Others From https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/BanAD.list
## 以上共计: 63443 Domains/IP/Others (非去重统计)
## Last updated at 25/10月/2023/00:00
## Last updated at 25/10月/2023/00:27
## */


Expand Down
2 changes: 1 addition & 1 deletion Adblock4limbo_surge.list
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
## EasyList China: 5296 Domains/IP/Others From https://raw.githubusercontent.com/easylist/easylistchina/master/easylistchina.txt
## ACL4SSR BadAD: 591 Domains/IP/Others From https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/BanAD.list
## 以上共计: 63443 Domains/IP/Others (非去重统计)
## Last updated at 25/10月/2023/00:00
## Last updated at 25/10月/2023/00:27
## */


Expand Down
33 changes: 6 additions & 27 deletions Adguard/Adblock4limbo.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -743,36 +743,15 @@ function adsDomain_switch(x) { // 匹配参数值 执行相应函数
addListener("div.TopNavBar-tab-d8yaD", () => { indexLogin() });
break;
default:

document.querySelectorAll('p').forEach((x) => {
if (x.textContent) {
// console.log(x.textContent);
if (!(x.textContent.search(/\w{3,4}\d{3,4}/i) == -1)) {
console.log(x.textContent);
}

// 修正 case 中 default 的匹配规则 10.25.203
if (/\b(netflav|missav)\b/i.test(window.location.href.toLowerCase())) {
if (document.querySelector('video')) {
abort_on_property_read('__Y');
window_open_defuser(); // 打断 window.open 施法
}
})

if (document.querySelector('video')) {
abort_on_property_read('__Y');
window_open_defuser(); // 打断 window.open 施法
}


//addEventListener_defuser();
/* Start */
//uBlockOrigin_add(); // 同步至 Greasy 时需注释
/* End */
/*
if (navigator.userAgent.indexOf("firefox") !== -1 || navigator.userAgent.indexOf("Chrome") !== -1) {
window.location.href = "about:blank";
window.close();
} else {
window.opener = null;
window.open("", "_self");
window.close();
}
*/
console.log("Catch Nothing!");
//alert('DEFAULT!CATCH!')
}
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 7166 content farm domains in total until now.
Last updated at 25/10月/2023/00:00
Last updated at 25/10月/2023/00:27
*/


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 7166 content farm domains in total until now.
Last updated at 25/10月/2023/00:00
Last updated at 25/10月/2023/00:27
*/


Expand Down
2 changes: 1 addition & 1 deletion Adguard/contentFarm/contentFarm.user.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 7166 content farm domains in total until now.
Last updated at 25/10月/2023/00:00
Last updated at 25/10月/2023/00:27
*/


Expand Down
2 changes: 1 addition & 1 deletion Adguard/contentFarm_test.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 7166 content farm domains in total until now.
Last updated at 25/10月/2023/00:00
Last updated at 25/10月/2023/00:27
*/


Expand Down
2 changes: 1 addition & 1 deletion QuantumultX/rule/Adblock4limbo.list
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
## EasyList China: 5296 Domains/IP/Others From https://raw.githubusercontent.com/easylist/easylistchina/master/easylistchina.txt
## ACL4SSR BadAD: 591 Domains/IP/Others From https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/BanAD.list
## 以上共计: 63443 Domains/IP/Others (非去重统计)
## Last updated at 25/10月/2023/00:00
## Last updated at 25/10月/2023/00:27
## */


Expand Down
2 changes: 1 addition & 1 deletion Shadowrocket/rule/Adblock4limbo.list
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
## EasyList China: 5296 Domains/IP/Others From https://raw.githubusercontent.com/easylist/easylistchina/master/easylistchina.txt
## ACL4SSR BadAD: 591 Domains/IP/Others From https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/BanAD.list
## 以上共计: 63443 Domains/IP/Others (非去重统计)
## Last updated at 25/10月/2023/00:00
## Last updated at 25/10月/2023/00:27
## */


Expand Down
2 changes: 1 addition & 1 deletion Surge/rule/Adblock4limbo_surge.list
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
## EasyList China: 5296 Domains/IP/Others From https://raw.githubusercontent.com/easylist/easylistchina/master/easylistchina.txt
## ACL4SSR BadAD: 591 Domains/IP/Others From https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/BanAD.list
## 以上共计: 63443 Domains/IP/Others (非去重统计)
## Last updated at 25/10月/2023/00:00
## Last updated at 25/10月/2023/00:27
## */


Expand Down
2 changes: 1 addition & 1 deletion rule/QuantumultX/Adblock4limbo.list
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
## EasyList China: 5296 Domains/IP/Others From https://raw.githubusercontent.com/easylist/easylistchina/master/easylistchina.txt
## ACL4SSR BadAD: 591 Domains/IP/Others From https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/BanAD.list
## 以上共计: 63443 Domains/IP/Others (非去重统计)
## Last updated at 25/10月/2023/00:00
## Last updated at 25/10月/2023/00:27
## */


Expand Down
2 changes: 1 addition & 1 deletion rule/Shadowrocket/Adblock4limbo.list
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
## EasyList China: 5296 Domains/IP/Others From https://raw.githubusercontent.com/easylist/easylistchina/master/easylistchina.txt
## ACL4SSR BadAD: 591 Domains/IP/Others From https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/BanAD.list
## 以上共计: 63443 Domains/IP/Others (非去重统计)
## Last updated at 25/10月/2023/00:00
## Last updated at 25/10月/2023/00:27
## */


Expand Down
2 changes: 1 addition & 1 deletion rule/Surge/Adblock4limbo_surge.list
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
## EasyList China: 5296 Domains/IP/Others From https://raw.githubusercontent.com/easylist/easylistchina/master/easylistchina.txt
## ACL4SSR BadAD: 591 Domains/IP/Others From https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/BanAD.list
## 以上共计: 63443 Domains/IP/Others (非去重统计)
## Last updated at 25/10月/2023/00:00
## Last updated at 25/10月/2023/00:27
## */


Expand Down

0 comments on commit 26c2f16

Please sign in to comment.