mirror of
https://github.com/mmjee/privacy-redirect.git
synced 2024-12-06 19:16:32 +01:00
check host instead of the whole href for occurence of wikipedia.org
This commit is contained in:
@@ -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),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user