mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-18 09:28:15 +00:00
Fix ET Prime
Update of function isSiteEnabled because no match with https://prime.economictimes.indiatimes.com (without dot-prefix). Dot was added to prevent site.com to match with prefixsite.com. Result: Googlebot wasn't set as user-agent.
This commit is contained in:
parent
a27b1e60a9
commit
4fd51e2c97
@ -446,7 +446,7 @@ browser.webRequest.onCompleted.addListener(function(details) {
|
||||
|
||||
function isSiteEnabled(details) {
|
||||
var isEnabled = enabledSites.some(function(enabledSite) {
|
||||
var useSite = details.url.indexOf("." + enabledSite) !== -1;
|
||||
var useSite = (details.url.indexOf("." + enabledSite) !== -1 || details.url.indexOf("/" + enabledSite) !== -1);
|
||||
if (enabledSite in restrictions) {
|
||||
return useSite && details.url.indexOf(restrictions[enabledSite]) !== -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user