1
0
mirror of https://github.com/SimonBrazell/privacy-redirect synced 2025-01-06 21:42:04 +01:00

check host instead of the whole href for occurence of wikipedia.org

This commit is contained in:
Kotuklion 2021-07-12 18:48:52 +02:00
parent 058ca7b6e0
commit 010d19aff9

View File

@ -601,7 +601,7 @@ browser.webRequest.onBeforeRequest.addListener(
redirect = {
redirectUrl: redirectGoogleTranslate(url, initiator),
};
} else if (url.href.match(wikipediaRegex)) {
} else if (url.host.match(wikipediaRegex)) {
redirect = {
redirectUrl: redirectWikipedia(url, initiator),
};