AdguardTeam / AdguardTeam/Scriptlets

Add new redirect — 'tagcommander-tc'

Open
#173 3 comments 2 reactions 0 assignees View on GitHub
Feature request Priority: P4 problematic
Dominant language
JavaScript
Stars
195
Forks
33
PR merge metrics
No merged PRs in 30d

Description

There is a generic exception for this script (`@@||tagcommander.com^*/tc_$script`), so maybe it would be a good idea to create a redirect resource for it.

Examples:
https://github.com/AdguardTeam/AdguardFilters/issues/102818 (Broken video player)
https://github.com/AdguardTeam/AdGuardSDNSFilter/issues/776 (Broken Sign in button)

To reproduce add this rule to user rules:
```
||cdn.tagcommander.com/*/tc_*.js$script,redirect=noopjs,important
```

Something like this should fix both issues:
```
window.tC = {
privacy: {
getOptinCategories: function () {},
cookieData: [],
},
addConsentChangeListener: function () {},
removeConsentChangeListener: function () {},
container: {
reload: function () {}
}
};

window.tc_events_global = function() {};
```
but I guess that it needs more tweaks.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.