adguardHomeJoiner/test.ts

159 lines
No EOL
5 KiB
TypeScript

const test = {
"filters": [
{
"url": "https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/native.amazon.txt",
"name": "HaGeZi's Amazon Tracker DNS Blocklist",
"last_updated": "2025-01-14T20:51:46-05:00",
"id": 1732673071,
"rules_count": 335,
"enabled": true
},
{
"url": "https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/native.apple.txt",
"name": "HaGeZi's Apple Tracker DNS Blocklist",
"last_updated": "2025-01-14T20:51:46-05:00",
"id": 1732673072,
"rules_count": 93,
"enabled": true
},
{
"url": "https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/native.huawei.txt",
"name": "HaGeZi's Huawei Tracker DNS Blocklist",
"last_updated": "2025-01-14T20:51:46-05:00",
"id": 1732673073,
"rules_count": 95,
"enabled": true
},
{
"url": "https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/native.winoffice.txt",
"name": "HaGeZi's Windows/Office Tracker DNS Blocklist",
"last_updated": "2025-01-14T20:51:46-05:00",
"id": 1732673074,
"rules_count": 335,
"enabled": true
},
{
"url": "https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/native.samsung.txt",
"name": "HaGeZi's Samsung Tracker DNS Blocklist",
"last_updated": "2025-01-14T20:51:46-05:00",
"id": 1732673075,
"rules_count": 189,
"enabled": true
},
{
"url": "https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/native.tiktok.txt",
"name": "HaGeZi's TikTok Fingerprinting DNS Blocklist",
"last_updated": "2025-01-14T20:51:46-05:00",
"id": 1732673076,
"rules_count": 278,
"enabled": true
},
{
"url": "https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/native.tiktok.extended.txt",
"name": "HaGeZi's TikTok Extended Fingerprinting DNS Blocklist",
"last_updated": "2025-01-14T20:51:46-05:00",
"id": 1732673077,
"rules_count": 354,
"enabled": true
},
{
"url": "https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/native.lgwebos.txt",
"name": "HaGeZi's LG webOS Tracker DNS Blocklist",
"last_updated": "2025-01-14T20:51:46-05:00",
"id": 1732673078,
"rules_count": 16,
"enabled": true
},
{
"url": "https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/native.vivo.txt",
"name": "HaGeZi's Vivo Tracker DNS Blocklist",
"last_updated": "2025-01-14T20:51:46-05:00",
"id": 1732673079,
"rules_count": 88,
"enabled": true
},
{
"url": "https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/native.oppo-realme.txt",
"name": "HaGeZi's OPPO & Realme Tracker DNS Blocklist",
"last_updated": "2025-01-14T20:51:46-05:00",
"id": 1732673080,
"rules_count": 230,
"enabled": true
},
{
"url": "https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/native.xiaomi.txt",
"name": "HaGeZi's Xiaomi Tracker DNS Blocklist",
"last_updated": "2025-01-14T20:51:46-05:00",
"id": 1732673081,
"rules_count": 361,
"enabled": true
},
{
"url": "https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/fake.txt",
"name": "HaGeZi's Fake DNS Blocklist",
"last_updated": "2025-01-14T20:51:46-05:00",
"id": 1732673082,
"rules_count": 10389,
"enabled": true
},
{
"url": "https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/popupads.txt",
"name": "HaGeZi's Pop-Up Ads DNS Blocklist",
"last_updated": "2025-01-14T20:51:47-05:00",
"id": 1732673083,
"rules_count": 83577,
"enabled": true
},
{
"url": "https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/tif.txt",
"name": "HaGeZi's Threat Intelligence Feeds DNS Blocklist",
"last_updated": "2025-01-14T20:51:51-05:00",
"id": 1732673084,
"rules_count": 695621,
"enabled": true
},
{
"url": "https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/tif-ips.txt",
"name": "TIF IPs",
"last_updated": "2025-01-14T20:51:52-05:00",
"id": 1732673085,
"rules_count": 98895,
"enabled": true
},
{
"url": "https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/pro.txt",
"name": "HaGeZi's Pro DNS Blocklist",
"last_updated": "2025-01-14T20:51:53-05:00",
"id": 1736222077,
"rules_count": 191991,
"enabled": true
},
{
"url": "https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/dyndns.txt",
"name": "HaGeZi's DynDNS Blocklist",
"last_updated": "2025-01-14T20:51:53-05:00",
"id": 1736222078,
"rules_count": 1469,
"enabled": true
},
{
"url": "https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/hoster.txt",
"name": "HaGeZi's Badware Hoster DNS Blocklist",
"last_updated": "2025-01-14T20:51:53-05:00",
"id": 1736222079,
"rules_count": 1851,
"enabled": true
}
],
"whitelist_filters": null,
"user_rules": [
""
],
"interval": 1,
"enabled": true
}
const filters = [];
for (const filter of test.filters) {
filters.push(filter.url);
}
console.log(filters);