Skip to content

Commit fdef488

Browse files
committed
AG-13903: dictionary with extensions of redirect-files
Merge in ADGUARD-FILTERS/scriptlets from feature/AG-13903 to master Squashed commit of the following: commit c8f2d48 Author: Dmitriy Seregin <[email protected]> Date: Wed Apr 27 15:34:05 2022 +0300 fix commit 32efb5f Author: Dmitriy Seregin <[email protected]> Date: Wed Apr 27 13:34:04 2022 +0300 updated build commit f9b2cea Merge: 7bc8d8e 765a3b9 Author: Dmitriy Seregin <[email protected]> Date: Wed Apr 27 13:33:10 2022 +0300 Merge branch 'master' into feature/AG-13903 commit 7bc8d8e Author: Dmitriy Seregin <[email protected]> Date: Wed Apr 27 13:31:53 2022 +0300 AG-13903: use rollup-replace commit e30031d Author: Dmitriy Seregin <[email protected]> Date: Mon Apr 25 21:54:59 2022 +0300 AG-13903: dictionary with extensions of redirect-files
1 parent 765a3b9 commit fdef488

File tree

78 files changed

+559
-109
lines changed

Some content is hidden

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

78 files changed

+559
-109
lines changed

dist/redirect-files/googletagservices-gpt.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ function GoogleTagServicesGpt(source) {
7676
getTargeting: noopArray,
7777
getTargetingKeys: noopArray,
7878
getSlots: noopArray,
79+
isInitialLoadDisabled: trueFunc,
7980
refresh: noopFunc,
8081
set: noopThis,
8182
setCategoryExclusion: noopThis,
@@ -216,6 +217,9 @@ function noopArray() {
216217
}
217218
function noopStr() {
218219
return '';
220+
}
221+
function trueFunc() {
222+
return true;
219223
};
220224
const updatedArgs = args ? [].concat(source).concat(args) : [source];
221225
try {

dist/redirect-files/metrika-yandex-watch.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,16 @@ function metrikaYandexWatch(source) {
2020
};
2121

2222
function Metrika() {} // constructor
23-
// Methods without options
2423

2524

25+
Metrika.counters = noopArray; // Methods without options
26+
2627
Metrika.prototype.addFileExtension = noopFunc;
2728
Metrika.prototype.getClientID = noopFunc;
2829
Metrika.prototype.setUserID = noopFunc;
2930
Metrika.prototype.userParams = noopFunc;
30-
Metrika.prototype.params = noopFunc; // Methods with options
31+
Metrika.prototype.params = noopFunc;
32+
Metrika.prototype.counters = noopArray; // Methods with options
3133
// The order of arguments should be kept in according to API
3234

3335
Metrika.prototype.extLink = function (url, options) {
@@ -125,7 +127,10 @@ function hit(source, message) {
125127
window.__debug(source);
126128
}
127129
}
128-
function noopFunc() {};
130+
function noopFunc() {}
131+
function noopArray() {
132+
return [];
133+
};
129134
const updatedArgs = args ? [].concat(source).concat(args) : [source];
130135
try {
131136
metrikaYandexWatch.apply(this, updatedArgs);

dist/redirects.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
/**
33
* AdGuard Scriptlets
4-
* Version 1.6.8
4+
* Version 1.6.10
55
*/
66

77
var Redirects = (function () {

dist/redirects.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#
22
# AdGuard Scriptlets (Redirects Source)
3-
# Version 1.6.8
3+
# Version 1.6.10
44
#
55
- title: 1x1-transparent.gif
66
description: |-
@@ -2620,6 +2620,7 @@
26202620
getTargeting: noopArray,
26212621
getTargetingKeys: noopArray,
26222622
getSlots: noopArray,
2623+
isInitialLoadDisabled: trueFunc,
26232624
refresh: noopFunc,
26242625
set: noopThis,
26252626
setCategoryExclusion: noopThis,
@@ -2760,6 +2761,9 @@
27602761
}
27612762
function noopStr() {
27622763
return '';
2764+
}
2765+
function trueFunc() {
2766+
return true;
27632767
};
27642768
const updatedArgs = args ? [].concat(source).concat(args) : [source];
27652769
try {
@@ -3094,14 +3098,16 @@
30943098
};
30953099
30963100
function Metrika() {} // constructor
3097-
// Methods without options
30983101
30993102
3103+
Metrika.counters = noopArray; // Methods without options
3104+
31003105
Metrika.prototype.addFileExtension = noopFunc;
31013106
Metrika.prototype.getClientID = noopFunc;
31023107
Metrika.prototype.setUserID = noopFunc;
31033108
Metrika.prototype.userParams = noopFunc;
3104-
Metrika.prototype.params = noopFunc; // Methods with options
3109+
Metrika.prototype.params = noopFunc;
3110+
Metrika.prototype.counters = noopArray; // Methods with options
31053111
// The order of arguments should be kept in according to API
31063112
31073113
Metrika.prototype.extLink = function (url, options) {
@@ -3199,7 +3205,10 @@
31993205
window.__debug(source);
32003206
}
32013207
}
3202-
function noopFunc() {};
3208+
function noopFunc() {}
3209+
function noopArray() {
3210+
return [];
3211+
};
32033212
const updatedArgs = args ? [].concat(source).concat(args) : [source];
32043213
try {
32053214
metrikaYandexWatch.apply(this, updatedArgs);

0 commit comments

Comments
 (0)