Skip to content

Commit 2601db8

Browse files
authored
Merge pull request gorhill#28 from gorhill/master
Re-sync with uBo master
2 parents 3861d05 + b392866 commit 2601db8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+3416
-791
lines changed

assets/resources/scriptlets.js

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -613,16 +613,21 @@
613613
apply: function(target, thisArg, args) {
614614
let proceed = true;
615615
try {
616-
const url = args[0] instanceof self.Request
617-
? args[0].url
618-
: args[0];
619-
const props = new Map([ [ 'url', url ] ]);
620-
const init = args[1];
621-
if ( init instanceof Object ) {
622-
for ( const prop in init ) {
623-
if ( init.hasOwnProperty(prop) === false ) { continue; }
624-
props.set( prop, init[prop]);
616+
let details;
617+
if ( args[0] instanceof self.Request ) {
618+
details = args[0];
619+
} else {
620+
details = Object.assign({ url: args[0] }, args[1]);
621+
}
622+
const props = new Map();
623+
for ( const prop in details ) {
624+
let v = details[prop];
625+
if ( typeof v !== 'string' ) {
626+
try { v = JSON.stringify(v); }
627+
catch(ex) { }
625628
}
629+
if ( typeof v !== 'string' ) { continue; }
630+
props.set(prop, v);
626631
}
627632
if ( log !== undefined ) {
628633
const out = Array.from(props)

dist/firefox/updates.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
44
"updates": [
55
{
6-
"version": "1.31.3.14",
6+
"version": "1.32.5.5",
77
"browser_specific_settings": { "gecko": { "strict_min_version": "55" } },
8-
"update_link": "https://github.com/gorhill/uBlock/releases/download/1.31.3b14/uBlock0_1.31.3b14.firefox.signed.xpi"
8+
"update_link": "https://github.com/gorhill/uBlock/releases/download/1.32.5b5/uBlock0_1.32.5b5.firefox.signed.xpi"
99
}
1010
]
1111
}

dist/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.31.3.14
1+
1.32.5.5

platform/chromium/managed_storage.json

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,41 @@
33
"type": "object",
44
"properties": {
55
"adminSettings": {
6-
"title": "A valid JSON string compliant with uBO's backup format.",
6+
"title": "A valid JSON string compliant with uBO's backup format",
77
"description": "All entries present will overwrite local settings.",
88
"type": "string"
9+
},
10+
"toSet": {
11+
"title": "Settings to overwrite at launch time",
12+
"type": "object",
13+
"properties": {
14+
"hiddenSettings": {
15+
"title": "A list of [name,value] pairs to populate hidden settings",
16+
"type": "array",
17+
"items": {
18+
"title": "A [name,value] pair",
19+
"type": "array",
20+
"items": { "type": "string" }
21+
}
22+
},
23+
"trustedSiteDirectives": {
24+
"title": "A list of trusted-site directives",
25+
"type": "array",
26+
"items": { "type": "string" }
27+
}
28+
}
29+
},
30+
"toAdd": {
31+
"title": "Settings to add at launch time",
32+
"type": "object",
33+
"properties": {
34+
"trustedSiteDirectives": {
35+
"title": "A list of trusted-site directives",
36+
"description": "Trusted-site directives to always add at launch time.",
37+
"type": "array",
38+
"items": { "type": "string" }
39+
}
40+
}
941
}
1042
}
1143
}

platform/chromium/vapi-background.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,21 +1417,22 @@ vAPI.commands = browser.commands;
14171417
vAPI.adminStorage = (( ) => {
14181418
if ( webext.storage.managed instanceof Object === false ) {
14191419
return {
1420-
getItem: function() {
1420+
get: function() {
14211421
return Promise.resolve();
14221422
},
14231423
};
14241424
}
14251425
return {
1426-
getItem: async function(key) {
1426+
get: async function(key) {
14271427
let bin;
14281428
try {
14291429
bin = await webext.storage.managed.get(key);
14301430
} catch(ex) {
14311431
}
1432-
if ( bin instanceof Object ) {
1432+
if ( typeof key === 'string' && bin instanceof Object ) {
14331433
return bin[key];
14341434
}
1435+
return bin;
14351436
}
14361437
};
14371438
})();

src/1p-filters.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
<script src="lib/codemirror/addon/scroll/annotatescrollbar.js"></script>
5050
<script src="lib/codemirror/addon/search/searchcursor.js"></script>
5151
<script src="lib/codemirror/addon/selection/active-line.js"></script>
52+
<script src="lib/regexanalyzer/regex.js"></script>
5253

5354
<script src="js/codemirror/search.js"></script>
5455
<script src="js/codemirror/search-thread.js"></script>

src/_locales/ar/messages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@
10281028
"description": ""
10291029
},
10301030
"contextMenuBlockElementInFrame": {
1031-
"message": "Block element in frame...",
1031+
"message": "احظر العنصر في البرواز...",
10321032
"description": "An entry in the browser's contextual menu"
10331033
},
10341034
"contextMenuTemporarilyAllowLargeMediaElements": {

src/_locales/id/messages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@
912912
"description": "No longer used"
913913
},
914914
"subscribeButton": {
915-
"message": "Langganan",
915+
"message": "Berlangganan",
916916
"description": "For the button used to subscribe to a filter list"
917917
},
918918
"elapsedOneMinuteAgo": {

src/_locales/oc/messages.json

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
"description": "Caption for the no-large-media per-site switch"
189189
},
190190
"popupNoCosmeticFiltering_v2": {
191-
"message": "Cosmetic filtering",
191+
"message": "Filtres cosmetics",
192192
"description": "Caption for the no-cosmetic-filtering per-site switch"
193193
},
194194
"popupNoRemoteFonts_v2": {
@@ -232,7 +232,7 @@
232232
"description": ""
233233
},
234234
"popup3pAnyRulePrompt": {
235-
"message": "3rd-party",
235+
"message": "Tèrça partida",
236236
"description": ""
237237
},
238238
"popup3pPassiveRulePrompt": {
@@ -360,7 +360,7 @@
360360
"description": ""
361361
},
362362
"settingsNoRemoteFontsPrompt": {
363-
"message": "Block remote fonts",
363+
"message": "Blocar las poliças distantas",
364364
"description": ""
365365
},
366366
"settingsNoScriptingPrompt": {
@@ -372,11 +372,11 @@
372372
"description": "background information: https://github.com/gorhill/uBlock/issues/3150"
373373
},
374374
"settingsLastRestorePrompt": {
375-
"message": "Last restore:",
375+
"message": "Darrièra restauracion :",
376376
"description": "English: Last restore:"
377377
},
378378
"settingsLastBackupPrompt": {
379-
"message": "Last backup:",
379+
"message": "Darrièra salvagarda :",
380380
"description": "English: Last backup:"
381381
},
382382
"3pListsOfBlockedHostsPrompt": {
@@ -428,15 +428,15 @@
428428
"description": "Header for the uBlock filters section in 'Filter lists pane'"
429429
},
430430
"3pGroupAds": {
431-
"message": "Ads",
431+
"message": "Publicitats",
432432
"description": "English: Ads"
433433
},
434434
"3pGroupPrivacy": {
435-
"message": "Privacy",
435+
"message": "Confidencialitat",
436436
"description": "English: Privacy"
437437
},
438438
"3pGroupMalware": {
439-
"message": "Malware domains",
439+
"message": "Domenis malfasents",
440440
"description": "English: Malware domains"
441441
},
442442
"3pGroupAnnoyances": {
@@ -552,19 +552,19 @@
552552
"description": "English: dynamic rule syntax and full documentation."
553553
},
554554
"rulesSort": {
555-
"message": "Sort:",
555+
"message": "Triar :",
556556
"description": "English: label for sort option."
557557
},
558558
"rulesSortByType": {
559559
"message": "Rule type",
560560
"description": "English: a sort option for list of rules."
561561
},
562562
"rulesSortBySource": {
563-
"message": "Source",
563+
"message": "Font",
564564
"description": "English: a sort option for list of rules."
565565
},
566566
"rulesSortByDestination": {
567-
"message": "Destination",
567+
"message": "Destinacion",
568568
"description": "English: a sort option for list of rules."
569569
},
570570
"whitelistPrompt": {
@@ -576,7 +576,7 @@
576576
"description": "English: Import and append"
577577
},
578578
"whitelistExport": {
579-
"message": "Export",
579+
"message": "Exportar",
580580
"description": "English: Export"
581581
},
582582
"whitelistExportFilename": {
@@ -600,7 +600,7 @@
600600
"description": "English: URL"
601601
},
602602
"logRequestsHeaderFilter": {
603-
"message": "Filter",
603+
"message": "Filtre",
604604
"description": "English: Filter"
605605
},
606606
"logAll": {
@@ -692,7 +692,7 @@
692692
"description": "Label to identify a filter field"
693693
},
694694
"loggerEntryDetailsFilterList": {
695-
"message": "Filter list",
695+
"message": "Lista de filtre",
696696
"description": "Label to identify a filter list field"
697697
},
698698
"loggerEntryDetailsRule": {
@@ -820,11 +820,11 @@
820820
"description": "A label for the partyness column"
821821
},
822822
"loggerExportFormatList": {
823-
"message": "List",
823+
"message": "Lista",
824824
"description": "Label for radio-button to pick export format"
825825
},
826826
"loggerExportFormatTable": {
827-
"message": "Table",
827+
"message": "Tablèu",
828828
"description": "Label for radio-button to pick export format"
829829
},
830830
"loggerExportEncodePlain": {
@@ -844,27 +844,27 @@
844844
"description": "English: project' wiki on GitHub"
845845
},
846846
"aboutSupport": {
847-
"message": "Support",
847+
"message": "Assisténcia",
848848
"description": "A link for where to get support"
849849
},
850850
"aboutIssues": {
851-
"message": "Issue tracker",
851+
"message": "Seguidor d’avarias",
852852
"description": "Text for a link to official issue tracker"
853853
},
854854
"aboutCode": {
855-
"message": "Source code (GPLv3)",
855+
"message": "Còdi font (GPLv3)",
856856
"description": "English: Source code (GPLv3)"
857857
},
858858
"aboutContributors": {
859859
"message": "Contributors",
860860
"description": "English: Contributors"
861861
},
862862
"aboutSourceCode": {
863-
"message": "Source code",
863+
"message": "Còdi font",
864864
"description": "Link text to source code repo"
865865
},
866866
"aboutTranslations": {
867-
"message": "Translations",
867+
"message": "Traduccions",
868868
"description": "Link text to translations repo"
869869
},
870870
"aboutFilterLists": {
@@ -916,27 +916,27 @@
916916
"description": "For the button used to subscribe to a filter list"
917917
},
918918
"elapsedOneMinuteAgo": {
919-
"message": "a minute ago",
919+
"message": "fa una minuta",
920920
"description": "English: a minute ago"
921921
},
922922
"elapsedManyMinutesAgo": {
923-
"message": "{{value}} minutes ago",
923+
"message": "fa {{value}} minutas",
924924
"description": "English: {{value}} minutes ago"
925925
},
926926
"elapsedOneHourAgo": {
927-
"message": "an hour ago",
927+
"message": "fa una ora",
928928
"description": "English: an hour ago"
929929
},
930930
"elapsedManyHoursAgo": {
931-
"message": "{{value}} hours ago",
931+
"message": "fa {{value}} oras",
932932
"description": "English: {{value}} hours ago"
933933
},
934934
"elapsedOneDayAgo": {
935-
"message": "a day ago",
935+
"message": "a un jorn",
936936
"description": "English: a day ago"
937937
},
938938
"elapsedManyDaysAgo": {
939-
"message": "{{value}} days ago",
939+
"message": "fa {{value}} jorns",
940940
"description": "English: {{value}} days ago"
941941
},
942942
"showDashboardButton": {
@@ -1012,7 +1012,7 @@
10121012
"description": "A warning to users at the top of 'Advanced settings' page"
10131013
},
10141014
"genericSubmit": {
1015-
"message": "Submit",
1015+
"message": "Mandar",
10161016
"description": "for generic 'Submit' buttons"
10171017
},
10181018
"genericApplyChanges": {
@@ -1036,15 +1036,15 @@
10361036
"description": "A context menu entry, present when large media elements have been blocked on the current site"
10371037
},
10381038
"shortcutCapturePlaceholder": {
1039-
"message": "Type a shortcut",
1039+
"message": "Picar un acorchi",
10401040
"description": "Placeholder string for input field used to capture a keyboard shortcut"
10411041
},
10421042
"genericMergeViewScrollLock": {
10431043
"message": "Toggle locked scrolling",
10441044
"description": "Tooltip for the button used to lock scrolling between the views in the 'My rules' pane"
10451045
},
10461046
"genericCopyToClipboard": {
1047-
"message": "Copy to clipboard",
1047+
"message": "Copiar al quichapapièrs",
10481048
"description": "Label for buttons used to copy something to the clipboard"
10491049
},
10501050
"toggleBlockingProfile": {
@@ -1060,19 +1060,19 @@
10601060
"description": " In Setting pane, renders as (example): Storage used: 13.2 MB"
10611061
},
10621062
"KB": {
1063-
"message": "KB",
1063+
"message": "Ko",
10641064
"description": "short for 'kilobytes'"
10651065
},
10661066
"MB": {
1067-
"message": "MB",
1067+
"message": "Mo",
10681068
"description": "short for 'megabytes'"
10691069
},
10701070
"GB": {
1071-
"message": "GB",
1071+
"message": "Go",
10721072
"description": "short for 'gigabytes'"
10731073
},
10741074
"clickToLoad": {
1075-
"message": "Click to load",
1075+
"message": "Clicatz per cargar",
10761076
"description": "Message used in frame placeholders"
10771077
},
10781078
"dummy": {

0 commit comments

Comments
 (0)