From bd401fce6e8fb7c7f19bd6cb528d138aa25b1ddc Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sun, 12 Feb 2023 16:56:57 +0100 Subject: [PATCH] Update block general paywall script (limit Piano.io/TinyPass) --- README.md | 7 +++++-- background.js | 3 ++- changelog.txt | 1 + manifest.json | 2 +- sites.js | 14 ++++---------- 5 files changed, 13 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index a0734dc..f0194a8 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,9 @@ Weekly updates are released for fixes and new sites. * [Disclaimer](#disclaimer) ### Installation -You can install the add-on from [GitLab](https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases)\ +You can install the add-on from [GitLab releases](https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases)\ +Download the xpi-file (from latest release), go to downloads and install the add-on.\ +Or go to Tools > Add-ons (about:addons) > Extensions > Cogwheel/Settings - Install Add-on from File\ Minumum browser requirement: Firefox 86+. If you want to install the latest [master ZIP-file from GitLab](https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/archive/master/bypass-paywalls-firefox-clean-master.zip) use a Firefox browser which allows using unsigned add-ons like Firefox Developer Portable (go to about:config and set xpinstall.signatures.required to false) or LibreWolf (for both no automatic updates of add-on).\ @@ -26,7 +28,8 @@ Or load a temporary add-on in regular Firefox (go to about:debugging#/runtime/th By default BPC has limited host permissions, but you can opt-in to enable custom sites (and also clear cookies/block general paywall-scripts for non-listed sites). You can also just request permissions for the custom sites you added yourself (or click `clear cookies` (BPC-icon) to ask for permission for current site). ### Update -Check for updates (in about:addons) and allow permissions for newly supported sites (else no update will be installed).\ +Add-on will automatically update or you can do a manual check for updates (in about:addons).\ +Either way you have to allow host permissions for newly supported sites (else no update will be installed).\ You can also check for update of site rules at startup (opt-in); only available until about 10 days after fix-release.\ For new sites you also have to opt-in to custom sites/request permissions for new domains (or wait for new release). diff --git a/background.js b/background.js index 81b917e..f14556b 100644 --- a/background.js +++ b/background.js @@ -407,7 +407,8 @@ ext_api.storage.local.get({ ext_api.management.getSelf(function (result) { if ((result.installType === 'development' || (result.installType !== 'development' && !enabledSites.includes('#options_on_update')))) { let new_groups = ['###_de_noz_mhn']; - let open_options = new_groups.some(group => !enabledSites.includes(group) && grouped_sites[group].some(domain => enabledSites.includes(domain) && !customSites_domains.includes(domain))); + let open_options = new_groups.some(group => !enabledSites.includes(group) && grouped_sites[group].some(domain => enabledSites.includes(domain) && !customSites_domains.includes(domain))) || + (enabledSites.includes('tinypass.com') && !enabledSites.includes('piano.io')); if (open_options) ext_api.runtime.openOptionsPage(); } diff --git a/changelog.txt b/changelog.txt index 11a35df..37ac323 100644 --- a/changelog.txt +++ b/changelog.txt @@ -11,6 +11,7 @@ Fix LesEchos.fr (json) Fix McClatchy Group (amp-redirect) Fix The West Australian (regional; identify site) Remove amo-support +Update block general paywall script (limit Piano.io/TinyPass) * v3.0.4.0 (2023-02-05) Add Inside Higher Ed diff --git a/manifest.json b/manifest.json index 19e5a71..4de161e 100644 --- a/manifest.json +++ b/manifest.json @@ -733,5 +733,5 @@ "*://*.wallkit.net/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.0.4.7" + "version": "3.0.4.8" } diff --git a/sites.js b/sites.js index b47745e..edd0b10 100644 --- a/sites.js +++ b/sites.js @@ -1012,7 +1012,7 @@ var defaultSites = { "Krautreporter.de": { domain: "krautreporter.de" }, - "Kurier.at (do not block TinyPass & Piano.io-script externally)": { + "Kurier.at (do not block TinyPass-script externally)": { domain: "kurier.at", allow_cookies: 1, block_regex: /cdn\.cxense\.com\// @@ -2294,11 +2294,11 @@ var defaultSites = { allow_cookies: 1, block_regex_general: /js\.pelcro\.com\// }, - "Piano.io": { + "Piano.io (+ TinyPass)": { domain: "piano.io", allow_cookies: 1, - block_regex_general: /\.piano\.io\//, - excluded_domains: ["piano.io", "asia.nikkei.com", "brusselstimes.com", "businesspost.ie", "japantimes.co.jp", "kurier.at", "lkz.de"] + block_regex_general: /\.piano\.io\/xbuilder\/experience\/execute/, + excluded_domains: ["piano.io", "asia.nikkei.com", "businesspost.ie", "japantimes.co.jp", "kurier.at"] }, "Pico.tools": { domain: "pico.tools", @@ -2326,12 +2326,6 @@ var defaultSites = { block_regex_general: /\/steadyhq\.com\//, excluded_domains: ["steadyhq.com"] }, - "TinyPass": { - domain: "tinypass.com", - allow_cookies: 1, - block_regex_general: /cdn\.tinypass\.com\//, - excluded_domains: ["piano.io", "kurier.at"] - }, "TownNews sites (Blox CMS; not encrypted)": { domain: "###_usa_townnews", block_regex_general: /\.com\/shared-content\/art\/tncms\/user\/user\.js/