diff --git a/README.md b/README.md index 351ce29..08e83af 100644 --- a/README.md +++ b/README.md @@ -719,6 +719,7 @@ Grouped in options:\ [MediaNama](https://www.medianama.com) - [Mid-Day](https://www.mid-day.com) - [Outlook](https://www.outlookindia.com) - +[Outlook Business](https://www.outlookbusiness.com) - [The Economic Times (ET Prime)](https://economictimes.indiatimes.com) - [The Financial Express](https://www.financialexpress.com) - [The Hindu](https://www.thehindu.com) - diff --git a/background.js b/background.js index 4a2b983..e53270e 100644 --- a/background.js +++ b/background.js @@ -6,7 +6,7 @@ var ext_name = manifestData.name; var ext_version = manifestData.version; const cs_limit_except = ['elespanol.com', 'faz.net', 'nation.africa', 'nationalgeographic.com', 'thetimes.co.uk']; -const dompurify_sites = ['asiatimes.com', 'bloomberg.com', 'cicero.de', 'economictimes.com', 'hs.fi', 'ilmanifesto.it', 'iltalehti.fi', 'ipolitics.ca', 'italiaoggi.it', 'lesechos.fr', 'marianne.net', 'newleftreview.org', 'nzherald.co.nz', 'prospectmagazine.co.uk', 'stratfor.com', 'techinasia.com', 'theathletic.com', 'timesofindia.com', 'vn.nl'].concat(be_mediahuis_domains, nl_mediahuis_region_domains, no_nhst_media_domains); +const dompurify_sites = ['asiatimes.com', 'bloomberg.com', 'cicero.de', 'economictimes.com', 'hs.fi', 'ilmanifesto.it', 'iltalehti.fi', 'ipolitics.ca', 'italiaoggi.it', 'lesechos.fr', 'marianne.net', 'newleftreview.org', 'nzherald.co.nz', 'outlookbusiness.com', 'prospectmagazine.co.uk', 'stratfor.com', 'techinasia.com', 'theathletic.com', 'timesofindia.com', 'vn.nl'].concat(be_mediahuis_domains, nl_mediahuis_region_domains, no_nhst_media_domains); var currentTabUrl = ''; var csDone = false; var optin_setcookie = false; diff --git a/changelog.txt b/changelog.txt index e3f2159..7549def 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release Add Architectural Digest (Conde Nast) Add Handelszeitung.ch +Add Outlook Business (India) Fix ABC.es (mobile) Fix Knack.be & LeVif.be (subdomains-text) Fix SOFREP (plus) diff --git a/contentScript.js b/contentScript.js index 64d9db8..65383bf 100644 --- a/contentScript.js +++ b/contentScript.js @@ -3295,6 +3295,28 @@ else if (matchDomain('nzherald.co.nz')) { removeDOMElement(premium_toaster); } +else if (matchDomain('outlookbusiness.com')) { + let paywall = document.querySelector('div#csc-paywall'); + if (paywall) { + removeDOMElement(paywall); + let json_script = document.querySelector('script#__NEXT_DATA__'); + if (json_script && dompurify_loaded) { + let json = JSON.parse(json_script.innerText); + if (json && json.props.initialState.dashboard.ARTICLE_POST_DETAIL_API.data.article_data.description) { + let article_new = json.props.initialState.dashboard.ARTICLE_POST_DETAIL_API.data.article_data.description; + let article = document.querySelector('div.story-content'); + if (article) { + article.innerHTML = ''; + let parser = new DOMParser(); + let doc = parser.parseFromString('
' + DOMPurify.sanitize(article_new) + '
', 'text/html'); + let content_new = doc.querySelector('div'); + article.appendChild(content_new); + } + } + } + } +} + else if (matchDomain('outlookindia.com')) { let paywall = document.querySelector('div.paywall'); if (paywall) { diff --git a/manifest.json b/manifest.json index 5f50ffb..fa16a3f 100644 --- a/manifest.json +++ b/manifest.json @@ -456,6 +456,7 @@ "*://*.orlandosentinel.com/*", "*://*.ostsee-zeitung.de/*", "*://*.otz.de/*", + "*://*.outlookbusiness.com/*", "*://*.outlookindia.com/*", "*://*.outsideonline.com/*", "*://*.oxygenmag.com/*", @@ -690,5 +691,5 @@ "*://*.wsj.net/*", "*://webcache.googleusercontent.com/*" ], - "version": "2.7.4.5" + "version": "2.7.4.6" } diff --git a/sites.js b/sites.js index fc8ef19..de1b30a 100644 --- a/sites.js +++ b/sites.js @@ -1339,6 +1339,10 @@ var defaultSites = { allow_cookies: 1, block_regex: /(\.tinypass\.com\/|cdn\.cxense\.com\/|cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js)/ }, + "Outlook Business": { + domain: "outlookbusiness.com", + allow_cookies: 1 + }, "Outlook India": { domain: "outlookindia.com", allow_cookies: 1