mirror of
https://codeberg.org/LibRedirect/libredirect.git
synced 2025-01-31 11:34:49 +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 = {
|
redirect = {
|
||||||
redirectUrl: redirectGoogleTranslate(url, initiator),
|
redirectUrl: redirectGoogleTranslate(url, initiator),
|
||||||
};
|
};
|
||||||
} else if (url.href.match(wikipediaRegex)) {
|
} else if (url.host.match(wikipediaRegex)) {
|
||||||
redirect = {
|
redirect = {
|
||||||
redirectUrl: redirectWikipedia(url, initiator),
|
redirectUrl: redirectWikipedia(url, initiator),
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user