mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 05:57:48 +01:00
Add Inside Retail
Fix Medium (add link to freedium)
This commit is contained in:
parent
47817767d7
commit
1d93ea367d
9 changed files with 26 additions and 4 deletions
|
@ -134,6 +134,8 @@ Grouped in options:\
|
||||||
[Modern Healthcare](https://www.modernhealthcare.com) -
|
[Modern Healthcare](https://www.modernhealthcare.com) -
|
||||||
[Pensions & Investments](https://www.pionline.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)
|
*[PEI Media](https://www.pei.group/brands)* sites (opt-in to custom sites)
|
||||||
|
|
||||||
##### Tech/Science
|
##### Tech/Science
|
||||||
|
|
|
@ -31,7 +31,7 @@ var restrictions = {
|
||||||
'foreignaffairs.com': /^((?!\/reader\.foreignaffairs\.com\/).)*$/,
|
'foreignaffairs.com': /^((?!\/reader\.foreignaffairs\.com\/).)*$/,
|
||||||
'ft.com': /^((?!\/cn\.ft\.com\/).)*$/,
|
'ft.com': /^((?!\/cn\.ft\.com\/).)*$/,
|
||||||
'hilltimes.com': /^((?!hilltimes\.com\/slideshow\/).)*$/,
|
'hilltimes.com': /^((?!hilltimes\.com\/slideshow\/).)*$/,
|
||||||
'nytimes.com': /^((?!\/timesmachine\.nytimes\.com\/).)*$/,
|
'nytimes.com': /^((?!\/(myaccount|timesmachine)\.nytimes\.com\/).)*$/,
|
||||||
'science.org': /^((?!\.science\.org\/doi\/).)*$/,
|
'science.org': /^((?!\.science\.org\/doi\/).)*$/,
|
||||||
'timesofindia.com': /\.timesofindia\.com($|\/($|toi-plus(\/.+)?|.+\.cms))/,
|
'timesofindia.com': /\.timesofindia\.com($|\/($|toi-plus(\/.+)?|.+\.cms))/,
|
||||||
'quora.com': /^((?!quora\.com\/search\?q=).)*$/,
|
'quora.com': /^((?!quora\.com\/search\?q=).)*$/,
|
||||||
|
|
|
@ -5,11 +5,13 @@ Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywal
|
||||||
Post-release
|
Post-release
|
||||||
Add Balkan Insight
|
Add Balkan Insight
|
||||||
Add Groupe Quebecor
|
Add Groupe Quebecor
|
||||||
|
Add Inside Retail (opt-in to custom sites)
|
||||||
Add Maine Trust for Local News (opt-in to custom sites)
|
Add Maine Trust for Local News (opt-in to custom sites)
|
||||||
Add The Baffler
|
Add The Baffler
|
||||||
Fix Australia News Corp (amp-fix for desktop)
|
Fix Australia News Corp (amp-fix for desktop)
|
||||||
Fix Faz.net (json)
|
Fix Faz.net (json)
|
||||||
Fix GauchaZH (refresh)
|
Fix GauchaZH (refresh)
|
||||||
|
Fix Medium (add link to freedium)
|
||||||
Fix WSJ (link to Google Search Tool)
|
Fix WSJ (link to Google Search Tool)
|
||||||
|
|
||||||
* v3.3.8.0 (2023-10-15)
|
* v3.3.8.0 (2023-10-15)
|
||||||
|
|
|
@ -332,6 +332,7 @@ if (matchDomain('medium.com') || matchDomain(medium_custom_domains) || (!matchDo
|
||||||
let paywall = document.querySelector('article.meteredContent');
|
let paywall = document.querySelector('article.meteredContent');
|
||||||
if (paywall) {
|
if (paywall) {
|
||||||
paywall.removeAttribute('class');
|
paywall.removeAttribute('class');
|
||||||
|
paywall.firstChild.before(freediumLink(url));
|
||||||
paywall.firstChild.before(googleWebcacheLink(url));
|
paywall.firstChild.before(googleWebcacheLink(url));
|
||||||
}
|
}
|
||||||
window.setTimeout(function () {
|
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);
|
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') {
|
function externalLink(domains, ext_url_templ, url, text_fail = 'BPC > Full article text:\r\n') {
|
||||||
let text_fail_div = document.createElement('div');
|
let text_fail_div = document.createElement('div');
|
||||||
text_fail_div.id = 'bpc_archive';
|
text_fail_div.id = 'bpc_archive';
|
||||||
|
|
|
@ -41,7 +41,7 @@ window.setTimeout(function () {
|
||||||
group = '###_substack_custom';// no fix
|
group = '###_substack_custom';// no fix
|
||||||
else if (document.querySelector('script[src*="/wp-content/themes/pmgnews/scripts/promedia.js"], form[action^="https://go.promedia.nl/"]'))
|
else if (document.querySelector('script[src*="/wp-content/themes/pmgnews/scripts/promedia.js"], form[action^="https://go.promedia.nl/"]'))
|
||||||
group = '###_nl_promedia';
|
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/"]'))
|
if (document.querySelector('a[href^="https://austcommunitymedia.my.site.com/"]'))
|
||||||
group = '###_au_comm_media';
|
group = '###_au_comm_media';
|
||||||
else if (hostname.endsWith('.com.au')) {
|
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']))
|
else if (matchDomain(['accountingtoday.com', 'benefitnews.com', 'bondbuyer.com', 'dig-in.com', 'financial-planning.com', 'nationalmortgagenews.com']))
|
||||||
group = 'americanbanker.com';// Arizent
|
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({
|
ext_api.runtime.sendMessage({
|
||||||
|
|
|
@ -51,5 +51,5 @@
|
||||||
"webRequestBlocking",
|
"webRequestBlocking",
|
||||||
"*://*/*"
|
"*://*/*"
|
||||||
],
|
],
|
||||||
"version": "3.3.8.7"
|
"version": "3.3.8.8"
|
||||||
}
|
}
|
||||||
|
|
|
@ -206,6 +206,11 @@
|
||||||
"allow_cookies": 1,
|
"allow_cookies": 1,
|
||||||
"domain": "ewmagazine.nl"
|
"domain": "ewmagazine.nl"
|
||||||
},
|
},
|
||||||
|
"Faithfullymagazine.com": {
|
||||||
|
"allow_cookies": 1,
|
||||||
|
"domain": "faithfullymagazine.com",
|
||||||
|
"ld_json": "div.pmpro_content_message|div.content-inner"
|
||||||
|
},
|
||||||
"Finansavisen.no": {
|
"Finansavisen.no": {
|
||||||
"allow_cookies": 1,
|
"allow_cookies": 1,
|
||||||
"domain": "finansavisen.no",
|
"domain": "finansavisen.no",
|
||||||
|
|
|
@ -807,5 +807,5 @@
|
||||||
"*://*.wyleex.com/*",
|
"*://*.wyleex.com/*",
|
||||||
"*://webcache.googleusercontent.com/*"
|
"*://webcache.googleusercontent.com/*"
|
||||||
],
|
],
|
||||||
"version": "3.3.8.7"
|
"version": "3.3.8.8"
|
||||||
}
|
}
|
||||||
|
|
5
sites.js
5
sites.js
|
@ -1150,6 +1150,11 @@ var defaultSites = {
|
||||||
allow_cookies: 1,
|
allow_cookies: 1,
|
||||||
block_regex: /js\.pelcro\.com\//
|
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": {
|
"Intelligent Investor": {
|
||||||
domain: "intelligentinvestor.com.au",
|
domain: "intelligentinvestor.com.au",
|
||||||
allow_cookies: 1,
|
allow_cookies: 1,
|
||||||
|
|
Loading…
Reference in a new issue