diff --git a/README.md b/README.md index b02d0967..2320255f 100644 --- a/README.md +++ b/README.md @@ -303,7 +303,6 @@ Grouped in options:\ [Le Parisien](https://www.leparisien.fr) - [Le Télégramme](https://www.letelegramme.fr) - [Les Échos](https://www.lesechos.fr) - -[Libération](https://www.liberation.fr)* - [Marianne](https://www.marianne.net) - [Paris Match](https://www.parismatch.com) - [Science & Vie](https://www.science-et-vie.com) - diff --git a/background.js b/background.js index cc5e3a98..77d1e58c 100644 --- a/background.js +++ b/background.js @@ -133,10 +133,11 @@ function set_rules(sites, sites_updated, sites_custom) { rule = defaultSites[site]; if (sites_updated.hasOwnProperty(site)) rule = sites_updated[site]; - } else { // custom sites + } else if (sites_custom.hasOwnProperty(site)) { // custom sites rule = sites_custom[site]; custom = true; - } + } else + continue; let domains = [site_domain]; let group = false; if (rule.hasOwnProperty('group')) { diff --git a/changelog.txt b/changelog.txt index f2d6aeee..95eae1cc 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release Add Harvard Business Review China Add Mitteldeutsche Zeitung +Remove Liberation.fr (obsolete) Fix ElMundo.es (amp) Fix Lee Enterprises Group Fix LesEchos.fr (json) diff --git a/contentScript.js b/contentScript.js index 9c217752..8fe6b173 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1011,12 +1011,6 @@ else if (matchDomain('lesechos.fr') && window.location.href.match(/-\d{6,}/)) { }, 500); // Delay (in milliseconds) } -else if (matchDomain('liberation.fr')) { - let close_button = document.querySelector('.pw-action-close'); - if (close_button) - close_button.click(); -} - else if (matchDomain('loeildelaphotographie.com')) { let paywall = document.querySelector('.paywall'); if (paywall) { diff --git a/manifest.json b/manifest.json index 09ac70bf..2cc88eba 100644 --- a/manifest.json +++ b/manifest.json @@ -301,7 +301,6 @@ "*://*.levante-emv.com/*", "*://*.lexpress.fr/*", "*://*.liberation-champagne.fr/*", - "*://*.liberation.fr/*", "*://*.limesonline.com/*", "*://*.lindependant.fr/*", "*://*.livelaw.com/*", diff --git a/sites.js b/sites.js index 3f751fe9..803c62cb 100644 --- a/sites.js +++ b/sites.js @@ -830,9 +830,6 @@ var defaultSites = { allow_cookies: 1, block_regex: /\.tinypass\.com\// }, - "Libération (free articles only)": { - domain: "liberation.fr" - }, "LimesOnline": { domain: "limesonline.com", group_rule: "it_repubblica_domains"