more tracking removal
Some checks failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-client Pipeline failed
ci/woodpecker/push/lint-backend Pipeline failed
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/lint-sw Pipeline failed
ci/woodpecker/push/test Pipeline failed

This commit is contained in:
Johann150 2024-03-19 18:50:57 +01:00
parent 2c55f8968c
commit 5f09a44dbb
Signed by: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -15,7 +15,7 @@ export function removeTracking(url: string): string {
parsed.searchParams.delete('si'); // source identifier
} else if (['heise.de', 'www.heise.de'].includes(parsed.host)) {
parsed.searchParams.delete('wt_mc');
} else if (['tagesschau.de'].includes(parsed.host)) {
} else if (['tagesschau.de', 'www.tagesschau.de', 'zdf.de', 'www.zdf.de', 'br.de', 'www.br.de', 'ndr.de', 'www.ndr.de', 'swr3.de', 'www.swr3.de'].includes(parsed.host)) {
parsed.searchParams.delete('at_medium');
parsed.searchParams.delete('at_campaign');
} else if (!isMobile && /\.m\.wikipedia\.org$/i.test(parsed.host)) {