|
1 | 1 |
|
2 | 2 | /** |
3 | 3 | * AdGuard Scriptlets |
4 | | - * Version 1.7.6 |
| 4 | + * Version 1.7.10 |
5 | 5 | */ |
6 | 6 |
|
7 | 7 | (function () { |
|
3540 | 3540 | }; |
3541 | 3541 | window.eval = evalWrapper.bind(window); |
3542 | 3542 | } |
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 | + |
3546 | 3547 | preventBab$2.injections = [hit]; |
3547 | 3548 |
|
3548 | 3549 | /* eslint-disable no-unused-vars, no-extra-bind, func-names */ |
|
5236 | 5237 | */ |
5237 | 5238 | function setCookieReload$1(source, name, value) { |
5238 | 5239 | var path = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '/'; |
5239 | | - if (isCookieSetWithValue(name, value)) { |
| 5240 | + if (isCookieSetWithValue(document.cookie, name, value)) { |
5240 | 5241 | return; |
5241 | 5242 | } |
5242 | 5243 | var validValue = getLimitedCookieValue(value); |
|
6360 | 6361 | return Reflect.apply(target, thisArg, args); |
6361 | 6362 | } |
6362 | 6363 | 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'; |
6364 | 6365 | if (isMatched) { |
6365 | 6366 | return Reflect.apply(target, thisArg, [eventName, noopFunc]); |
6366 | 6367 | } |
|
9132 | 9133 | * ``` |
9133 | 9134 | */ |
9134 | 9135 | var preventBab$1 = preventBab$2; |
9135 | | - preventBab$1.names = ['prevent-bab' |
| 9136 | + preventBab$1.names = ['prevent-bab', |
9136 | 9137 | // 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']; |
9138 | 9139 |
|
9139 | 9140 | /** |
9140 | 9141 | * @redirect amazon-apstag |
|
13615 | 13616 | "prebid-ads.js": "prebid-ads.js", |
13616 | 13617 | prebid: "prebid.js", |
13617 | 13618 | "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", |
13618 | 13625 | "prevent-bab2": "prevent-bab2.js", |
13619 | 13626 | "nobab2.js": "prevent-bab2.js", |
13620 | 13627 | "prevent-fab-3.2.0": "prevent-fab-3.2.0.js", |
|
16873 | 16880 | return Reflect.apply(target, thisArg, args); |
16874 | 16881 | } |
16875 | 16882 | 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"; |
16877 | 16884 | if (isMatched) { |
16878 | 16885 | return Reflect.apply(target, thisArg, [eventName, noopFunc]); |
16879 | 16886 | } |
|
19867 | 19874 | function setCookieReload(source, args) { |
19868 | 19875 | function setCookieReload(source, name, value) { |
19869 | 19876 | var path = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "/"; |
19870 | | - if (isCookieSetWithValue(name, value)) { |
| 19877 | + if (isCookieSetWithValue(document.cookie, name, value)) { |
19871 | 19878 | return; |
19872 | 19879 | } |
19873 | 19880 | var validValue = getLimitedCookieValue(value); |
|
21680 | 21687 | "ubo-adfly-defuser.js": preventAdfly, |
21681 | 21688 | "ubo-adfly-defuser": preventAdfly, |
21682 | 21689 | "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, |
21689 | 21690 | "prevent-element-src-loading": preventElementSrcLoading, |
21690 | 21691 | "prevent-eval-if": preventEvalIf, |
21691 | 21692 | "noeval-if.js": preventEvalIf, |
|
0 commit comments