Skip to content

Commit ab29428

Browse files
author
Atlassian Bamboo
committed
deploy: update dist v1.7.10
1 parent 58d4865 commit ab29428

File tree

7 files changed

+67
-41
lines changed

7 files changed

+67
-41
lines changed

dist/build.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=1.7.6
1+
version=1.7.10

dist/redirects.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,14 @@
319319
},
320320
{
321321
"title": "prevent-bab",
322-
"aliases": [],
322+
"aliases": [
323+
"nobab.js",
324+
"ubo-nobab.js",
325+
"bab-defuser.js",
326+
"ubo-bab-defuser.js",
327+
"ubo-nobab",
328+
"ubo-bab-defuser"
329+
],
323330
"isBlocking": false,
324331
"contentType": "application/javascript;base64",
325332
"content": "IWZ1bmN0aW9uKHNvdXJjZSxhcmdzKXtmdW5jdGlvbiBoaXQoc291cmNlKXtpZighMD09PXNvdXJjZS52ZXJib3NlKXt0cnl7dmFyIGxvZz1jb25zb2xlLmxvZy5iaW5kKGNvbnNvbGUpLHRyYWNlPWNvbnNvbGUudHJhY2UuYmluZChjb25zb2xlKSxwcmVmaXg9c291cmNlLnJ1bGVUZXh0fHwiIjtpZihzb3VyY2UuZG9tYWluTmFtZSl7dmFyIHJ1bGVTdGFydEluZGV4O3NvdXJjZS5ydWxlVGV4dC5pbmRleE9mKCIjJSMvLyIpPi0xP3J1bGVTdGFydEluZGV4PXNvdXJjZS5ydWxlVGV4dC5pbmRleE9mKCIjJSMvLyIpOnNvdXJjZS5ydWxlVGV4dC5pbmRleE9mKCIjIytqcyIpPi0xJiYocnVsZVN0YXJ0SW5kZXg9c291cmNlLnJ1bGVUZXh0LmluZGV4T2YoIiMjK2pzIikpO3ZhciBydWxlUGFydD1zb3VyY2UucnVsZVRleHQuc2xpY2UocnVsZVN0YXJ0SW5kZXgpO3ByZWZpeD0iIi5jb25jYXQoc291cmNlLmRvbWFpbk5hbWUpLmNvbmNhdChydW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CbG9jayIsImFkZEV2ZW50TGlzdGVuZXIiLCJkb1Njcm9sbCIsImZyb21DaGFyQ29kZSIsIjw8MnxyPj40Iiwic2Vzc2lvblN0b3JhZ2UiLCJjbGllbnRXaWR0aCIsImxvY2FsU3RvcmFnZSIsIk1hdGgiLCJyYW5kb20iXV0sbmF0aXZlRXZhbD13aW5kb3cuZXZhbDt3aW5kb3cuZXZhbD1mdW5jdGlvbihzdHIpe2lmKCFmdW5jdGlvbihzdHIpe2lmKCJzdHJpbmciIT10eXBlb2Ygc3RyKXJldHVybiExO2Zvcih2YXIgaT0wO2k8c2lnbmF0dXJlcy5sZW5ndGg7aSs9MSl7Zm9yKHZhciB0b2tlbnM9c2lnbmF0dXJlc1tpXSxtYXRjaD0wLGo9MDtqPHRva2Vucy5sZW5ndGg7ais9MSl7dmFyIHRva2VuPXRva2Vuc1tqXTsodG9rZW4gaW5zdGFuY2VvZiBSZWdFeHA/dG9rZW4udGVzdChzdHIpOnN0ci5pbmRleE9mKHRva2VuKT4tMSkmJihtYXRjaCs9MSl9aWYobWF0Y2gvdG9rZW5zLmxlbmd0aD49LjgpcmV0dXJuITB9cmV0dXJuITF9KHN0cikpcmV0dXJuIG5hdGl2ZUV2YWwoc3RyKTtoaXQoc291cmNlKTt2YXIgYm9keUVsPWRvY3VtZW50LmJvZHk7Ym9keUVsJiZib2R5RWwuc3R5bGUucmVtb3ZlUHJvcGVydHkoInZpc2liaWxpdHkiKTt2YXIgZWw9ZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoImJhYmFzYm1zZ3giKTtlbCYmZWwucGFyZW50Tm9kZS5yZW1vdmVDaGlsZChlbCl9LmJpbmQod2luZG93KX0pLmFwcGx5KHRoaXMsdXBkYXRlZEFyZ3MpfWNhdGNoKGUpe2NvbnNvbGUubG9nKGUpfX0oe25hbWU6InByZXZlbnQtYmFiIixhcmdzOltdfSxbXSk7"

dist/redirects.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#
22
# AdGuard Scriptlets (Redirects Source)
3-
# Version 1.7.6
3+
# Version 1.7.10
44
#
55
- title: 1x1-transparent.gif
66
description: |-
@@ -3050,7 +3050,13 @@
30503050

30513051
- title: prevent-bab
30523052
comment: Prevents BlockAdblock script from detecting an ad blocker.
3053-
aliases: []
3053+
aliases:
3054+
- nobab.js
3055+
- ubo-nobab.js
3056+
- bab-defuser.js
3057+
- ubo-bab-defuser.js
3058+
- ubo-nobab
3059+
- ubo-bab-defuser
30543060
contentType: application/javascript
30553061
content: |-
30563062
(function(source, args) {

dist/scriptlets.corelibs.json

Lines changed: 10 additions & 4 deletions
Large diffs are not rendered by default.

dist/scriptlets.js

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
/**
33
* AdGuard Scriptlets
4-
* Version 1.7.6
4+
* Version 1.7.10
55
*/
66

77
(function () {
@@ -3540,9 +3540,10 @@
35403540
};
35413541
window.eval = evalWrapper.bind(window);
35423542
}
3543-
preventBab$2.names = ['prevent-bab',
3544-
// aliases are needed for matching the related scriptlet converted into our syntax
3545-
'nobab.js', 'ubo-nobab.js', 'bab-defuser.js', 'ubo-bab-defuser.js', 'ubo-nobab', 'ubo-bab-defuser'];
3543+
preventBab$2.names = ['prevent-bab'
3544+
// there is no aliases for this scriptlet
3545+
];
3546+
35463547
preventBab$2.injections = [hit];
35473548

35483549
/* eslint-disable no-unused-vars, no-extra-bind, func-names */
@@ -5236,7 +5237,7 @@
52365237
*/
52375238
function setCookieReload$1(source, name, value) {
52385239
var path = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '/';
5239-
if (isCookieSetWithValue(name, value)) {
5240+
if (isCookieSetWithValue(document.cookie, name, value)) {
52405241
return;
52415242
}
52425243
var validValue = getLimitedCookieValue(value);
@@ -6360,7 +6361,7 @@
63606361
return Reflect.apply(target, thisArg, args);
63616362
}
63626363
var eventName = args[0];
6363-
var isMatched = thisArg.getAttribute(source.name) === 'matched' && eventName === 'error';
6364+
var isMatched = typeof thisArg.getAttribute === 'function' && thisArg.getAttribute(source.name) === 'matched' && eventName === 'error';
63646365
if (isMatched) {
63656366
return Reflect.apply(target, thisArg, [eventName, noopFunc]);
63666367
}
@@ -9132,9 +9133,9 @@
91329133
* ```
91339134
*/
91349135
var preventBab$1 = preventBab$2;
9135-
preventBab$1.names = ['prevent-bab'
9136+
preventBab$1.names = ['prevent-bab',
91369137
// list of prevent-bab redirect aliases
9137-
];
9138+
'nobab.js', 'ubo-nobab.js', 'bab-defuser.js', 'ubo-bab-defuser.js', 'ubo-nobab', 'ubo-bab-defuser'];
91389139

91399140
/**
91409141
* @redirect amazon-apstag
@@ -13615,6 +13616,12 @@
1361513616
"prebid-ads.js": "prebid-ads.js",
1361613617
prebid: "prebid.js",
1361713618
"prevent-bab": "prevent-bab.js",
13619+
"nobab.js": "prevent-bab.js",
13620+
"ubo-nobab.js": "prevent-bab.js",
13621+
"bab-defuser.js": "prevent-bab.js",
13622+
"ubo-bab-defuser.js": "prevent-bab.js",
13623+
"ubo-nobab": "prevent-bab.js",
13624+
"ubo-bab-defuser": "prevent-bab.js",
1361813625
"prevent-bab2": "prevent-bab2.js",
1361913626
"nobab2.js": "prevent-bab2.js",
1362013627
"prevent-fab-3.2.0": "prevent-fab-3.2.0.js",
@@ -16873,7 +16880,7 @@
1687316880
return Reflect.apply(target, thisArg, args);
1687416881
}
1687516882
var eventName = args[0];
16876-
var isMatched = thisArg.getAttribute(source.name) === "matched" && eventName === "error";
16883+
var isMatched = typeof thisArg.getAttribute === "function" && thisArg.getAttribute(source.name) === "matched" && eventName === "error";
1687716884
if (isMatched) {
1687816885
return Reflect.apply(target, thisArg, [eventName, noopFunc]);
1687916886
}
@@ -19867,7 +19874,7 @@
1986719874
function setCookieReload(source, args) {
1986819875
function setCookieReload(source, name, value) {
1986919876
var path = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "/";
19870-
if (isCookieSetWithValue(name, value)) {
19877+
if (isCookieSetWithValue(document.cookie, name, value)) {
1987119878
return;
1987219879
}
1987319880
var validValue = getLimitedCookieValue(value);
@@ -21680,12 +21687,6 @@
2168021687
"ubo-adfly-defuser.js": preventAdfly,
2168121688
"ubo-adfly-defuser": preventAdfly,
2168221689
"prevent-bab": preventBab,
21683-
"nobab.js": preventBab,
21684-
"ubo-nobab.js": preventBab,
21685-
"bab-defuser.js": preventBab,
21686-
"ubo-bab-defuser.js": preventBab,
21687-
"ubo-nobab": preventBab,
21688-
"ubo-bab-defuser": preventBab,
2168921690
"prevent-element-src-loading": preventElementSrcLoading,
2169021691
"prevent-eval-if": preventEvalIf,
2169121692
"noeval-if.js": preventEvalIf,

dist/umd/scriptlets.umd.js

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
/**
33
* AdGuard Scriptlets
4-
* Version 1.7.6
4+
* Version 1.7.10
55
*/
66

77
(function (factory) {
@@ -3542,9 +3542,10 @@
35423542
};
35433543
window.eval = evalWrapper.bind(window);
35443544
}
3545-
preventBab$2.names = ['prevent-bab',
3546-
// aliases are needed for matching the related scriptlet converted into our syntax
3547-
'nobab.js', 'ubo-nobab.js', 'bab-defuser.js', 'ubo-bab-defuser.js', 'ubo-nobab', 'ubo-bab-defuser'];
3545+
preventBab$2.names = ['prevent-bab'
3546+
// there is no aliases for this scriptlet
3547+
];
3548+
35483549
preventBab$2.injections = [hit];
35493550

35503551
/* eslint-disable no-unused-vars, no-extra-bind, func-names */
@@ -5238,7 +5239,7 @@
52385239
*/
52395240
function setCookieReload$1(source, name, value) {
52405241
var path = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '/';
5241-
if (isCookieSetWithValue(name, value)) {
5242+
if (isCookieSetWithValue(document.cookie, name, value)) {
52425243
return;
52435244
}
52445245
var validValue = getLimitedCookieValue(value);
@@ -6362,7 +6363,7 @@
63626363
return Reflect.apply(target, thisArg, args);
63636364
}
63646365
var eventName = args[0];
6365-
var isMatched = thisArg.getAttribute(source.name) === 'matched' && eventName === 'error';
6366+
var isMatched = typeof thisArg.getAttribute === 'function' && thisArg.getAttribute(source.name) === 'matched' && eventName === 'error';
63666367
if (isMatched) {
63676368
return Reflect.apply(target, thisArg, [eventName, noopFunc]);
63686369
}
@@ -9134,9 +9135,9 @@
91349135
* ```
91359136
*/
91369137
var preventBab$1 = preventBab$2;
9137-
preventBab$1.names = ['prevent-bab'
9138+
preventBab$1.names = ['prevent-bab',
91389139
// list of prevent-bab redirect aliases
9139-
];
9140+
'nobab.js', 'ubo-nobab.js', 'bab-defuser.js', 'ubo-bab-defuser.js', 'ubo-nobab', 'ubo-bab-defuser'];
91409141

91419142
/**
91429143
* @redirect amazon-apstag
@@ -13617,6 +13618,12 @@
1361713618
"prebid-ads.js": "prebid-ads.js",
1361813619
prebid: "prebid.js",
1361913620
"prevent-bab": "prevent-bab.js",
13621+
"nobab.js": "prevent-bab.js",
13622+
"ubo-nobab.js": "prevent-bab.js",
13623+
"bab-defuser.js": "prevent-bab.js",
13624+
"ubo-bab-defuser.js": "prevent-bab.js",
13625+
"ubo-nobab": "prevent-bab.js",
13626+
"ubo-bab-defuser": "prevent-bab.js",
1362013627
"prevent-bab2": "prevent-bab2.js",
1362113628
"nobab2.js": "prevent-bab2.js",
1362213629
"prevent-fab-3.2.0": "prevent-fab-3.2.0.js",
@@ -16875,7 +16882,7 @@
1687516882
return Reflect.apply(target, thisArg, args);
1687616883
}
1687716884
var eventName = args[0];
16878-
var isMatched = thisArg.getAttribute(source.name) === "matched" && eventName === "error";
16885+
var isMatched = typeof thisArg.getAttribute === "function" && thisArg.getAttribute(source.name) === "matched" && eventName === "error";
1687916886
if (isMatched) {
1688016887
return Reflect.apply(target, thisArg, [eventName, noopFunc]);
1688116888
}
@@ -19869,7 +19876,7 @@
1986919876
function setCookieReload(source, args) {
1987019877
function setCookieReload(source, name, value) {
1987119878
var path = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "/";
19872-
if (isCookieSetWithValue(name, value)) {
19879+
if (isCookieSetWithValue(document.cookie, name, value)) {
1987319880
return;
1987419881
}
1987519882
var validValue = getLimitedCookieValue(value);
@@ -21682,12 +21689,6 @@
2168221689
"ubo-adfly-defuser.js": preventAdfly,
2168321690
"ubo-adfly-defuser": preventAdfly,
2168421691
"prevent-bab": preventBab,
21685-
"nobab.js": preventBab,
21686-
"ubo-nobab.js": preventBab,
21687-
"bab-defuser.js": preventBab,
21688-
"ubo-bab-defuser.js": preventBab,
21689-
"ubo-nobab": preventBab,
21690-
"ubo-bab-defuser": preventBab,
2169121692
"prevent-element-src-loading": preventElementSrcLoading,
2169221693
"prevent-eval-if": preventEvalIf,
2169321694
"noeval-if.js": preventEvalIf,

wiki/about-scriptlets.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ defaults to match all callbacks; invalid regular expression will cause exit and
308308
Closes the browser tab immediately.
309309
310310
> `window.close()` usage is restricted in Chrome. In this case
311-
tab will only be closed if using AdGuard browser extension.
311+
tab will only be closed when using AdGuard browser extension.
312312
313313
**Syntax**
314314
```
@@ -826,6 +826,11 @@ which is useful for debugging but not permitted for production filter lists.
826826
example.org#%#//scriptlet('prevent-fetch', '', 'emptyArr')
827827
```
828828
829+
7. Prevent all fetch calls and specify response type value
830+
```
831+
example.org#%#//scriptlet('prevent-fetch', '*', '', 'opaque')
832+
```
833+
829834
[Scriptlet source](../src/scriptlets/prevent-fetch.js)
830835
* * *
831836

0 commit comments

Comments
 (0)