diff --git a/README.md b/README.md index 3f6a970..a40cb26 100644 --- a/README.md +++ b/README.md @@ -134,6 +134,8 @@ Grouped in options:\ [Modern Healthcare](https://www.modernhealthcare.com) - [Pensions & Investments](https://www.pionline.com) +*[Inside Retail](https://octomedia.com.au/our-brands/inside-retail)* sites (opt-in to custom sites) + *[PEI Media](https://www.pei.group/brands)* sites (opt-in to custom sites) ##### Tech/Science diff --git a/background.js b/background.js index 7e78120..60e834a 100644 --- a/background.js +++ b/background.js @@ -31,7 +31,7 @@ var restrictions = { 'foreignaffairs.com': /^((?!\/reader\.foreignaffairs\.com\/).)*$/, 'ft.com': /^((?!\/cn\.ft\.com\/).)*$/, 'hilltimes.com': /^((?!hilltimes\.com\/slideshow\/).)*$/, - 'nytimes.com': /^((?!\/timesmachine\.nytimes\.com\/).)*$/, + 'nytimes.com': /^((?!\/(myaccount|timesmachine)\.nytimes\.com\/).)*$/, 'science.org': /^((?!\.science\.org\/doi\/).)*$/, 'timesofindia.com': /\.timesofindia\.com($|\/($|toi-plus(\/.+)?|.+\.cms))/, 'quora.com': /^((?!quora\.com\/search\?q=).)*$/, diff --git a/changelog.txt b/changelog.txt index 8e46e13..db16cea 100644 --- a/changelog.txt +++ b/changelog.txt @@ -5,11 +5,13 @@ Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywal Post-release Add Balkan Insight Add Groupe Quebecor +Add Inside Retail (opt-in to custom sites) Add Maine Trust for Local News (opt-in to custom sites) Add The Baffler Fix Australia News Corp (amp-fix for desktop) Fix Faz.net (json) Fix GauchaZH (refresh) +Fix Medium (add link to freedium) Fix WSJ (link to Google Search Tool) * v3.3.8.0 (2023-10-15) diff --git a/contentScript.js b/contentScript.js index 3f98ac3..8113b80 100644 --- a/contentScript.js +++ b/contentScript.js @@ -332,6 +332,7 @@ if (matchDomain('medium.com') || matchDomain(medium_custom_domains) || (!matchDo let paywall = document.querySelector('article.meteredContent'); if (paywall) { paywall.removeAttribute('class'); + paywall.firstChild.before(freediumLink(url)); paywall.firstChild.before(googleWebcacheLink(url)); } window.setTimeout(function () { @@ -5825,6 +5826,10 @@ function ext_12ftLink(url, text_fail = 'BPC > Try for full article text:\r\n') { return externalLink(['12ft.io'], 'https://{domain}/{url}', url, text_fail); } +function freediumLink(url, text_fail = 'BPC > Try for full article text:\r\n') { + return externalLink(['freedium.cfd'], 'https://{domain}/{url}', url, text_fail); +} + function externalLink(domains, ext_url_templ, url, text_fail = 'BPC > Full article text:\r\n') { let text_fail_div = document.createElement('div'); text_fail_div.id = 'bpc_archive'; diff --git a/contentScript_once.js b/contentScript_once.js index 00be5e3..1bbd979 100644 --- a/contentScript_once.js +++ b/contentScript_once.js @@ -41,7 +41,7 @@ window.setTimeout(function () { group = '###_substack_custom';// no fix else if (document.querySelector('script[src*="/wp-content/themes/pmgnews/scripts/promedia.js"], form[action^="https://go.promedia.nl/"]')) group = '###_nl_promedia'; - else if (hostname.match(/\.(com|net)\.au$/)) { + else if (hostname.match(/\.(com|net)\.au$/) && !matchDomain(['insideretail.com.au'])) { if (document.querySelector('a[href^="https://austcommunitymedia.my.site.com/"]')) group = '###_au_comm_media'; else if (hostname.endsWith('.com.au')) { @@ -141,6 +141,9 @@ window.setTimeout(function () { else if (matchDomain(['accountingtoday.com', 'benefitnews.com', 'bondbuyer.com', 'dig-in.com', 'financial-planning.com', 'nationalmortgagenews.com'])) group = 'americanbanker.com';// Arizent } + } else { + if (matchDomain(['insideretail.asia', 'insideretail.co.nz' ,'insideretail.com.au', 'insideretail.us'])) + group = '###_au_inside_retail'; } ext_api.runtime.sendMessage({ diff --git a/custom/manifest.json b/custom/manifest.json index 7b16067..107589a 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.3.8.7" + "version": "3.3.8.8" } diff --git a/custom/sites_custom.json b/custom/sites_custom.json index 9ab0ae4..e2e12ca 100644 --- a/custom/sites_custom.json +++ b/custom/sites_custom.json @@ -206,6 +206,11 @@ "allow_cookies": 1, "domain": "ewmagazine.nl" }, + "Faithfullymagazine.com": { + "allow_cookies": 1, + "domain": "faithfullymagazine.com", + "ld_json": "div.pmpro_content_message|div.content-inner" + }, "Finansavisen.no": { "allow_cookies": 1, "domain": "finansavisen.no", diff --git a/manifest.json b/manifest.json index 16712f0..01ee887 100644 --- a/manifest.json +++ b/manifest.json @@ -807,5 +807,5 @@ "*://*.wyleex.com/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.3.8.7" + "version": "3.3.8.8" } diff --git a/sites.js b/sites.js index cf79f22..f48f354 100644 --- a/sites.js +++ b/sites.js @@ -1150,6 +1150,11 @@ var defaultSites = { allow_cookies: 1, block_regex: /js\.pelcro\.com\// }, + "Inside Retail (opt-in to custom sites)": { + domain: "###_au_inside_retail", + group: [], + ld_json_url: "div#premium-box|div.article__text__holder|1" + }, "Intelligent Investor": { domain: "intelligentinvestor.com.au", allow_cookies: 1,