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:
parent
058ca7b6e0
commit
010d19aff9
@ -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),
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user