From 20ac8a1ebe04f22d87f49d00f369e342d6ab7cf4 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 10 May 2018 20:36:28 -0700 Subject: [PATCH] Fix redirect issue --- background.js | 2 +- changelog.txt | 1 + manifest.json | 2 +- popup.html | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/background.js b/background.js index fb1bd1e..d1c5b06 100644 --- a/background.js +++ b/background.js @@ -131,7 +131,7 @@ browser.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; diff --git a/changelog.txt b/changelog.txt index 076f54c..004d35f 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +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) diff --git a/manifest.json b/manifest.json index 98a3885..8856c3d 100644 --- a/manifest.json +++ b/manifest.json @@ -28,5 +28,5 @@ "page": "options.html" }, "permissions": [ "cookies", "", "storage", "webRequest", "webRequestBlocking"], - "version": "1.2.3" + "version": "1.2.4" } diff --git a/popup.html b/popup.html index e835e58..89500e8 100644 --- a/popup.html +++ b/popup.html @@ -1,7 +1,7 @@ -
Bypass Paywalls v1.2.3 by Adam +
Bypass Paywalls v1.2.4 by Adam Options