| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250 |
- // @ts-check
- /** @type {[string, boolean][]} */
- const HOSTS = [
- // ['https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&mimetype=plaintext', false],
- ['https://raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/master/hosts.txt', false],
- ['https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt', false],
- ['https://raw.githubusercontent.com/jerryn70/GoodbyeAds/master/Extension/GoodbyeAds-Xiaomi-Extension.txt', false],
- ['https://raw.githubusercontent.com/jdlingyu/ad-wars/master/hosts', false]
- ];
- const ADGUARD_FILTERS = /** @type {const} */([
- // Easy List
- [
- 'https://easylist.to/easylist/easylist.txt',
- [
- 'https://easylist-downloads.adblockplus.org/easylist.txt',
- 'https://raw.githubusercontent.com/easylist/easylist/gh-pages/easylist.txt',
- 'https://secure.fanboy.co.nz/easylist.txt'
- ],
- false
- ],
- // Easy Privacy
- [
- 'https://easylist.to/easylist/easyprivacy.txt',
- [
- 'https://secure.fanboy.co.nz/easyprivacy.txt',
- 'https://raw.githubusercontent.com/easylist/easylist/gh-pages/easyprivacy.txt',
- 'https://easylist-downloads.adblockplus.org/easyprivacy.txt'
- ],
- false
- ],
- // AdGuard DNS Filter
- [
- 'https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt',
- [
- 'https://filters.adtidy.org/extension/chromium/filters/15.txt'
- ]
- ],
- // AdGuard CNAME Filter Combined
- 'https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/data/combined_disguised_ads.txt',
- 'https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/data/combined_disguised_trackers.txt',
- 'https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/data/combined_disguised_clickthroughs.txt',
- 'https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/data/combined_disguised_microsites.txt',
- // uBlock Origin Filter List
- [
- 'https://ublockorigin.github.io/uAssets/filters/filters.txt',
- [
- 'https://ublockorigin.github.io/uAssetsCDN/filters/filters.txt',
- 'https://ublockorigin.pages.dev/filters/filters.txt'
- ],
- false
- ],
- [
- 'https://ublockorigin.github.io/uAssets/filters/filters-2020.txt',
- [
- 'https://ublockorigin.github.io/uAssetsCDN/filters/filters-2020.txt',
- 'https://ublockorigin.pages.dev/filters/filters-2020.txt'
- ],
- false
- ],
- [
- 'https://ublockorigin.github.io/uAssets/filters/filters-2021.txt',
- [
- 'https://ublockorigin.github.io/uAssetsCDN/filters/filters-2021.txt',
- 'https://ublockorigin.pages.dev/filters/filters-2021.txt'
- ],
- false
- ],
- [
- 'https://ublockorigin.github.io/uAssets/filters/filters-2022.txt',
- [
- 'https://ublockorigin.github.io/uAssetsCDN/filters/filters-2022.txt',
- 'https://ublockorigin.pages.dev/filters/filters-2022.txt'
- ],
- false
- ],
- [
- 'https://ublockorigin.github.io/uAssets/filters/filters-2023.txt',
- [
- 'https://ublockorigin.github.io/uAssetsCDN/filters/filters-2023.txt',
- 'https://ublockorigin.pages.dev/filters/filters-2023.txt'
- ],
- false
- ],
- // uBlock Origin Badware Risk List
- [
- 'https://ublockorigin.github.io/uAssets/filters/badware.txt',
- [
- 'https://ublockorigin.github.io/uAssetsCDN/filters/badware.txt',
- 'https://ublockorigin.pages.dev/filters/badware.txt'
- ],
- false
- ],
- // uBlock Origin Privacy List
- [
- 'https://ublockorigin.github.io/uAssets/filters/privacy.txt',
- [
- 'https://ublockorigin.github.io/uAssetsCDN/filters/privacy.txt',
- 'https://ublockorigin.pages.dev/filters/privacy.txt'
- ],
- false
- ],
- // uBlock Origin Resource Abuse
- [
- 'https://ublockorigin.github.io/uAssets/filters/resource-abuse.txt',
- [
- 'https://ublockorigin.github.io/uAssetsCDN/filters/resource-abuse.txt',
- 'https://ublockorigin.pages.dev/filters/resource-abuse.txt'
- ],
- false
- ],
- // uBlock Origin Unbreak
- [
- 'https://ublockorigin.github.io/uAssets/filters/unbreak.txt',
- [
- 'https://ublockorigin.github.io/uAssetsCDN/filters/unbreak.txt',
- 'https://ublockorigin.pages.dev/filters/unbreak.txt'
- ],
- false
- ],
- // AdGuard Base Filter
- 'https://filters.adtidy.org/extension/ublock/filters/2_without_easylist.txt',
- // AdGuard Mobile AD
- 'https://filters.adtidy.org/extension/ublock/filters/11_optimized.txt',
- // AdGuard Tracking Protection
- 'https://filters.adtidy.org/extension/ublock/filters/3_optimized.txt',
- // AdGuard Japanese filter
- 'https://filters.adtidy.org/extension/ublock/filters/7_optimized.txt',
- // AdGuard Chinese filter (EasyList China + AdGuard Chinese filter)
- 'https://filters.adtidy.org/extension/ublock/filters/224_optimized.txt',
- // AdGuard Annoyances filter
- 'https://filters.adtidy.org/android/filters/14_optimized.txt',
- // EasyList Germany filter
- [
- 'https://easylist.to/easylistgermany/easylistgermany.txt',
- [
- 'https://easylist-downloads.adblockplus.org/easylistgermany.txt'
- ],
- false
- ],
- // Curben's UrlHaus Malicious URL Blocklist
- [
- 'https://curbengh.github.io/urlhaus-filter/urlhaus-filter-agh-online.txt',
- [
- 'https://urlhaus-filter.pages.dev/urlhaus-filter-agh-online.txt'
- // Prefer mirror, since malware-filter.gitlab.io has not been updated for a while
- // 'https://malware-filter.gitlab.io/urlhaus-filter/urlhaus-filter-agh-online.txt'
- ],
- false
- ],
- // Curben's Phishing URL Blocklist
- [
- 'https://curbengh.github.io/phishing-filter/phishing-filter-agh.txt',
- [
- 'https://phishing-filter.pages.dev/phishing-filter-agh.txt'
- // Prefer mirror, since malware-filter.gitlab.io has not been updated for a while
- // 'https://malware-filter.gitlab.io/malware-filter/phishing-filter-agh.txt'
- ],
- false
- ],
- // Curben's PUP Domains Blocklist
- [
- 'https://curbengh.github.io/pup-filter/pup-filter-agh.txt',
- [
- 'https://pup-filter.pages.dev/pup-filter-agh.txt'
- // Prefer mirror, since malware-filter.gitlab.io has not been updated for a while
- // 'https://malware-filter.gitlab.io/malware-filter/pup-filter-agh.txt'
- ],
- false
- ],
- // GameConsoleAdblockList
- 'https://raw.githubusercontent.com/DandelionSprout/adfilt/master/GameConsoleAdblockList.txt',
- // PiHoleBlocklist
- 'https://raw.githubusercontent.com/Perflyst/PiHoleBlocklist/master/SmartTV-AGH.txt',
- // Spam404
- 'https://raw.githubusercontent.com/Spam404/lists/master/adblock-list.txt',
- // BarbBlock
- 'https://paulgb.github.io/BarbBlock/blacklists/ublock-origin.txt',
- // Brave First Party & First Party CNAME
- 'https://raw.githubusercontent.com/brave/adblock-lists/master/brave-lists/brave-firstparty.txt',
- 'https://raw.githubusercontent.com/brave/adblock-lists/master/brave-lists/brave-firstparty-cname.txt',
- 'https://raw.githubusercontent.com/brave/adblock-lists/master/coin-miners.txt'
- ]);
- const PREDEFINED_WHITELIST = [
- 'localhost',
- 'broadcasthost',
- 'ip6-loopback',
- 'ip6-localnet',
- 'ip6-mcastprefix',
- 'ip6-allnodes',
- 'ip6-allrouters',
- 'ip6-allhosts',
- 'mcastprefix',
- 'skk.moe',
- 'analytics.google.com',
- 'msa.cdn.mediaset.net', // Added manually using DOMAIN-KEYWORDS
- 'cloud.answerhub.com',
- 'ae01.alicdn.com',
- 'whoami.akamai.net',
- 'whoami.ds.akahelp.net',
- 'pxlk9.net.', // This one is malformed from EasyList, which I will manually add instead
- 'instant.page', // No, it doesn't violate anyone's privacy. I will whitelist it
- 'piwik.pro',
- 'mixpanel.com',
- 'cdn.mxpnl.com',
- 'heapanalytics.com',
- 'segment.com',
- 'segmentify.com',
- 't.co', // pgl yoyo add t.co to the blacklist
- 'survicate.com', // AdGuardDNSFilter
- 'perfops.io', // AdGuardDNSFilter
- 'd2axgrpnciinw7.cloudfront.net', // ADGuardDNSFilter
- 'tb-lb.sb-cd.com', // AdGuard
- 'storage.yandexcloud.net', // phishing list
- 'login.microsoftonline.com', // phishing list
- 'api.xiaomi.com', // https://github.com/jerryn70/GoodbyeAds/issues/281
- 'api.io.mi.com', // https://github.com/jerryn70/GoodbyeAds/issues/281
- 'cdn.userreport.com', // https://github.com/AdguardTeam/AdGuardSDNSFilter/issues/1158
- 'ip-api.com',
- 'fastly-analytics.com',
- 'syd1.digitaloceanspaces.com',
- 's3.nl-ams.scw.cloud',
- 'geolocation-db.com'
- ];
- const PREDEFINED_ENFORCED_BACKLIST = [
- 'telemetry.mozilla.org'
- ];
- const PREDEFINED_ENFORCED_WHITELIST = [
- 'godaddysites.com',
- 'web.app',
- 'firebaseapp.com',
- 'ipfs.nftstorage.link',
- 'ipfs.4everland.io',
- 'ipfs.cf-ipfs.com',
- 'ipfs.dweb.link',
- 'ipfs.infura-ipfs.io',
- 'ipfs.fleek.cool',
- 'repl.co',
- 'w3s.link',
- 'translate.goog'
- ];
- module.exports.HOSTS = HOSTS;
- module.exports.ADGUARD_FILTERS = ADGUARD_FILTERS;
- module.exports.PREDEFINED_WHITELIST = PREDEFINED_WHITELIST;
- module.exports.PREDEFINED_ENFORCED_BACKLIST = PREDEFINED_ENFORCED_BACKLIST;
- module.exports.PREDEFINED_ENFORCED_WHITELIST = PREDEFINED_ENFORCED_WHITELIST;
|