diff --git a/changelog.txt b/changelog.txt index 4a643b69..477e3041 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release Remove Dark Reading (no paywall) Fix Australian Community Media (overlay) +Fix L'Opinion.fr Fix The Toronto Star * v2.8.2.0 (2022-08-28) diff --git a/contentScript.js b/contentScript.js index a77f6753..06faa6cd 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1458,6 +1458,14 @@ else if (matchDomain('loeildelaphotographie.com')) { else if (matchDomain('lopinion.fr')) { if (window.location.search.startsWith('?_amp=true')) amp_unhide_access_hide('="access"', '="NOT access"'); + else { + let paywall = document.querySelector('div#poool-widget'); + let amphtml = document.querySelector('link[rel="amphtml"]'); + if (paywall && amphtml) { + removeDOMElement(paywall); + window.location.href = amphtml.href; + } + } } else if (matchDomain('marianne.net')) { diff --git a/manifest.json b/manifest.json index 8ab45127..17f8a2da 100644 --- a/manifest.json +++ b/manifest.json @@ -699,5 +699,5 @@ "*://gcm.omerlocdn.com/*", "*://webcache.googleusercontent.com/*" ], - "version": "2.8.2.1" + "version": "2.8.2.2" } diff --git a/sites_updated.json b/sites_updated.json index b06d6b4c..52273f59 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -44,6 +44,11 @@ } ] }, + "L'Opinion": { + "domain": "lopinion.fr", + "block_regex": "(\\.poool\\.fr\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-access-.+\\.js)", + "amp_redirect": "div#poool-widget" + }, "La Vie": { "domain": "lavie.fr", "allow_cookies": 1,