Skip to content

Commit c2330cc

Browse files
committed
Merge tag '1.15.4' into safari
# Conflicts: # platform/chromium/manifest.json
2 parents f24f959 + 43eab7a commit c2330cc

26 files changed

+970
-157
lines changed

assets/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@
424424
"off": true,
425425
"title": "IRN: Adblock-Iran",
426426
"lang": "fa",
427-
"contentURL": "https://raw.githubusercontent.com/farrokhi/adblock-iran/master/filter.txt",
427+
"contentURL": "https://cdn.rawgit.com/farrokhi/adblock-iran/master/filter.txt",
428428
"supportURL": "https://github.com/farrokhi/adblock-iran"
429429
},
430430
"ISL-0": {

dist/description/description-fa.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
بررسی تصویری از کارایی این محصول: https://github.com/gorhill/uBlock/wiki/uBlock-vs.-ABP:-efficiency-compared
44

5-
کاربرد: دکمه ی پاور بزرگ در پنجره برای فعال یا غیر فعال کردن uBlock برای صفحه ی جاری است. فقط برای همین سایت اعمال میشود، دکمه ی پاوری برای تمام سایت ها نیست.
5+
روش استفاده: دکمۀ قدرت بزرگ در پنجرۀ بالاپَر برای فعال یا غیرفعال کردن دائمی یوبلاک برای وب‌سایت فعلی می‌باشد. این فقط برای همین سایت اعمال میشود، این دکمه ی قدرتی برای تمام سایت ها نیست.
66

77
***
88

9-
انعطاف پذیری آن بیشتر از "ad blocker" است: همچنین می تواند فیلتر ها را از هاست میزبان، بخواند و بسازد.
9+
انعطاف پذیری آن بیشتر از "ad blocker" است: این یکی همچنین می تواند فیلتر‌هایی را از فایل‌های هاست‌های میزبان، خوانده و بسازد.
1010

1111
بیرون از جعبه، این لیست فیلترها بارگذاری و اجرا میشوند:
1212

dist/description/description-kk.txt

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
An efficient blocker: easy on memory and CPU footprint, and yet can load and enforce thousands more filters than other popular blockers out there.
2+
3+
Illustrated overview of its efficiency: https://github.com/gorhill/uBlock/wiki/uBlock-vs.-ABP:-efficiency-compared
4+
5+
Usage: The big power button in the popup is to permanently disable/enable uBlock for the current web site. It applies to the current web site only, it is not a global power button.
6+
7+
***
8+
9+
Flexible, it's more than an "ad blocker": it can also read and create filters from hosts files.
10+
11+
Out of the box, these lists of filters are loaded and enforced:
12+
13+
- EasyList
14+
- Peter Lowe’s Ad server list
15+
- EasyPrivacy
16+
- Malware domains
17+
18+
More lists are available for you to select if you wish:
19+
20+
- Fanboy’s Enhanced Tracking List
21+
- Dan Pollock’s hosts file
22+
- hpHosts’s Ad and tracking servers
23+
- MVPS HOSTS
24+
- Spam404
25+
- And many others
26+
27+
Of course, the more filters enabled, the higher the memory footprint. Yet, even after adding Fanboy's two extra lists, hpHosts’s Ad and tracking servers, uBlock still has a lower memory footprint than other very popular blockers out there.
28+
29+
Also, be aware that selecting some of these extra lists may lead to higher likelihood of web site breakage -- especially those lists which are normally used as hosts file.
30+
31+
***
32+
33+
Without the preset lists of filters, this extension is nothing. So if ever you really do want to contribute something, think about the people working hard to maintain the filter lists you are using, which were made available to use by all for free.
34+
35+
***
36+
37+
Еркін.
38+
Open source with public license (GPLv3)
39+
For users by users.
40+
41+
Contributors @ Github: https://github.com/gorhill/uBlock/graphs/contributors
42+
Contributors @ Crowdin: https://crowdin.net/project/ublock
43+
44+
***
45+
46+
It's quite an early version, keep this in mind when you review.
47+
48+
Project change log:
49+
https://github.com/gorhill/uBlock/releases

platform/chromium/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 2,
33

44
"name": "uBlock Origin",
5-
"version": "1.14.24",
5+
"version": "1.15.4",
66

77
"commands": {
88
"launch-element-zapper": {

platform/webext/vapi-webrequest.js

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -61,46 +61,41 @@ vAPI.net.registerListeners = function() {
6161
var wrApi = browser.webRequest;
6262

6363
// legacy Chromium understands only these network request types.
64-
var validTypes = {
65-
main_frame: true,
66-
sub_frame: true,
67-
stylesheet: true,
68-
script: true,
69-
image: true,
70-
object: true,
71-
xmlhttprequest: true,
72-
other: true
73-
};
64+
var validTypes = new Set([
65+
'image',
66+
'main_frame',
67+
'object',
68+
'other',
69+
'script',
70+
'stylesheet',
71+
'sub_frame',
72+
'xmlhttprequest',
73+
]);
7474
// modern Chromium/WebExtensions: more types available.
7575
if ( wrApi.ResourceType ) {
7676
for ( let typeKey in wrApi.ResourceType ) {
7777
if ( wrApi.ResourceType.hasOwnProperty(typeKey) ) {
78-
validTypes[wrApi.ResourceType[typeKey]] = true;
78+
validTypes.add(wrApi.ResourceType[typeKey]);
7979
}
8080
}
8181
}
8282

8383
var denormalizeTypes = function(aa) {
8484
if ( aa.length === 0 ) {
85-
return Object.keys(validTypes);
85+
return Array.from(validTypes);
8686
}
87-
var out = [];
88-
var i = aa.length,
89-
type,
90-
needOther = true;
87+
var out = new Set(),
88+
i = aa.length;
9189
while ( i-- ) {
92-
type = aa[i];
93-
if ( validTypes[type] ) {
94-
out.push(type);
90+
var type = aa[i];
91+
if ( validTypes.has(type) ) {
92+
out.add(type);
9593
}
96-
if ( type === 'other' ) {
97-
needOther = false;
94+
if ( type === 'image' && validTypes.has('imageset') ) {
95+
out.add('imageset');
9896
}
9997
}
100-
if ( needOther ) {
101-
out.push('other');
102-
}
103-
return out;
98+
return Array.from(out);
10499
};
105100

106101
var punycode = self.punycode;
@@ -144,7 +139,7 @@ vAPI.net.registerListeners = function() {
144139
let urls = this.onBeforeRequest.urls || ['<all_urls>'];
145140
let types = this.onBeforeRequest.types || undefined;
146141
if (
147-
(validTypes.websocket) &&
142+
(validTypes.has('websocket')) &&
148143
(types === undefined || types.indexOf('websocket') !== -1) &&
149144
(urls.indexOf('<all_urls>') === -1)
150145
) {

src/_locales/bn/messages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@
512512
"description": "Pretty name for behind-the-scene network requests"
513513
},
514514
"loggerCurrentTab": {
515-
"message": "Current tab",
515+
"message": "বর্তমান ট্যাব",
516516
"description": "Appears in the logger's tab selector"
517517
},
518518
"logFilterPrompt": {

src/_locales/cs/messages.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "extension name."
55
},
66
"extShortDesc": {
7-
"message": "Konečně efektivní blokovač, který nezatěžuje CPU a paměť.",
7+
"message": "Konečně efektivní blokovač. Nezatěžuje CPU a paměť.",
88
"description": "this will be in the chrome web store: must be 132 characters or less"
99
},
1010
"dashboardName": {
@@ -52,7 +52,7 @@
5252
"description": "Message to be read by screen readers"
5353
},
5454
"popupPowerSwitchInfo2": {
55-
"message": "Click to enable uBlock₀ for this site.",
55+
"message": "Kliknutím povolíte uBlock₀ pro tento web.",
5656
"description": "Message to be read by screen readers"
5757
},
5858
"popupBlockedRequestPrompt": {
@@ -96,47 +96,47 @@
9696
"description": "Tooltip for the no-popups per-site switch"
9797
},
9898
"popupTipNoPopups1": {
99-
"message": "Click to block all popups on this site",
99+
"message": "Kliknutím zablokujete všechny popupy pro tento web",
100100
"description": "Tooltip for the no-popups per-site switch"
101101
},
102102
"popupTipNoPopups2": {
103-
"message": "Zhbllokoj të gjitha dritaret automatike të faqes",
103+
"message": "Kliknutím vypnete blokování všech popupů pro tento web",
104104
"description": "Tooltip for the no-popups per-site switch"
105105
},
106106
"popupTipNoLargeMedia": {
107107
"message": "Přepnout blokování velkých multimediálních prvků na tomto webu",
108108
"description": "Tooltip for the no-large-media per-site switch"
109109
},
110110
"popupTipNoLargeMedia1": {
111-
"message": "Click to block large media elements on this site",
111+
"message": "Kliknutím zablokujete velké multimediální prvky na tomto webu",
112112
"description": "Tooltip for the no-large-media per-site switch"
113113
},
114114
"popupTipNoLargeMedia2": {
115-
"message": "Click to no longer block large media elements on this site",
115+
"message": "Kliknutím vypnete blokování velkých multimediálních prvků na tomto webu",
116116
"description": "Tooltip for the no-large-media per-site switch"
117117
},
118118
"popupTipNoCosmeticFiltering": {
119119
"message": "Přepnout kosmetické filtrování na tomto webu",
120120
"description": "Tooltip for the no-cosmetic-filtering per-site switch"
121121
},
122122
"popupTipNoCosmeticFiltering1": {
123-
"message": "Click to disable cosmetic filtering on this site",
123+
"message": "Kliknutím zakážete kosmetické filtrování na tomto webu",
124124
"description": "Tooltip for the no-cosmetic-filtering per-site switch"
125125
},
126126
"popupTipNoCosmeticFiltering2": {
127-
"message": "Click to enable cosmetic filtering on this site",
127+
"message": "Kliknutím povolíte kosmetické filtrování na tomto webu",
128128
"description": "Tooltip for the no-cosmetic-filtering per-site switch"
129129
},
130130
"popupTipNoRemoteFonts": {
131131
"message": "Přepnout blokování vzdálených fontů pro tento web",
132132
"description": "Tooltip for the no-remote-fonts per-site switch"
133133
},
134134
"popupTipNoRemoteFonts1": {
135-
"message": "Click to block remote fonts on this site",
135+
"message": "Kliknutím zablokujete externí\/vzdálené fonty na tomto webu",
136136
"description": "Tooltip for the no-remote-fonts per-site switch"
137137
},
138138
"popupTipNoRemoteFonts2": {
139-
"message": "Click to no longer block remote fonts on this site",
139+
"message": "Kliknutím vypnete blokování externích\/vzdálených fontů na tomto webu",
140140
"description": "Tooltip for the no-remote-fonts per-site switch"
141141
},
142142
"popupTipGlobalRules": {
@@ -512,7 +512,7 @@
512512
"description": "Pretty name for behind-the-scene network requests"
513513
},
514514
"loggerCurrentTab": {
515-
"message": "Current tab",
515+
"message": "Aktivní list",
516516
"description": "Appears in the logger's tab selector"
517517
},
518518
"logFilterPrompt": {

0 commit comments

Comments
 (0)