1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-05 11:37:01 +02:00

Prefix lists with ccTLDs instead of 3-letter country codes

ccTLDs are more relatable websites loaded in the browser.
This commit is contained in:
Raymond Hill 2023-05-21 21:08:29 -04:00
parent 81144687b4
commit 23ec2541ef
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
3 changed files with 54 additions and 52 deletions

View File

@ -465,7 +465,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇦🇱ALB: Adblock List for Albania",
"title": "🇦🇱al: Adblock List for Albania",
"tags": "ads albania shqipja",
"lang": "sq",
"contentURL": "https://raw.githubusercontent.com/AnXh3L0/blocklist/master/albanian-easylist-addition/Albania.txt",
@ -475,7 +475,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "ara: Liste AR",
"title": "🇪🇬eg 🇸🇦sa 🇲🇦ma 🇩🇿dz: Liste AR",
"tags": "ads arabic اَلْعَرَبِيَّةُ‎",
"lang": "ar",
"contentURL": "https://easylist-downloads.adblockplus.org/Liste_AR.txt",
@ -485,7 +485,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇧🇬BGR: Bulgarian Adblock list",
"title": "🇧🇬bg: Bulgarian Adblock list",
"tags": "ads bulgarian България macedonian Македонија",
"lang": "bg mk",
"contentURL": "https://stanev.org/abp/adblock_bg.txt",
@ -495,7 +495,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇨🇳🇹🇼CHN: AdGuard Chinese (中文)",
"title": "🇨🇳cn 🇹🇼tw: AdGuard Chinese (中文)",
"tags": "ads chinese 中文",
"lang": "ug zh",
"contentURL": "https://filters.adtidy.org/extension/ublock/filters/224.txt",
@ -505,7 +505,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇨🇿CZE, 🇸🇰SVK: EasyList Czech and Slovak",
"title": "🇨🇿cz 🇸🇰sk: EasyList Czech and Slovak",
"tags": "ads czech česká slovak slovenská",
"lang": "cs sk",
"contentURL": "https://raw.githubusercontent.com/tomasko126/easylistczechandslovak/master/filters.txt",
@ -515,7 +515,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇩🇪DEU: EasyList Germany",
"title": "🇩🇪de 🇨🇭ch 🇦🇹at: EasyList Germany",
"tags": "ads german deutschland luxembourgish lëtzebuerg romansh",
"lang": "de dsb hsb lb rm",
"contentURL": [
@ -528,7 +528,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇪🇪EST: Eesti saitidele kohandatud filter",
"title": "🇪🇪ee: Eesti saitidele kohandatud filter",
"tags": "ads estonian",
"lang": "et",
"contentURL": "https://adblock.ee/list.php",
@ -538,7 +538,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇫🇮FIN: Adblock List for Finland",
"title": "🇫🇮fi: Adblock List for Finland",
"tags": "ads finnish",
"lang": "fi",
"contentURL": "https://raw.githubusercontent.com/finnish-easylist-addition/finnish-easylist-addition/gh-pages/Finland_adb.txt",
@ -548,7 +548,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇫🇷FRA: AdGuard Français",
"title": "🇫🇷fr 🇨🇦ca: AdGuard Français",
"tags": "ads french",
"lang": "ar br ff fr lb oc son",
"contentURL": "https://filters.adtidy.org/extension/ublock/filters/16.txt",
@ -558,7 +558,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇬🇷GRC: Greek AdBlock Filter",
"title": "🇬🇷gr: Greek AdBlock Filter",
"tags": "ads greek",
"lang": "el",
"contentURL": "https://www.void.gr/kargig/void-gr-filters.txt",
@ -568,7 +568,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇭🇷HRV, 🇷🇸SRB: Dandelion Sprout's Serbo-Croatian filters",
"title": "🇭🇷hr 🇷🇸rs: Dandelion Sprout's Serbo-Croatian filters",
"tags": "ads croatian serbian",
"lang": "hr sr",
"contentURL": "https://raw.githubusercontent.com/DandelionSprout/adfilt/master/SerboCroatianList.txt",
@ -578,7 +578,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇭🇺HUN: hufilter",
"title": "🇭🇺hu: hufilter",
"tags": "ads hungarian",
"lang": "hu",
"contentURL": "https://raw.githubusercontent.com/hufilter/hufilter/master/hufilter-ublock.txt",
@ -588,7 +588,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇮🇩IDN, 🇲🇾MYS: ABPindo",
"title": "🇮🇩id 🇲🇾my: ABPindo",
"tags": "ads indonesian malay",
"lang": "id ms",
"contentURL": "https://raw.githubusercontent.com/ABPindo/indonesianadblockrules/master/subscriptions/abpindo.txt",
@ -598,7 +598,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇮🇳IND, 🇱🇰LKA, 🇳🇵NPL: IndianList",
"title": "🇮🇳in 🇱🇰lk 🇳🇵np: IndianList",
"tags": "ads assamese bengali gujarati hindi kannada malayalam marathi nepali punjabi sinhala tamil telugu",
"lang": "as bn gu hi kn ml mr ne pa si ta te",
"contentURL": "https://easylist-downloads.adblockplus.org/indianlist.txt",
@ -608,7 +608,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇮🇷IRN: PersianBlocker",
"title": "🇮🇷ir: PersianBlocker",
"tags": "ads persian pashto tajik",
"lang": "fa ps tg",
"contentURL": [
@ -626,7 +626,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇮🇸ISL: Icelandic ABP List",
"title": "🇮🇸is: Icelandic ABP List",
"tags": "ads icelandic",
"lang": "is",
"contentURL": "https://adblock.gardar.net/is.abp.txt",
@ -636,7 +636,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇮🇱ISR: EasyList Hebrew",
"title": "🇮🇱il: EasyList Hebrew",
"tags": "ads hebrew",
"lang": "he",
"contentURL": "https://raw.githubusercontent.com/easylist/EasyListHebrew/master/EasyListHebrew.txt",
@ -646,7 +646,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇮🇹ITA: EasyList Italy",
"title": "🇮🇹it: EasyList Italy",
"tags": "ads italian",
"lang": "it lij",
"contentURL": "https://easylist-downloads.adblockplus.org/easylistitaly.txt",
@ -656,7 +656,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇯🇵JPN: AdGuard Japanese",
"title": "🇯🇵jp: AdGuard Japanese",
"tags": "ads japanese 日本語",
"lang": "ja",
"contentURL": "https://filters.adtidy.org/extension/ublock/filters/7.txt",
@ -667,7 +667,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇰🇷KOR: List-KR",
"title": "🇰🇷kr: List-KR",
"tags": "ads korean 한국어",
"lang": "ko",
"contentURL": "https://cdn.jsdelivr.net/gh/List-KR/List-KR@master/filter-uBlockOrigin.txt",
@ -677,7 +677,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇱🇹LTU: EasyList Lithuania",
"title": "🇱🇹lt: EasyList Lithuania",
"tags": "ads lithuanian",
"lang": "lt",
"contentURL": "https://raw.githubusercontent.com/EasyList-Lithuania/easylist_lithuania/master/easylistlithuania.txt",
@ -691,7 +691,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇱🇻LVA: Latvian List",
"title": "🇱🇻lv: Latvian List",
"tags": "ads latvian",
"lang": "lv",
"contentURL": "https://raw.githubusercontent.com/Latvian-List/adblock-latvian/master/lists/latvian-list.txt",
@ -701,7 +701,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇲🇰MKD: Macedonian adBlock Filters",
"title": "🇲🇰mk: Macedonian adBlock Filters",
"tags": "ads macedonian",
"lang": "mk",
"contentURL": "https://raw.githubusercontent.com/DeepSpaceHarbor/Macedonian-adBlock-Filters/master/Filters",
@ -711,7 +711,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇳🇱NLD: EasyDutch",
"title": "🇳🇱nl: EasyDutch",
"tags": "ads afrikaans frisian dutch flemish",
"lang": "af fy nl",
"contentURL": "https://easydutch-ubo.github.io/EasyDutchCDN/EasyDutch.txt",
@ -726,7 +726,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇳🇴NOR, 🇩🇰DNK, 🇮🇸ISL: Dandelion Sprouts nordiske filtre",
"title": "🇳🇴no 🇩🇰dk 🇮🇸is: Dandelion Sprouts nordiske filtre",
"tags": "ads norwegian danish icelandic",
"lang": "nb nn no da is",
"contentURL": [
@ -741,9 +741,9 @@
"POL-0": {
"content": "filters",
"group": "regions",
"parent": "🇵🇱POL: Oficjalne Polskie Filtry",
"parent": "🇵🇱pl: Oficjalne Polskie Filtry",
"off": true,
"title": "🇵🇱POL: Oficjalne Polskie Filtry do uBlocka Origin",
"title": "🇵🇱pl: Oficjalne Polskie Filtry do uBlocka Origin",
"tags": "ads polish polski",
"lang": "szl pl",
"contentURL": "https://raw.githubusercontent.com/MajkiIT/polish-ads-filter/master/polish-adblock-filters/adblock.txt",
@ -753,9 +753,9 @@
"POL-2": {
"content": "filters",
"group": "regions",
"parent": "🇵🇱POL: Oficjalne Polskie Filtry",
"parent": "🇵🇱pl: Oficjalne Polskie Filtry",
"off": true,
"title": "🇵🇱POL: Oficjalne polskie filtry przeciwko alertom o Adblocku",
"title": "🇵🇱pl: Oficjalne polskie filtry przeciwko alertom o Adblocku",
"tags": "ads polish polski",
"lang": "szl pl",
"contentURL": "https://raw.githubusercontent.com/olegwukr/polish-privacy-filters/master/anti-adblock.txt",
@ -765,7 +765,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇷🇴ROU: Romanian Ad (ROad) Block List Light",
"title": "🇷🇴ro: Romanian Ad (ROad) Block List Light",
"tags": "ads romanian română moldavian moldovenească молдовеняскэ",
"lang": "ro",
"contentURL": [
@ -778,7 +778,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇷🇺RUS, 🇺🇦UKR, 🇺🇿UZB: RU AdList",
"title": "🇷🇺ru 🇺🇦ua 🇺🇿uz 🇰🇿kz: RU AdList",
"tags": "ads belarusian беларуская kazakh tatar russian русский ukrainian українська uzbek",
"lang": "be kk tt ru uk uz",
"contentURL": "https://raw.githubusercontent.com/easylist/ruadlist/master/RuAdList-uBO.txt",
@ -793,7 +793,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇪🇸spa: EasyList Spanish",
"title": "🇪🇸es 🇦🇷ar 🇲🇽mx 🇨🇴co: EasyList Spanish",
"tags": "ads aragonese basque catalan spanish español galician guarani",
"lang": "an ast ca cak es eu gl gn trs quz",
"contentURL": "https://easylist-downloads.adblockplus.org/easylistspanish.txt",
@ -803,7 +803,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇪🇸spa, 🇧🇷🇵🇹por: AdGuard Spanish/Portuguese",
"title": "🇪🇸es 🇦🇷ar 🇧🇷br 🇵🇹pt: AdGuard Spanish/Portuguese",
"tags": "ads aragonese basque catalan spanish español galician guarani portuguese português",
"lang": "an ast ca cak es eu gl gn trs pt quz",
"contentURL": "https://filters.adtidy.org/extension/ublock/filters/9.txt",
@ -814,7 +814,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇸🇮SVN: Slovenian List",
"title": "🇸🇮si: Slovenian List",
"tags": "ads slovenian slovenski",
"lang": "sl",
"contentURL": "https://raw.githubusercontent.com/betterwebleon/slovenian-list/master/filters.txt",
@ -824,7 +824,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇸🇪SWE: Frellwit's Swedish Filter",
"title": "🇸🇪se: Frellwit's Swedish Filter",
"tags": "ads swedish svenska",
"lang": "sv",
"contentURL": "https://raw.githubusercontent.com/lassekongo83/Frellwits-filter-lists/master/Frellwits-Swedish-Filter.txt",
@ -834,7 +834,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇹🇭THA: EasyList Thailand",
"title": "🇹🇭th: EasyList Thailand",
"tags": "ads thai ไทย",
"lang": "th",
"contentURL": "https://raw.githubusercontent.com/easylist-thailand/easylist-thailand/master/subscription/easylist-thailand.txt",
@ -844,7 +844,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇹🇷TUR: AdGuard Turkish",
"title": "🇹🇷tr: AdGuard Turkish",
"tags": "ads turkish türkçe",
"lang": "tr",
"contentURL": "https://filters.adtidy.org/extension/ublock/filters/13.txt",
@ -855,7 +855,7 @@
"content": "filters",
"group": "regions",
"off": true,
"title": "🇻🇳VIE: ABPVN List",
"title": "🇻🇳vn: ABPVN List",
"tags": "ads vietnamese việt",
"lang": "vi",
"contentURL": "https://raw.githubusercontent.com/abpvn/abpvn/master/filter/abpvn_ublock.txt",

View File

@ -313,7 +313,7 @@ select {
height: var(--font-size);
position: relative;
top: calc(var(--font-size) / 7);
width: calc(var(--font-size) * 1.4);
max-width: calc(var(--font-size) * 1.4);
}
.logo {

View File

@ -294,18 +294,20 @@ if ( isBackgroundProcess !== true ) {
};
const unicodeFlagToImageSrc = new Map([
[ '🇦🇱', 'al' ], [ '🇧🇬', 'bg' ], [ '🇧🇷', 'br' ], [ '🇨🇳', 'cn' ],
[ '🇨🇿', 'cz' ], [ '🇩🇪', 'de' ], [ '🇩🇰', 'dk' ], [ '🇪🇪', 'ee' ],
[ '🇪🇸', 'es' ], [ '🇫🇮', 'fi' ], [ '🇫🇷', 'fr' ], [ '🇬🇷', 'gr' ],
[ '🇭🇷', 'hr' ], [ '🇭🇺', 'hu' ], [ '🇮🇩', 'id' ], [ '🇮🇱', 'il' ],
[ '🇮🇳', 'in' ], [ '🇮🇷', 'ir' ], [ '🇮🇸', 'is' ], [ '🇮🇹', 'it' ],
[ '🇯🇵', 'jp' ], [ '🇰🇷', 'kr' ], [ '🇰🇿', 'kz' ], [ '🇱🇰', 'lk' ],
[ '🇱🇹', 'lt' ], [ '🇱🇻', 'lv' ], [ '🇲🇰', 'mk' ], [ '🇲🇾', 'my' ],
[ '🇳🇱', 'nl' ], [ '🇳🇴', 'no' ], [ '🇳🇵', 'np' ], [ '🇵🇱', 'pl' ],
[ '🇵🇹', 'pt' ], [ '🇷🇴', 'ro' ], [ '🇷🇸', 'rs' ], [ '🇷🇺', 'ru' ],
[ '🇸🇮', 'si' ], [ '🇸🇰', 'sk' ], [ '🇸🇪', 'se' ], [ '🇹🇭', 'th' ],
[ '🇹🇼', 'tw' ], [ '🇹🇷', 'tr' ], [ '🇺🇦', 'ua' ], [ '🇺🇿', 'uz' ],
[ '🇻🇳', 'vn' ],
[ '🇦🇱', 'al' ], [ '🇦🇷', 'ar' ], [ '🇦🇹', 'at' ], [ '🇧🇬', 'bg' ],
[ '🇧🇷', 'br' ], [ '🇨🇦', 'ca' ], [ '🇨🇭', 'ch' ], [ '🇨🇳', 'cn' ],
[ '🇨🇴', 'co' ], [ '🇨🇿', 'cz' ], [ '🇩🇪', 'de' ], [ '🇩🇰', 'dk' ],
[ '🇩🇿', 'dz' ], [ '🇪🇪', 'ee' ], [ '🇪🇬', 'eg' ], [ '🇪🇸', 'es' ],
[ '🇫🇮', 'fi' ], [ '🇫🇷', 'fr' ], [ '🇬🇷', 'gr' ], [ '🇭🇷', 'hr' ],
[ '🇭🇺', 'hu' ], [ '🇮🇩', 'id' ], [ '🇮🇱', 'il' ], [ '🇮🇳', 'in' ],
[ '🇮🇷', 'ir' ], [ '🇮🇸', 'is' ], [ '🇮🇹', 'it' ], [ '🇯🇵', 'jp' ],
[ '🇰🇷', 'kr' ], [ '🇰🇿', 'kz' ], [ '🇱🇰', 'lk' ], [ '🇱🇹', 'lt' ],
[ '🇱🇻', 'lv' ], [ '🇲🇦', 'ma' ], [ '🇲🇰', 'mk' ], [ '🇲🇽', 'mx' ],
[ '🇲🇾', 'my' ], [ '🇳🇱', 'nl' ], [ '🇳🇴', 'no' ], [ '🇳🇵', 'np' ],
[ '🇵🇱', 'pl' ], [ '🇵🇹', 'pt' ], [ '🇷🇴', 'ro' ], [ '🇷🇸', 'rs' ],
[ '🇷🇺', 'ru' ], [ '🇸🇦', 'sa' ], [ '🇸🇮', 'si' ], [ '🇸🇰', 'sk' ],
[ '🇸🇪', 'se' ], [ '🇹🇭', 'th' ], [ '🇹🇼', 'tw' ], [ '🇹🇷', 'tr' ],
[ '🇺🇦', 'ua' ], [ '🇺🇿', 'uz' ], [ '🇻🇳', 'vn' ],
]);
const reUnicodeFlags = new RegExp(
Array.from(unicodeFlagToImageSrc).map(a => a[0]).join('|'),
@ -325,7 +327,7 @@ if ( isBackgroundProcess !== true ) {
img.src = `/img/flags-of-the-world/${countryCode}.png`;
img.title = countryCode;
img.classList.add('countryFlag');
fragment.append(img, '\u2009');
fragment.append(img, '\u200A');
i = reUnicodeFlags.lastIndex;
}
if ( i < text.length ) {