Update at 2024-09-11 08:04

This commit is contained in:
actions 2024-09-11 00:04:09 +00:00
commit b065127e8c
28 changed files with 1701923 additions and 0 deletions

3
.gitattributes vendored Normal file
View File

@ -0,0 +1,3 @@
[attr]adb linguist-language=AdBlock linguist-detectable
/mod/rules/adblock-rules.txt adb

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
push.sh
.git/
tmp/

1
CNAME Normal file
View File

@ -0,0 +1 @@
gp.adrules.top

14
LICENSE Normal file
View File

@ -0,0 +1,14 @@
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.

138958
adblock.txt Normal file

File diff suppressed because one or more lines are too long

34053
adblock_lite.txt Normal file

File diff suppressed because one or more lines are too long

306580
adblock_plus.txt Normal file

File diff suppressed because one or more lines are too long

BIN
adrules-mihomo.mrs Normal file

Binary file not shown.

121414
adrules-singbox.json Normal file

File diff suppressed because it is too large Load Diff

BIN
adrules-singbox.srs Normal file

Binary file not shown.

121728
adrules-surge.conf Normal file

File diff suppressed because it is too large Load Diff

121407
adrules.list Normal file

File diff suppressed because it is too large Load Diff

242821
adrules.list.json Normal file

File diff suppressed because it is too large Load Diff

121406
adrules_domainset.txt Normal file

File diff suppressed because it is too large Load Diff

121735
dns.txt Normal file

File diff suppressed because it is too large Load Diff

277
index.html Normal file
View File

@ -0,0 +1,277 @@
<html>
<head>
<link rel="icon" href="https://avatars.githubusercontent.com/u/88201352" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="List for blocking ads in the Chinese region">
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, user-scalable=no"
/>
<title>AdRules</title>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/remarkable/2.0.1/remarkable.min.js"
integrity="sha512-skYYbQHAuOTpeJTthhUH3flZohep8blA+qjZOY0VqmfXMDiYcWxu29F5UbxU4LxaIpGkRBk+3Qf8qaXfd9jngg=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<style>
select ~ article[id] {
display: block;
opacity: 0;
transition: opacity 0.45s ease-in-out;
}
select ~ article[id].show {
opacity: 1;
}
select ~ article[id].hide {
display: none;
}
</style>
<meta name="viewport" content="width=device-width; initial-scale=1.0; minimum-scale=1.0; maximum-scale=1.0">
<style>
.container {
width: 80%;
margin: 10% auto 0;
background-color: rgba(255,255,255,0.7);
padding: 2% 5%;
border-radius: 10px
}
ul {
padding-left: 20px;
}
ul li {
line-height: 2.3
}
a {
color: #20a53a
}
select {
font-size: 16px;
} .styled-select {
border: 1px solid #ccc;
border-radius: 4px;
padding: 6px 10px;
font-size: 16px;
color: #333;
}
.copy-button {
margin-top: 10px;
cursor: pointer;
padding: 10px;
border-radius: 5px;
background-color: #4CAF50; /* Green */
border: none;
color: white;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
}
.add-button {
margin-top: 10px;
cursor: pointer;
padding: 10px;
border-radius: 5px;
background-color: #4CAF50; /* Green */
border: none;
color: white;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
}
</style>
</head>
<body>
<div class="container" align="center">
<header>
<article><pre>
## **AdRules**
### *List for blocking ads in the Chinese region*
</pre></article>
<img src="https://img.shields.io/github/stars/Cats-Team/AdRules?style=flat-square&color=yellow">
<img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/cats-team/adrules/main?style=flat-square&color=red">
<img src="https://img.shields.io/github/license/Cats-Team/AdRules?style=flat-square"><br>
<br>
</header>
<main>
<select class="styled-select">
<option value="empty" hidden selected>Choose Your Tool:</option>
<optgroup label="Browser & App">
<option value="adge">Browser Extension</option>
<option value="adgai">AdGuard for Android/iOS</option>
<option value="adgwm">AdGuard for Windows/Mac</option>
</optgroup>
<optgroup label="DNS & Proxy">
<option value="adgh">AdGuard Home</option>
<option value="sd">SmartDNS</option>
<option value="qx">Quantumult X</option>
<option value="cla">Clash</option>
<option value="mosdns">mosdns</option>
<option value="loon">Loon</option>
<option value="surge">Surge</option>
<option value="singbox">Singbox</option>
</optgroup>
</select>
<article id="adgai" class="hide"><pre>
### AdGuard for Android / iOS
<a href="./adblock.txt">AdRules AdBlock List</a><br>
<button class="copy-button">Copy Link</button>
<button class="add-button">Add Your Tool</button>
</pre></article>
<article id="adgwm" class="hide"><pre>
### AdGuard for Windows / Mac
<a href="./adblock_plus.txt">AdRules AdBlock List Plus </a><br>
<button class="copy-button">Copy Link</button>
<button class="add-button">Add Your Tool</button>
</pre></article>
<article id="adge" class="hide"><pre>
### AdGuard Browser extension / uBlock Origin
<a href="./adblock.txt">AdRules AdBlock List</a><br>
<button class="copy-button">Copy Link</button>
<button class="add-button">Add Your Tool</button>
</pre></article>
<article id="adgh" class="hide"><pre>
### AdGuard Home
<a href="./dns.txt">AdRules DNS List </a>
<button class="copy-button">Copy Link</button>
</pre></article>
<article id="sd" class="hide"><pre>
### SmartDNS
<a href="./smart-dns.conf">AdRules SmartDNS List </a>
<button class="copy-button">Copy Link</button>
</pre></article>
<article id="qx" class="hide"><pre>
### Quantumult X
<a href="./qx.conf">AdRules Quantumult X List </a>
<button class="copy-button">Copy Link</button>
</pre></article>
<article id="cla" class="hide"><pre>
### Clash / Mihomo
<a href="./adrules_domainset.txt">AdRules Clash Domainset List </a>
<button class="copy-button">Copy Link</button>
</pre></article>
<article id="mosdns" class="hide"><pre>
### mosdns
<a href="./mosdns_adrules.txt">AdRules MosDNS List </a>
<button class="copy-button">Copy Link</button>
</pre></article>
<article id="loon" class="hide"><pre>
### Loon
<a href="./adrules.list">AdRules Ruleset List </a>
<button class="copy-button">Copy Link</button>
</pre></article>
<article id="surge" class="hide"><pre>
### Surge
<a href="./adrules-surge.conf">AdRules Surge List </a>
<button class="copy-button">Copy Link</button>
</pre></article>
<article id="singbox" class="hide"><pre>
### Singbox
<a href="./adrules-singbox.srs">AdRules Singbox List </a>
<button class="copy-button">Copy Link</button>
</pre></article>
</main>
<footer>
<article><pre>
( ̄︶ ̄)↗ 
❔Have any questions? Please go to [Chat](https://github.com/Cats-Team/AdRules#chat)
📃Want to see the upstream rules? [Source](https://github.com/Cats-Team/AdRules/blob/script/Source.md)
🌟Get more or give a star? [GitHub Homepage](https://github.com/Cats-Team/AdRules)</pre></article>
</footer>
<script>
const md = new remarkable.Remarkable({
html: true,
});
document.querySelectorAll("article").forEach((art) => {
art.innerHTML = md.render(art.querySelector("pre").innerHTML);
});
document.querySelector("select").addEventListener("change", (e) => {
document.querySelectorAll("select ~ article[id].show").forEach((art) => {
art.classList.remove("show");
});
setTimeout(() => {
if (e.target.value !== "empty") {
document.querySelectorAll("select ~ article[id]").forEach((art) => {
if (art.id===e.target.value) {
art.classList.remove("hide");
} else {
art.classList.add("hide");
}
});
} else {
document.querySelectorAll("select ~ article[id]").forEach((art) => {
art.classList.add("hide");
});
}
}, 500);
setTimeout(() => {
document.querySelectorAll("select ~ article[id]").forEach((art) => {
if (art.id===e.target.value) {
art.classList.add("show")
}
});
}, 900);
});
</script>
<script>
const copyButtons = document.querySelectorAll(".copy-button");
copyButtons.forEach(button => {
button.addEventListener('click', () => {
let href = button.parentElement.querySelector('a').getAttribute('href');
href = href.replace('./', '/');
navigator.clipboard.writeText(window.location.origin + href).then(() => {
button.innerText = "Copied";
}).catch(err => {
console.error('Could not copy text: ', err);
});
});
});
const addButtons = document.querySelectorAll(".add-button");
addButtons.forEach((button) => {
button.addEventListener("click", () => {
let href = button.parentElement
.querySelector("a")
.getAttribute("href");
href = href.replace("./", "/");
const fullUrl =
"abp:subscribe?location=" +
encodeURIComponent(window.location.origin + href);
const hideA = document.createElement("a");
hideA.style.cssText = "position:absolute;top:-100%";
hideA.href = fullUrl;
document.body.appendChild(hideA);
hideA.click();
hideA.remove();
});
});
document.querySelector("select").value = "empty";
</script>
</body>
<br>
</html>

View File

@ -0,0 +1,9 @@
||imasdk.googleapis.com^
||bing.com/fd/ls/GLinkPing.aspx?
||bing.com^*/glinkping.aspx$ping,xmlhttprequest
||bing.com/fd/ls/
||gia.jd.com^

128
mod/rules/adblock-rules.txt Normal file
View File

@ -0,0 +1,128 @@
! ------加强屏蔽Start------ !
!酷安"提到的好物"
||coolapk.com/v6/page/dataList?$replace=/extra_entities//
||coolapk.com/v6/feed/detail?$replace=/extra_entities//
||coolapk.com/v6/main/indexV?$replace=/extra_entities//
||coolapk.com/v6/feed/detail?$replace=/extra_title//
||coolapk.com/v6/feed/detail?$replace=/include_goods//
!去除"什么值得买"
||coolapk.com/v6/main/indexV8?$replace=/\{"entityType":"card"\,"entityTemplate":"listCard".*?\}\,\{"id/{"id/
!去除热搜
||coolapk.com/v6/main/init?$replace=/\{"data":\[\{"entityType":"card"\,"entityTemplate":"textCard"\,"title":"\\u70ed\\u95e8\\u641c\\u7d22".*?\}\,\{"entityType":"card"\,"entityTemplate":"configCard"/\{"data":[\{"entityType":"card"\,"entityTemplate":"configCard"/
||coolapk.com/v6/search?type=hotSearch$replace=/\{"data":\[.*\]/{"data":[]/
!去除随机应用推荐
||coolapk.com/v6/main/indexV8?$replace=/\,\{.*?"entityType": "card"\,"entityTemplate":"apkImageCard".*?\}\,\{"id"/,{"id"/
!去除评论区下某广告
||coolapk.com/v6/feed/detail?$replace=/detailSponsorCard//
! 信息流及评论区广告
||ctobsnssdk.com^
||pangolin.snssdk.com^
||pangolin-sdk-toutiao.com^
||pangolin-sdk-toutiao-b.com^
||pglstatp-toutiao.com^
||umeng.com^
||tnc*.zijieapi.com^$app
! 帖子详情好物推荐
||api2.coolapk.com/v6/feed/detail$replace=/"_ids":\[.*?]\,"":\[.*?]\,/ /
! 帖子详情赞助内容
||api2.coolapk.com/v6/feed/detail$replace=/\,"":{.*}/}}/
! 发现页去除酷品
||api2.coolapk.com/v6/main/init$replace=/{"id":1170.*?}\,/ /
! 应用游戏页去除推广视频
||api2.coolapk.com/v6/page/dataList$replace=/{"entityType":"card"\,"entityTemplate":"apkImageCard".*?\\u0022}"}\,/ /
! 去除首页还有什么值得买推广
||api2.coolapk.com/v6/main/indexV8$replace=/{"entityType":"card"\,"entityTemplate":"listCard".*?}"}\,/ /
!酷我
||g.koowo.com^$app=cn.kuwo.player
||fvedio.kuwo.cn^$app=cn.kuwo.player
||searchrecterm.kuwo.cn^$app=cn.kuwo.player
||media.cdn.kuwo.cn*tuijian*.json$app=cn.kuwo.player
!全民k歌
||y.qq.com/music/common/upload/t_kg_activity_show^
||y.gtimg.cn/music/common//upload/kg_ad^
||us.l.qq.com/exapp^
||httpdns.kg.qq.com^
!抖音屏蔽大部分广告
!番茄小说广告全屏蔽
||ads*-normal*.zijieapi.com^
||p*-ad-sign.byteimg.com^
! 大海影视
||uty.micocc.com^
||lanm.huliyinzi.com^
||ns.adobe.com^
||swimg2.tsderen.cn^
||st.huliyinzi.com/ads_app_pic/^
! 快手AD
||yoda.kwd.inkuai.com^
||gdfp.gifshow.com^
||volceapplog.com^
!小睡眠
||api.psy-1.com/cosleep/newborn/vips/picks^
||api.psy-1.com/cosleep/newborn/ad^
||res.psy-1.com/music/recommend^$app=com.psyone.brainmusic
!小米遥控器
||home.mi.com/cgi-op/api/v1/recommendation/banner^
!由asky88提供的不太记得是什么作用的规则
||xj-landing.gdtimg.com^
||*/vhot2.qqvideo.tc.qq.com^
||soup.v.qq.com^
! -------加强屏蔽End------- !
! -------白名单Start------- !
! AdGuard
@@||local.adguard.org^
! Edge新闻
@@||www.msn.cn/spartan/mmx^
! 银联
@@||yyfweb.postar.cn^
! Bilibili
bilibili.com#@#.btn-ctnr
! Phone Youku
@@||vali.cp*.ott.cibntv.net^$domain=m.youku.com,third-party
! 皮皮虾评论区误杀
@@||i.snssdk.com/bds^$app=com.sup.android.superb
!mydrivers.com
mydrivers.com#@#.baidu, a[href^=http][target=_blank]
! Bilibiili API
@@||api.bilibili.com/*^$removeparam
!https://es6.ruanyifeng.com/#docs/module无法加载
ruanyifeng.com#@#a[href*=".apeclass.com"]
! b站 投币 收藏 #66
bilibili.com#@#.bili-dialog-m
! 百度云转存 #59
@@||pan.baidu.com/$removeparam,domain=pan.baidu.com
! 验证码
cjcx.neea.edu.cn#@#[style="visibility: visible; display: block;"]
! 魅族主题 #90
@@||ccm*.res.meizu.com/fileserver/operation/ad/img/*.png
#189
@@||safe.zhanhuo.com^$domain=safe.zhanhuo.com
! --------白名单End-------- !

1669
mod/rules/dns-rules.txt Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,27 @@
/^admarvel\./
/^admaster\./
/^adsage\./
/^adsensor\./
/^adservice\./
/^adsmogo\./
/^adsrvmedia\./
/^adsserving\./
/^adsystem\./
/^adwords\./
/^applovin\./
/^appsflyer\./
/^domob\./
/^duomeng\./
/^dwtrack\./
/^guanggao\./
/^omgmta\./
/^omgmtaw\./
/^omniture\./
/^openx\./
/^partnerad\./
/^pingfore\./
/^socdm\./
/^supersonicads\./
/^wlmonitor\./
/^zjtoolbar\./
/^.+stat\.kugou\.com/

View File

@ -0,0 +1,7 @@
[Adblock Plus 2.0]
! Title: AdRules AdBlock List
! Homepage: https://github.com/Cats-Team/AdRules
! Powerd by Cats-Team
! Expires: 1 day (update frequency)
! Description: Merge from EasyList,EasyListChina etc. and Add Some Rules.
!

View File

@ -0,0 +1,7 @@
[Adblock Plus 2.0]
! Title: AdRules AdBlock List Lite
! Homepage: https://github.com/Cats-Team/AdRules
! Powerd by Cats-Team
! Expires: 1 day (update frequency)
! Description: AdRules AdBlock List's Lite Version, And Remove Some Filters
!

View File

@ -0,0 +1,7 @@
[Adblock Plus 2.0]
! Title: AdRules AdBlock List Plus
! Homepage: https://github.com/Cats-Team/AdRules
! Powerd by Cats-Team
! Expires: 1 day (update frequency)
! Description: AdRules AdBlock List's Plus Verison, And Add Some Filters
!

6
mod/title/dns-title.txt Normal file
View File

@ -0,0 +1,6 @@
[Adblock Plus 2.0]
! Title: AdRules DNS List
! Homepage: https://github.com/Cats-Team/AdRules
! Powerd by Cats-Team
! Expires: 1 (update frequency)
! Description: The DNS Filters

121405
mosdns_adrules.txt Normal file

File diff suppressed because it is too large Load Diff

121407
qx.conf Normal file

File diff suppressed because it is too large Load Diff

5444
rules/jiekouAD.txt Normal file

File diff suppressed because it is too large Load Diff

121407
smart-dns.conf Normal file

File diff suppressed because it is too large Load Diff