Commit Graph

5219 Commits

Author SHA1 Message Date
MkQtS
aa052c7bd1 Feat: add advanced deduplicate for subdomains
only for domain/full without attr
2026-01-11 22:02:46 +08:00
MkQtS
68d291d4ee Feat: add support for affiliation
A domain rule is always added to the list corresponding to the filename
it resides in. Additionally, you can now add affiliations to a domain
rule, and the rule will be added to the list specified by the
affiliation. Each affiliation begins with `&` and followed by the name
of the affiliation.

For example, when you can add a single rule
`youtube.com &youtube &category-entertainment` in file `data/google`.
Then `geosite:google`, `geosite:youtube` and
`geosite:category-entertainment` all contain `[domain:]youtube.com`
(even if files `data/youtube` and `data/category-entertainment` do not
exist).

This helps us to reduce the number of data files without compromising
functionality, and avoid writing a same rule in different files.
2026-01-11 22:02:46 +08:00
MkQtS
951b407d6b Refactor exporting plaintext list 2026-01-11 22:02:46 +08:00
MkQtS
5e6253ec4e Feat: add support for partial include
- refactor inclusion logic
- add basic deduplicate
2026-01-11 22:02:46 +08:00
MkQtS
c87c46db9d Refactor: promote refMap 2026-01-11 22:02:46 +08:00
MkQtS
eeccce1d3b Remove support for partial include
This reverts e640ac2783

It is problematic and I will implement a new one
2026-01-11 22:02:46 +08:00
MkQtS
fd7f296305 Refactor exportPlainTextList
- remove unnecessary variable
- improve readablity
2026-01-11 22:02:46 +08:00
MkQtS
8cbcc1042b Refactor parseEntry
- add value/attribute checker(check missing space)
- allow multiple spaces
- sort attributes
- improve readablity
2026-01-11 22:02:46 +08:00
MkQtS
431b7f2acb Refactor: use string attr before toProto 2026-01-11 22:02:45 +08:00
MkQtS
d898eef2f0 Refactor: reduce the use of strings.TrimSpace 2026-01-11 22:02:45 +08:00
深鸣
8786ff74f0 Add more ad domains (#3164)
* Add more ad domains

* Merge some ad domains into their corresponding main rules

---------

Co-authored-by: MkQtS <81752398+MkQtS@users.noreply.github.com>
20260111140131
2026-01-11 22:01:15 +08:00
MkQtS
cc8a866863 Add more cn domains (#3163)
* chinamobile: add more domains

* chinaunicom: add wosms.cn

* zhangtao: add more domains

* category-media-cn: add more domains
20260110143056
2026-01-10 22:30:40 +08:00
深鸣
593e467448 tencent-ads: add more domains (#3162) 20260110142843 2026-01-10 22:28:26 +08:00
深鸣
76b32b86b8 geolocation-cn: add more domains (#3161) 20260110084845 2026-01-10 16:48:26 +08:00
深鸣
1150b420a4 xiaomi-ads: add tracker.xiaomixiaoai.com (#3160) 20260110065816 2026-01-10 14:57:56 +08:00
Stephanos Komnenos
2a0fb64efd category-pt: add nexushd.org (#3158) 20260110065708 2026-01-10 14:56:52 +08:00
深鸣
c05ce9952d xiaomi-ads: add stats.music.xiaomi.com (#3159) 20260110031540 2026-01-10 11:15:23 +08:00
xizi
67389b37cc Add schoopia (#3156)
Add domains for 翻转校园
20260109015452
2026-01-09 09:54:32 +08:00
TripleA
39431a9e8f google-deepmind: add missing subdomain for Google AI Labs (#3157) 20260109014813 2026-01-09 09:47:54 +08:00
xizi
b8fc0cd9d7 feat(jiguang): add missing domain easytomessage.com (#3155)
Add missing domain for Jiguang (JPush) service.

According to the official Jiguang documentation, `easytomessage.com` is a required domain for the push service to function correctly on network-restricted environments.

Reference:
https://community.jiguang.cn/article/408970
20260109014654
2026-01-09 09:46:36 +08:00
bafometik
9f59a5e666 category-ru: add more domains (#3144) 20260108150753 2026-01-08 23:07:32 +08:00
Aleksandr Fedotov
07f769cf85 Add category-retail-ru (#3154) 20260108150042 2026-01-08 23:00:26 +08:00
MkQtS
6833d994c0 category-dev: add more domains 20260108055940 2026-01-08 13:59:24 +08:00
MkQtS
b150c66d47 category-password-management: add authpass.app 2026-01-08 13:59:24 +08:00
MkQtS
248c0f7b86 geolocation: add more domains 2026-01-08 13:59:24 +08:00
un1ntend3d
de2c5cf208 category-cryptocurrency: add bingx.com (#3140) 20260108042739 2026-01-08 12:27:24 +08:00
MkQtS
44d511e74e Add technogym (#3152) 20260108041830 2026-01-08 12:18:11 +08:00
TripleA
5928f612ba Update category-public-tracker (#3151)
Strict comparison by www removed
20260108035938
2026-01-08 11:59:21 +08:00
Aleksandr Fedotov
246b6150af Add mosmetro (#3146) 20260108035101 2026-01-08 11:50:46 +08:00
Aleksandr Fedotov
ffb25af399 Add category-ecommerce-ru (#3149) 20260108034207 2026-01-08 11:41:48 +08:00
Aleksandr Fedotov
f96f3d1abd Add category-entertainment-ru (#3150) 20260108033453 2026-01-08 11:34:37 +08:00
Aleksandr Fedotov
8fc66473ff category-ru: remove anime domains (#3148)
* animevost.org is changing mirrors; the domain is unstable

* seasonvar.ru is already in the category-ru
20260108033102
2026-01-08 11:30:46 +08:00
xizi
49101e3aab taptap: add tapapks.com (#3147)
Add missing download domain.
20260108032139
2026-01-08 11:21:25 +08:00
bafometik
d2c662bf5e mailru-group: add tamtam.chat (#3145) 20260107071356 2026-01-07 15:13:39 +08:00
MkQtS
7a6e4cb1f5 Update apple (#3138)
* apple: deduplicate

- swift is included in apple-dev
- `full:certs.apple.com @cn` is added in apple-pki
- `full:crl.apple.com @cn` is added in apple-pki
- `full:ocsp-lb.apple.com.akadns.net @cn` is added in apple-pki
- `full:ocsp.apple.com @cn` is added in apple-pki
- `full:ocsp2-lb.apple.com.akadns.net @cn` is added in apple-pki
- `full:ocsp2.apple.com @cn` is added in apple-pki
- `full:valid.apple.com @cn` is added in apple-pki

* apple: move `valid.origin-apple.com.akadns.net` to apple-pki

keep consistent with valid.apple.com
20260106080719
2026-01-06 16:07:03 +08:00
MkQtS
511577436c category-collaborate-cn: add todesk.cn (#3139) 20260106075125 2026-01-06 15:51:06 +08:00
MkQtS
8a2718204b google: deduplicate (#3137)
- `full:safebrowsing-cache.google.com @cn` appears twice
- `full:crl.pki.goog @cn` is added in google-trust-services
- `full:firebase-settings.crashlytics.com @cn` is added in firebase
- `full:ocsp.pki.goog @cn` is added in google-trust-services
- `full:pki-goog.l.google.com @cn` is added in google-trust-services
- `full:redirector.c.play.google.com @cn` is added in google-play
20260106060828
2026-01-06 14:08:09 +08:00
HedgDifuse
e3b3197a42 Add category-proxy-tunnels with ngrok and pinggy (#3130)
* add category-proxy-tunnels

* add ngrok and pinggy
20260106043327
2026-01-06 12:33:11 +08:00
I'm xun.
f8488acb8c google-deepmind: add ai.studio (#3134) 20260105102553 2026-01-05 18:25:38 +08:00
6kembion9-byte
ed2bce57e7 Add more torrent domains (#3118)
* category-public-tracker: add nnmclub.to

* geolocation-!cn: add rutor.info
20260105090653
2026-01-05 17:06:33 +08:00
MkQtS
6e450bf817 rutracker: fix typo domain (#3133)
link to #2510 #3118
20260105083837
2026-01-05 16:38:19 +08:00
RiverMud
40e2a5ddb3 citic: add cfc108.com (#3132) 20260105083208 2026-01-05 16:31:51 +08:00
Petr Egorov
44597e0838 add wildberries (#3129)
* feat: domains used by wildberries ios app

* feat: add wb to russian sites

---------

Co-authored-by: egorov.petr4 <egorov.petr4@rwb.ru>
20260103044301
2026-01-03 12:42:44 +08:00
MkQtS
aa99dcb556 category-social-media-!cn: add truthsocial.com (#3128) 20260102111739 2026-01-02 19:17:20 +08:00
6kembion9-byte
7acd2b7570 category-ru: add anime domains (#3117) 20260102105938 2026-01-02 18:59:19 +08:00
TTG
2889d1e23d Update chinaunicom (#3127) 20260102102508 2026-01-02 18:24:52 +08:00
TTG
63a21a16f3 Update Adidas Domains (#3121) 20260102102345 2026-01-02 18:23:30 +08:00
TTG
6681a742c2 Update DAZN Domains (#3122) 20260102101351 2026-01-02 18:13:32 +08:00
TTG
3cc00985ee Update HBO Domains (#3123) 20260102101252 2026-01-02 18:12:32 +08:00
Carlos Quin
80dbc1afc0 category-game-platforms-download: add dl.playstation.net (#3125) 20260101144540 2026-01-01 22:45:19 +08:00