diff --git a/background.js b/background.js index 8b28f87..b19d35e 100644 --- a/background.js +++ b/background.js @@ -12,7 +12,7 @@ if (typeof ext_api.action !== 'object') { ext_api.action = ext_api.browserAction; } -const dompurify_sites = ['arcinfo.ch', 'asiatimes.com', 'bloomberg.com', 'cicero.de', 'dn.no', 'ilmanifesto.it', 'iltalehti.fi', 'iltirreno.it', 'ipolitics.ca', 'italiaoggi.it', 'lanuovasardegna.it', 'lequipe.fr', 'lesechos.fr', 'marianne.net', 'newleftreview.org', 'newscientist.com', 'nzherald.co.nz', 'outlookbusiness.com', 'prospectmagazine.co.uk', 'stratfor.com', 'techinasia.com', 'timesofindia.com', 'valor.globo.com', 'vn.nl'].concat(nl_mediahuis_region_domains, no_nhst_media_domains); +const dompurify_sites = ['arcinfo.ch', 'asiatimes.com', 'bloomberg.com', 'cicero.de', 'dn.no', 'ilmanifesto.it', 'iltalehti.fi', 'iltirreno.it', 'ipolitics.ca', 'italiaoggi.it', 'lanuovasardegna.it', 'lequipe.fr', 'lesechos.fr', 'marianne.net', 'newleftreview.org', 'newscientist.com', 'nzherald.co.nz', 'outlookbusiness.com', 'prospectmagazine.co.uk', 'sloanreview.mit.edu', 'stratfor.com', 'techinasia.com', 'timesofindia.com', 'valor.globo.com', 'vn.nl'].concat(nl_mediahuis_region_domains, no_nhst_media_domains); var optin_setcookie = false; var optin_update = true; var blocked_referer = false; diff --git a/changelog.txt b/changelog.txt index 7ac52d5..937a47d 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release +Fix MIT Sloan Management Review * v2.9.7.0 (2022-12-11) Add Handelsblatt diff --git a/contentScript.js b/contentScript.js index f1d8ed0..3055736 100644 --- a/contentScript.js +++ b/contentScript.js @@ -3736,11 +3736,13 @@ else if (matchDomain('slideshare.net')) { } else if (matchDomain('sloanreview.mit.edu')) { - let paywall = document.querySelector('div.paywall-blinder'); - removeDOMElement(paywall); + let url = window.location.href; + let paywall = document.querySelector('body.is-paywall'); if (paywall) { - ext_api.runtime.sendMessage({request: 'refreshCurrentTab'}); + paywall.classList.remove('is-paywall'); csDoneOnce = true; + let url_cache = 'https://webcache.googleusercontent.com/search?q=cache:' + url.split('?')[0]; + replaceDomElementExt(url_cache, true, false, 'div#article-content'); } } diff --git a/manifest.json b/manifest.json index d7ad26f..23793bc 100644 --- a/manifest.json +++ b/manifest.json @@ -713,5 +713,5 @@ "*://*.wallkit.net/*", "*://webcache.googleusercontent.com/*" ], - "version": "2.9.7.0" + "version": "2.9.7.3" } diff --git a/sites.js b/sites.js index 179e523..362e3b9 100644 --- a/sites.js +++ b/sites.js @@ -1284,8 +1284,7 @@ var defaultSites = { }, "MIT Sloan Management Review": { domain: "sloanreview.mit.edu", - block_regex: /(\.tinypass\.com\/|\/sloanreview\.mit\.edu\/.+\/welcome-ad\.js)/, - referer: "facebook" + block_regex: /(\.tinypass\.com\/|\/sloanreview\.mit\.edu\/.+\/welcome-ad\.js)/ }, "MIT Technology Review": { domain: "technologyreview.com",