From bdf37272b44d7c029e9089dfa99d75b3601fa33b Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sun, 20 Nov 2022 17:02:21 +0100 Subject: [PATCH] Release v2.9.4.0 --- background.js | 16 ++++++++-------- changelog.txt | 2 ++ manifest.json | 2 +- updates.json | 4 ++-- 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/background.js b/background.js index e19c178..6176fa9 100644 --- a/background.js +++ b/background.js @@ -377,10 +377,10 @@ ext_api.storage.local.get({ excludedSites = items.sites_excluded; enabledSites = Object.values(sites).filter(function (val) { - return (val !== '' && val !== '###'); - }).map(function (val) { - return val.toLowerCase(); - }); + return (val && val !== '###' && (defaultSites_domains.concat(customSites_domains, updatedSites_domains_new).includes(val))); + }).map(function (val) { + return val.toLowerCase(); + }); // Enable new sites by default (opt-in) updatedSites_new = Object.keys(updatedSites).filter(x => updatedSites[x].domain && !defaultSites_domains.includes(updatedSites[x].domain)); @@ -435,10 +435,10 @@ ext_api.storage.onChanged.addListener(function (changes, namespace) { var sites = storageChange.newValue; optionSites = sites; enabledSites = Object.values(sites).filter(function (val) { - return (val !== '' && val !== '###'); - }).map(function (val) { - return val.toLowerCase(); - }); + return (val && val !== '###' && (defaultSites_domains.concat(customSites_domains, updatedSites_domains_new).includes(val))); + }).map(function (val) { + return val.toLowerCase(); + }); disabledSites = defaultSites_grouped_domains.concat(customSites_domains).filter(x => !enabledSites.includes(x)); add_grouped_enabled_domains(grouped_sites); set_rules(sites, updatedSites, customSites); diff --git a/changelog.txt b/changelog.txt index 7e5a00a..fb7842c 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,8 @@ Changelog Bypass Paywalls Clean - Firefox Post-release + +* v2.9.4.0 (2022-11-20) Add CNBC (Pro text) Add Etc.se Add Project Syndicate (link to archive.is) diff --git a/manifest.json b/manifest.json index a5bc7b6..f3146cf 100644 --- a/manifest.json +++ b/manifest.json @@ -730,5 +730,5 @@ "*://gcm.omerlocdn.com/*", "*://webcache.googleusercontent.com/*" ], - "version": "2.9.3.6" + "version": "2.9.4.0" } diff --git a/updates.json b/updates.json index 4bb9df8..b3ab484 100644 --- a/updates.json +++ b/updates.json @@ -2,8 +2,8 @@ "addons": { "magnolia@12.34": { "updates": [ - { "version": "2.9.3.0", - "update_link": "https://gitlab.com/magnolia1234/bpc-uploads/-/raw/master/bypass_paywalls_clean-2.9.3.0.xpi" } + { "version": "2.9.4.0", + "update_link": "https://gitlab.com/magnolia1234/bpc-uploads/-/raw/master/bypass_paywalls_clean-2.9.4.0.xpi" } ] } }