Fix redirect issue
parent
6627369585
commit
20ac8a1ebe
|
@ -131,7 +131,7 @@ browser.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
||||||
|
|
||||||
var isEnabled = enabledSites.some(function(enabledSite) {
|
var isEnabled = enabledSites.some(function(enabledSite) {
|
||||||
|
|
||||||
var useSite = details.url.indexOf(enabledSite) !== -1;
|
var useSite = details.url.indexOf("." + enabledSite) !== -1;
|
||||||
|
|
||||||
if (enabledSite in restrictions) {
|
if (enabledSite in restrictions) {
|
||||||
return useSite && details.url.indexOf(restrictions[enabledSite]) !== -1;
|
return useSite && details.url.indexOf(restrictions[enabledSite]) !== -1;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
Updates--
|
Updates--
|
||||||
|
2018-05-10 v1.2.4: Fixed redirect issue
|
||||||
2018-05-05 v1.2.3: Added Bloomberg (bloomberg.com)
|
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-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)
|
2018-04-07 v1.2.1: Open Source'd Bypass Paywalls! Fixed The Economist (economist.com)
|
||||||
|
|
|
@ -28,5 +28,5 @@
|
||||||
"page": "options.html"
|
"page": "options.html"
|
||||||
},
|
},
|
||||||
"permissions": [ "cookies", "<all_urls>", "storage", "webRequest", "webRequestBlocking"],
|
"permissions": [ "cookies", "<all_urls>", "storage", "webRequest", "webRequestBlocking"],
|
||||||
"version": "1.2.3"
|
"version": "1.2.4"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<body>
|
<body>
|
||||||
<div style="width:220px;">Bypass Paywalls v1.2.3 by Adam
|
<div style="width:220px;">Bypass Paywalls v1.2.4 by Adam
|
||||||
<a href="options.html">Options</a></div>
|
<a href="options.html">Options</a></div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue