Skip to content

Commit

Permalink
Merge branch 'release/v1.8' into fix/AG-18132
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-atr committed Dec 19, 2022
2 parents 481ed62 + 7fd04c9 commit 0beb472
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/helpers/compatibility-redirects.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ const redirects = [
adg: 'googletagmanager-gtm',
ubo: 'google-analytics_ga.js',
},
{
// https://github.com/AdguardTeam/Scriptlets/issues/260
adg: 'googletagmanager-gtm',
ubo: 'googletagmanager_gtm.js',
},
{
adg: 'googletagservices-gpt',
ubo: 'googletagservices_gpt.js',
Expand Down
4 changes: 4 additions & 0 deletions tests/lib-tests/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,10 @@ test('Test REDIRECT-RULE converting - UBO -> ADG', (assert) => {
uboRule = '||googlesyndication.com^$script,redirect-rule=googlesyndication_adsbygoogle.js,domain=darmowa-tv.ws';
expectedAdgRule = '||googlesyndication.com^$script,redirect-rule=googlesyndication-adsbygoogle,domain=darmowa-tv.ws';
assert.strictEqual(convertRedirectToAdg(uboRule), expectedAdgRule);

uboRule = '||googletagmanager.com/gtag/js$script,redirect-rule=googletagmanager_gtm.js';
expectedAdgRule = '||googletagmanager.com/gtag/js$script,redirect-rule=googletagmanager-gtm';
assert.strictEqual(convertRedirectToAdg(uboRule), expectedAdgRule);
});

test('Test REDIRECT converting - ABP -> ADG', (assert) => {
Expand Down

0 comments on commit 0beb472

Please sign in to comment.