diff --git a/background.js b/background.js index 0049a18..995336b 100644 --- a/background.js +++ b/background.js @@ -266,7 +266,7 @@ var blockedRegexes = { 'adweek.com': /\.lightboxcdn\.com\//, 'apollo-magazine.com': /\.tinypass\.com\//, 'augsburger-allgemeine.de':/(\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-(ad|subscriptions)-.+\.js)/, - 'afr.com': /afr\.com\/assets\/vendorsReactRedux_client.+\.js/, + 'afr.com': /api\.afr\.com\/graphql\?query=.+PaywallRuleQuery/, 'alternatives-economiques.fr': /\.poool\.fr\//, 'americanbanker.com': /\.tinypass\.com\//, 'asiatimes.com': /cdn\.ampproject\.org\/v\d\/amp-(access|ad|analytics)-.+\.(m)?js/, diff --git a/changelog.txt b/changelog.txt index b477ce0..2c53c3b 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release Add Hindustan Times (India) Add Honolulu Star-Advertiser (local USA) +Fix-update Australian Financial Review (videos) Fix-update Exame (domain) Fix-update GElocal.it (social) Fix-update WaPo (comments) diff --git a/contentScript.js b/contentScript.js index 56723e3..3175865 100644 --- a/contentScript.js +++ b/contentScript.js @@ -88,20 +88,9 @@ if (matchDomain(['medium.com', 'towardsdatascience.com']) || document.querySelec } } -else if (window.location.hostname.match(/\.(com|net)\.au$/) || matchDomain(['afr.com'])) {//australia +else if (window.location.hostname.match(/\.(com|net)\.au$/)) {//australia -if (matchDomain('afr.com')) { - let hidden_images = document.querySelectorAll('img[src*=".gif"]'); - for (let hidden_image of hidden_images) { - var data_src = hidden_image.getAttribute('data-src'); - if (data_src) - hidden_image.setAttribute('src', data_src); - } - let plista = document.querySelector('div[data-plista-placement="underArticle_Group"]'); - removeDOMElement(plista); -} - -else if (matchDomain('thesaturdaypaper.com.au')) { +if (matchDomain('thesaturdaypaper.com.au')) { let paywall = document.querySelector('div.paywall-hard-always-show'); removeDOMElement(paywall); } diff --git a/manifest.json b/manifest.json index 8d46e18..971e3bf 100644 --- a/manifest.json +++ b/manifest.json @@ -519,5 +519,5 @@ "*://*.wallkit.net/*", "*://*.wsj.net/*" ], - "version": "2.2.2.4" + "version": "2.2.2.5" } \ No newline at end of file