From 6b9bfc9dc591d2eea02f199cc0bddd2c3a65872a Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Wed, 14 Oct 2020 17:58:07 +0200 Subject: [PATCH] Release v1.9.0.2 --- background.js | 2 +- bypass.svg | 6 ------ changelog.txt | 2 ++ contentScript.js | 2 +- optin/opt-in.html | 1 + optin/opt-in.js | 9 +++++++++ updates.json | 4 ++-- updates_lp.json | 4 ++-- version.js | 5 +++++ 9 files changed, 23 insertions(+), 12 deletions(-) delete mode 100644 bypass.svg diff --git a/background.js b/background.js index 31e990f3..a8136da5 100644 --- a/background.js +++ b/background.js @@ -738,7 +738,7 @@ ext_api.webRequest.onCompleted.addListener(function (details) { continue; // only remove specific cookie } ext_api.cookies.remove({ - url: (cookie.secure ? "https://" : "http://") + cookie.domain + cookie.path, + url: (cookie.secure ? "https://" : "http://") + rc_domain + cookie.path, name: cookie.name }); } diff --git a/bypass.svg b/bypass.svg deleted file mode 100644 index 01d6a9fb..00000000 --- a/bypass.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/changelog.txt b/changelog.txt index 233291bd..13a999f8 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,8 @@ Changelog Bypass Paywalls Clean - Firefox Post-release + +* v1.9.0.2 (2020-10-14) Fix-update MIT Sloan Management Review (modal) Default limited permissions (opt-in custom sites) Option to clear cookies & local storage (of site) diff --git a/contentScript.js b/contentScript.js index 0eb11e35..be2adaae 100644 --- a/contentScript.js +++ b/contentScript.js @@ -718,7 +718,7 @@ else if (matchDomain('faz.net')) { article_text.innerText = ''; const breakText = (str) => { - str = str.replace(/(?:^|[\w\"\“])(\.|\?|!)(?=[A-Z\„][A-Za-zÀ-ÿ\„]{1,})/gm, "$&\n\n"); + str = str.replace(/(?:^|[\w\"\“])(\.|\?|!)(?=[A-ZÖÜ\„][A-Za-zÀ-ÿ\„]{1,})/gm, "$&\n\n"); str = str.replace(/([a-z\"\“])(?=[A-Z](?=[A-Za-zÀ-ÿ]+))/gm, "$&\n\n"); // exceptions: names with alternating lower/uppercase (no general fix) str = str.replace(/Glaxo\n\nSmith\n\nKline/g, "GlaxoSmithKline"); diff --git a/optin/opt-in.html b/optin/opt-in.html index e92d473a..31a4d317 100644 --- a/optin/opt-in.html +++ b/optin/opt-in.html @@ -36,6 +36,7 @@
+

diff --git a/optin/opt-in.js b/optin/opt-in.js index 9eafc3dc..c817291c 100644 --- a/optin/opt-in.js +++ b/optin/opt-in.js @@ -33,6 +33,15 @@ window.addEventListener("load", function () { }, 800); }); + document.getElementById("button-close").addEventListener( + "click", + function () { + ext_api.storage.sync.set({ + "optInShown": true + }); + window.close(); + }); + var custom_enabled = document.getElementById('custom-enabled'); ext_api.permissions.contains({ origins: [""] diff --git a/updates.json b/updates.json index a87c1141..e0110775 100644 --- a/updates.json +++ b/updates.json @@ -2,8 +2,8 @@ "addons": { "magnolia@12.34": { "updates": [ - { "version": "1.9.0.0", - "update_link": "https://bitbucket.org/magnolia1234/bypass-paywalls-firefox-clean/downloads/bypass_paywalls_clean-1.9.0.0.xpi" } + { "version": "1.9.0.2", + "update_link": "https://bitbucket.org/magnolia1234/bypass-paywalls-firefox-clean/downloads/bypass_paywalls_clean-1.9.0.2.xpi" } ] } } diff --git a/updates_lp.json b/updates_lp.json index bd30cfa7..76d0fa91 100644 --- a/updates_lp.json +++ b/updates_lp.json @@ -2,8 +2,8 @@ "addons": { "magnolia_limited_permissions@12.34": { "updates": [ - { "version": "1.9.0.0", - "update_link": "https://bitbucket.org/magnolia1234/bypass-paywalls-firefox-clean/downloads/bypass_paywalls_clean_lp-1.9.0.0.xpi" } + { "version": "1.9.0.2", + "update_link": "https://bitbucket.org/magnolia1234/bypass-paywalls-firefox-clean/downloads/bypass_paywalls_clean_lp-1.9.0.2.xpi" } ] } } diff --git a/version.js b/version.js index 04c5704c..f36021d5 100644 --- a/version.js +++ b/version.js @@ -21,6 +21,11 @@ fetch(manifest_new) anchorEl.href = 'https://bitbucket.org/magnolia1234/bypass-paywalls-firefox-clean/downloads'; anchorEl.target = '_blank'; versionString_new.appendChild(anchorEl); + if (manifestData.name.includes('(lp')) { + let par = document.createElement('p'); + par.innerHTML = "Limited permissions version is no longer updated (check BitBucket)"; + versionString_new.appendChild(par); + } if (!manifestData.name.includes('Clean')) { let par = document.createElement('p'); par.innerHTML = "You've installed a fake version of BPC (check BitBucket)";