mirror of
https://github.com/iamadamdev/bypass-paywalls-chrome
synced 2025-04-30 04:04:26 +02:00
Fix redirect issue
This commit is contained in:
parent
a137c4d497
commit
db4f931a3d
@ -130,7 +130,7 @@ chrome.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
||||
|
||||
var isEnabled = enabledSites.some(function(enabledSite) {
|
||||
|
||||
var useSite = details.url.indexOf(enabledSite) !== -1;
|
||||
var useSite = details.url.indexOf("." + enabledSite) !== -1;
|
||||
|
||||
if (enabledSite in restrictions) {
|
||||
return useSite && details.url.indexOf(restrictions[enabledSite]) !== -1;
|
||||
|
@ -1,5 +1,5 @@
|
||||
Updates--
|
||||
|
||||
2018-05-10 v1.2.4: Fixed redirect issue
|
||||
2018-05-05 v1.2.3: Added Bloomberg (bloomberg.com)
|
||||
2018-04-23 v1.2.2: Added the English Version of Haaretz website (haaretz.com)
|
||||
2018-04-07 v1.2.1: Open Source'd Bypass Paywalls! Fixed The Economist (economist.com)
|
||||
|
@ -18,5 +18,5 @@
|
||||
"page": "options.html"
|
||||
},
|
||||
"permissions": [ "cookies", "<all_urls>", "storage", "webRequest", "webRequestBlocking"],
|
||||
"version": "1.2.3"
|
||||
"version": "1.2.4"
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<div style="width:220px;">Bypass Paywalls v1.2.3 by Adam
|
||||
<div style="width:220px;">Bypass Paywalls v1.2.4 by Adam
|
||||
<br><a href="options.html">Options</a></div>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user