Skip to content

Commit f833032

Browse files
authored
Merge pull request gorhill#16 from gorhill/master
Re-sync with uBo master
2 parents 887e7d1 + 45f26d7 commit f833032

27 files changed

Lines changed: 249 additions & 284 deletions

dist/firefox/updates.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"uBlock0@raymondhill.net": {
44
"updates": [
55
{
6-
"version": "1.28.5.13",
6+
"version": "1.29.1.0",
77
"browser_specific_settings": { "gecko": { "strict_min_version": "55" } },
8-
"update_info_url": "https://github.com/gorhill/uBlock/releases/tag/1.28.5b13",
9-
"update_link": "https://github.com/gorhill/uBlock/releases/download/1.28.5b13/uBlock0_1.28.5b13.firefox.signed.xpi"
8+
"update_info_url": "https://github.com/gorhill/uBlock/releases/tag/1.29.1b0",
9+
"update_link": "https://github.com/gorhill/uBlock/releases/download/1.29.1b0/uBlock0_1.29.1b0.firefox.signed.xpi"
1010
}
1111
]
1212
}

dist/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.28.5.13
1+
1.29.1.0

docs/tests/static-filtering-parser-checklist.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ a*
3232
:: AB
3333
:: ab # comment
3434

35+
! valid hosts file entries
36+
0.0.0.0 0.0.0.0.example.com
37+
0.0.0.0 localhost.example.com
38+
0.0.0.0 local-host.example.com
39+
0.0.0.0 local.com
40+
0.0.0.0 localhost.com
41+
0.0.0.0 local-host.com
42+
3543
! valid options
3644
$script,redirect=noop.js
3745
*$empty
@@ -68,6 +76,11 @@ $
6876
::/ ab
6977
:: ab$
7078

79+
! ignored hosts file entries
80+
0.0.0.0 0.0.0.0
81+
0.0.0.0 local
82+
0.0.0.0 localhost
83+
7184
! bad regex
7285
/(abc|def/$xhr
7386

platform/chromium/vapi-background.js

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1599,28 +1599,14 @@ vAPI.cloud = (( ) => {
15991599
}
16001600
bin[dataKey + chunkCount.toString()] = ''; // Sentinel
16011601

1602-
let result;
1603-
let errorStr;
16041602
try {
1605-
result = await webext.storage.sync.set(bin);
1603+
await webext.storage.sync.set(bin);
16061604
} catch (reason) {
1607-
errorStr = reason;
1608-
}
1609-
1610-
// https://github.com/gorhill/uBlock/issues/3006#issuecomment-332597677
1611-
// - Delete all that was pushed in case of failure.
1612-
// - It's unknown whether such issue applies only to Firefox:
1613-
// until such cases are reported for other browsers, we will
1614-
// reset the (now corrupted) content of the cloud storage
1615-
// only on Firefox.
1616-
if ( errorStr !== undefined && vAPI.webextFlavor.soup.has('firefox') ) {
1617-
chunkCount = 0;
1605+
return String(reason);
16181606
}
16191607

16201608
// Remove potentially unused trailing chunks
16211609
deleteChunks(dataKey, chunkCount);
1622-
1623-
return errorStr;
16241610
};
16251611

16261612
const pull = async function(dataKey) {
@@ -1638,7 +1624,7 @@ vAPI.cloud = (( ) => {
16381624
try {
16391625
bin = await webext.storage.sync.get(chunkKeys);
16401626
} catch (reason) {
1641-
return reason;
1627+
return String(reason);
16421628
}
16431629

16441630
// Assemble chunks into a single string.

src/3p-filters.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
</div>
2525

2626
<div>
27-
<div class="li"><label><span class="input checkbox"><input type="checkbox" id="autoUpdate"><svg><use href="img/material-design.svg#checkmark" /></svg></span><span data-i18n="3pAutoUpdatePrompt1"></span></label></div>
28-
<div class="li"><label><span class="input checkbox"><input type="checkbox" id="parseCosmeticFilters"><svg><use href="img/material-design.svg#checkmark" /></svg></span><span><span data-i18n="3pParseAllABPHideFiltersPrompt1"></span>&nbsp;<span class="fa-icon info" data-i18n-title="3pParseAllABPHideFiltersInfo">question-circle</span></span></label>
27+
<div class="li"><label><span class="input checkbox"><input type="checkbox" id="autoUpdate"><svg viewBox="0 0 24 24"><path d="M1.73,12.91 8.1,19.28 22.79,4.59"/></svg></span><span data-i18n="3pAutoUpdatePrompt1"></span></label></div>
28+
<div class="li"><label><span class="input checkbox"><input type="checkbox" id="parseCosmeticFilters"><svg viewBox="0 0 24 24"><path d="M1.73,12.91 8.1,19.28 22.79,4.59"/></svg></span><span><span data-i18n="3pParseAllABPHideFiltersPrompt1"></span>&nbsp;<span class="fa-icon info" data-i18n-title="3pParseAllABPHideFiltersInfo">question-circle</span></span></label>
2929
</div>
30-
<div class="li"><label><span class="input checkbox"><input type="checkbox" id="ignoreGenericCosmeticFilters"><svg><use href="img/material-design.svg#checkmark" /></svg></span><span><span data-i18n="3pIgnoreGenericCosmeticFilters"></span>&nbsp;<span class="fa-icon info" data-i18n-title="3pIgnoreGenericCosmeticFiltersInfo">question-circle</span></span></label>
30+
<div class="li"><label><span class="input checkbox"><input type="checkbox" id="ignoreGenericCosmeticFilters"><svg viewBox="0 0 24 24"><path d="M1.73,12.91 8.1,19.28 22.79,4.59"/></svg></span><span><span data-i18n="3pIgnoreGenericCosmeticFilters"></span>&nbsp;<span class="fa-icon info" data-i18n-title="3pIgnoreGenericCosmeticFiltersInfo">question-circle</span></span></label>
3131
</div>
3232
</div>
3333

@@ -45,7 +45,7 @@
4545
<div class="listEntries"></div>
4646
</div>
4747
<div class="li listEntry">
48-
<label><span class="input checkbox"><input type="checkbox"><svg><use href="img/material-design.svg#checkmark" /></svg></span><span><span class="listname forinput"></span> <span class="iconbar"><!--
48+
<label><span class="input checkbox"><input type="checkbox"><svg viewBox="0 0 24 24"><path d="M1.73,12.91 8.1,19.28 22.79,4.59"/></svg></span><span><span class="listname forinput"></span> <span class="iconbar"><!--
4949
--><a class="fa-icon content" href="#" type="text/plain" target="_blank" data-i18n-title="3pViewContent">eye-open</a><!--
5050
--><a class="fa-icon support" href="#" target="_blank">home</a><!--
5151
--><span class="fa-icon remove">trash-o</span><!--
@@ -57,7 +57,7 @@
5757
 --><span class="fa-icon status failed" data-i18n-title="3pNetworkError">unlink</span><!--
5858
--><span class="counts"></span></span></span></label>
5959
</div>
60-
<div class="listEntry toImport"><label><span class="input checkbox"><input type="checkbox" id="importLists"><svg><use href="img/material-design.svg#checkmark" /></svg></span><span><span class="forinput" data-i18n="3pImport"></span> <a class="fa-icon info towiki" href="https://github.com/gorhill/uBlock/wiki/Filter-lists-from-around-the-web" target="_blank">info-circle</a></span></label><!--
60+
<div class="listEntry toImport"><label><span class="input checkbox"><input type="checkbox" id="importLists"><svg viewBox="0 0 24 24"><path d="M1.73,12.91 8.1,19.28 22.79,4.59"/></svg></span><span><span class="forinput" data-i18n="3pImport"></span> <a class="fa-icon info towiki" href="https://github.com/gorhill/uBlock/wiki/Filter-lists-from-around-the-web" target="_blank">info-circle</a></span></label><!--
6161
--><!--
6262
--><textarea id="externalLists" dir="ltr" spellcheck="false" placeholder="3pExternalListsHint"></textarea>
6363
</div>

src/_locales/ar/messages.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"description": "English: or"
9797
},
9898
"popupBlockedOnThisPage_v2": {
99-
"message": "Blocked on this page",
99+
"message": "تم الحظر على هاته الصفحة",
100100
"description": "For the new mobile-friendly popup design"
101101
},
102102
"popupBlockedSinceInstall_v2": {
@@ -180,11 +180,11 @@
180180
"description": "Tooltip for the no-scripting per-site switch"
181181
},
182182
"popupNoPopups_v2": {
183-
"message": "Pop-up windows",
183+
"message": "نافذة منبثقة",
184184
"description": "Caption for the no-popups per-site switch"
185185
},
186186
"popupNoLargeMedia_v2": {
187-
"message": "عناصر كبيرة للوسائط",
187+
"message": "وسائط ميديا كبيرة",
188188
"description": "Caption for the no-large-media per-site switch"
189189
},
190190
"popupNoCosmeticFiltering_v2": {
@@ -264,7 +264,7 @@
264264
"description": "appears in popup"
265265
},
266266
"popupVersion": {
267-
"message": "Version",
267+
"message": "نسخة",
268268
"description": "Example of use: Version 1.26.4"
269269
},
270270
"pickerCreate": {
@@ -468,7 +468,7 @@
468468
"description": "used as a tooltip for the out-of-date icon beside a list"
469469
},
470470
"3pViewContent": {
471-
"message": "view content",
471+
"message": "نظرة على المحتوى",
472472
"description": "used as a tooltip for eye icon beside a list"
473473
},
474474
"3pLastUpdate": {
@@ -712,7 +712,7 @@
712712
"description": "Label for the type selector"
713713
},
714714
"loggerStaticFilteringHeader": {
715-
"message": "فلترة ثابتة",
715+
"message": "ترشيح ثابتة",
716716
"description": "Small header to identify the static filtering section"
717717
},
718718
"loggerStaticFilteringSentence": {
@@ -840,15 +840,15 @@
840840
"description": "English: Contributors"
841841
},
842842
"aboutSourceCode": {
843-
"message": "Source code",
843+
"message": "شيفرة المصدر",
844844
"description": "Link text to source code repo"
845845
},
846846
"aboutTranslations": {
847-
"message": "Translations",
847+
"message": "الترجمات",
848848
"description": "Link text to translations repo"
849849
},
850850
"aboutFilterLists": {
851-
"message": "Filter lists",
851+
"message": "القوائم المرشحة",
852852
"description": "Link text to uBO's own filter lists repo"
853853
},
854854
"aboutDependencies": {
@@ -1020,7 +1020,7 @@
10201020
"description": "Label for buttons used to copy something to the clipboard"
10211021
},
10221022
"toggleBlockingProfile": {
1023-
"message": "Toggle blocking profile",
1023+
"message": "تبديل صفحة الحظر",
10241024
"description": "Label for keyboard shortcut used to toggle blocking profile"
10251025
},
10261026
"relaxBlockingMode": {
@@ -1032,15 +1032,15 @@
10321032
"description": " In Setting pane, renders as (example): Storage used: 13.2 MB"
10331033
},
10341034
"KB": {
1035-
"message": "KB",
1035+
"message": "كيلو بايت",
10361036
"description": "short for 'kilobytes'"
10371037
},
10381038
"MB": {
1039-
"message": "MB",
1039+
"message": "ميغا بايت",
10401040
"description": "short for 'megabytes'"
10411041
},
10421042
"GB": {
1043-
"message": "GB",
1043+
"message": "جيغا بايت",
10441044
"description": "short for 'gigabytes'"
10451045
},
10461046
"dummy": {

src/_locales/cv/messages.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"description": "English: uBlock₀ — Dashboard"
1313
},
1414
"dashboardUnsavedWarning": {
15-
"message": "Warning! You have unsaved changes",
15+
"message": "Асӑрха! Санӑн упраман улшӑнусем пур",
1616
"description": "A warning in the dashboard when navigating away from unsaved changes"
1717
},
1818
"dashboardUnsavedWarningStay": {
@@ -200,7 +200,7 @@
200200
"description": "Caption for the no-scripting per-site switch"
201201
},
202202
"popupMoreButton_v2": {
203-
"message": "More",
203+
"message": "Тата",
204204
"description": "Label to be used to show popup panel sections"
205205
},
206206
"popupLessButton_v2": {
@@ -492,7 +492,7 @@
492492
"description": "English: Import and append"
493493
},
494494
"1pExport": {
495-
"message": "Export",
495+
"message": "Куҫар",
496496
"description": "English: Export"
497497
},
498498
"1pExportFilename": {
@@ -696,7 +696,7 @@
696696
"description": "Label to identify the type of an entry"
697697
},
698698
"loggerEntryDetailsURL": {
699-
"message": "URL",
699+
"message": "Тӗл",
700700
"description": "Label to identify the URL of an entry"
701701
},
702702
"loggerURLFilteringHeader": {

src/_locales/da/messages.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"description": "appears as tab name in dashboard"
4141
},
4242
"whitelistPageName": {
43-
"message": "Whitelist",
43+
"message": "Betroede websteder",
4444
"description": "appears as tab name in dashboard"
4545
},
4646
"shortcutsPageName": {
@@ -552,7 +552,7 @@
552552
"description": "English: dynamic rule syntax and full documentation."
553553
},
554554
"whitelistPrompt": {
555-
"message": "Brugerdefineret liste over værtsnavne hvor uBlock₀ vil være deaktiveret. Kun et værtsnavn pr. linje. Ugyldige værtsnavne ignoreres.",
555+
"message": "De betroede webstedsdirektiver dikterer, på hvilke websider uBlock Origin skal deaktiveres. Én post pr. linje. Ugyldige direktiver ignoreres og kommenteres ud.",
556556
"description": "The name of the trusted sites pane."
557557
},
558558
"whitelistImport": {
@@ -564,7 +564,7 @@
564564
"description": "English: Export"
565565
},
566566
"whitelistExportFilename": {
567-
"message": "min-ublock-whitelist_{{datetime}}.txt",
567+
"message": "mine-ublock-betroede-websteder_{{datetime}}.txt",
568568
"description": "The default filename to use for import/export purpose"
569569
},
570570
"whitelistApply": {

src/_locales/et/messages.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"description": "appears as tab name in dashboard"
4141
},
4242
"whitelistPageName": {
43-
"message": "Valge loend",
43+
"message": "Usaldatud saidid",
4444
"description": "appears as tab name in dashboard"
4545
},
4646
"shortcutsPageName": {
@@ -552,7 +552,7 @@
552552
"description": "English: dynamic rule syntax and full documentation."
553553
},
554554
"whitelistPrompt": {
555-
"message": "Valge nimekirja direktiivid määravad, millistel veebilehtedel peaks uBlock Origin keelatud olema. Üks domeen rea kohta. Sobimatuid direktiive vaikselt ignoreeritakse ja kommenteeritakse välja.",
555+
"message": "Usaldatud saitide direktiivid määravad, millistel veebilehtedel peaks uBlock Origin keelatud olema. Üks kirje rea kohta. Sobimatuid direktiive vaikselt ignoreeritakse ja kommenteeritakse välja.",
556556
"description": "The name of the trusted sites pane."
557557
},
558558
"whitelistImport": {
@@ -564,7 +564,7 @@
564564
"description": "English: Export"
565565
},
566566
"whitelistExportFilename": {
567-
"message": "minu-ublocki-valge-loend_{{datetime}}.txt",
567+
"message": "minu-ublocki-usaldatud-saidid_{{datetime}}.txt",
568568
"description": "The default filename to use for import/export purpose"
569569
},
570570
"whitelistApply": {

src/_locales/ms/messages.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"description": "appears as tab name in dashboard"
2929
},
3030
"3pPageName": {
31-
"message": "Penapis pihak luar",
31+
"message": "Senarai penapis",
3232
"description": "appears as tab name in dashboard"
3333
},
3434
"1pPageName": {
@@ -236,7 +236,7 @@
236236
"description": ""
237237
},
238238
"popup3pPassiveRulePrompt": {
239-
"message": "css/imej pihak ketiga",
239+
"message": "CSS/imej pihak ketiga",
240240
"description": ""
241241
},
242242
"popupInlineScriptRulePrompt": {
@@ -612,31 +612,31 @@
612612
"description": "Tooltip for the popup panel button in the logger page"
613613
},
614614
"loggerInfoTip": {
615-
"message": "uBlock Origin wiki: The logger",
615+
"message": "uBlock Origin wiki: Catatan",
616616
"description": "Tooltip for the top-right info label in the logger page"
617617
},
618618
"loggerClearTip": {
619-
"message": "Clear logger",
619+
"message": "Kosongkan catatan",
620620
"description": "Tooltip for the eraser in the logger page; used to blank the content of the logger"
621621
},
622622
"loggerPauseTip": {
623-
"message": "Pause logger (discard all incoming data)",
623+
"message": "Jedakan catatan (singkirkan semua data masuk)",
624624
"description": "Tooltip for the pause button in the logger page"
625625
},
626626
"loggerUnpauseTip": {
627-
"message": "Unpause logger",
627+
"message": "Nyahjeda catatan",
628628
"description": "Tooltip for the play button in the logger page"
629629
},
630630
"loggerRowFiltererButtonTip": {
631-
"message": "Toggle logger filtering",
631+
"message": "Togol penapis catatan",
632632
"description": "Tooltip for the row filterer button in the logger page"
633633
},
634634
"logFilterPrompt": {
635-
"message": "filter logger content",
635+
"message": "tapis kandungan catatan",
636636
"description": "Placeholder string for logger output filtering input field"
637637
},
638638
"loggerRowFiltererBuiltinTip": {
639-
"message": "Logger filtering options",
639+
"message": "Pilihan tapisan catatan",
640640
"description": "Tooltip for the button to bring up logger output filtering options"
641641
},
642642
"loggerRowFiltererBuiltinNot": {
@@ -712,31 +712,31 @@
712712
"description": "Label for the type selector"
713713
},
714714
"loggerStaticFilteringHeader": {
715-
"message": "Static filter",
715+
"message": "Penapis statik",
716716
"description": "Small header to identify the static filtering section"
717717
},
718718
"loggerStaticFilteringSentence": {
719719
"message": "{{action}} network requests of {{type}} {{br}}which URL address matches {{url}} {{br}}and which originates {{origin}},{{br}}{{importance}} there is a matching exception filter.",
720720
"description": "Used in the static filtering wizard"
721721
},
722722
"loggerStaticFilteringSentencePartBlock": {
723-
"message": "Block",
723+
"message": "Sekat",
724724
"description": "Used in the static filtering wizard"
725725
},
726726
"loggerStaticFilteringSentencePartAllow": {
727-
"message": "Allow",
727+
"message": "Benarkan",
728728
"description": "Used in the static filtering wizard"
729729
},
730730
"loggerStaticFilteringSentencePartType": {
731-
"message": "type “{{type}}”",
731+
"message": "jenis “{{type}}”",
732732
"description": "Used in the static filtering wizard"
733733
},
734734
"loggerStaticFilteringSentencePartAnyType": {
735-
"message": "any type",
735+
"message": "pelbagai jenis",
736736
"description": "Used in the static filtering wizard"
737737
},
738738
"loggerStaticFilteringSentencePartOrigin": {
739-
"message": "from “{{origin}}”",
739+
"message": "dari “{{origin}}”",
740740
"description": "Used in the static filtering wizard"
741741
},
742742
"loggerStaticFilteringSentencePartAnyOrigin": {

0 commit comments

Comments
 (0)