AdguardTeam / AdguardTeam/Scriptlets

Add new redirect — 'tagcommander-tc'

未關閉
#173 3 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視
Feature request Priority: P4 problematic
主要語言
JavaScript
星號
195
分支
33
PR 合併指標
30 天內沒有已合併 PR

描述

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.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。