Fix Apollo Magazine & Spectator.com.au

This commit is contained in:
magnolia1234 2023-10-24 08:08:45 +02:00
parent f20f5ca72a
commit 548be848ac
8 changed files with 28 additions and 14 deletions

View file

@ -3,7 +3,9 @@ Changelog Bypass Paywalls Clean - Firefox
Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases
Post-release
Fix Apollo Magazine
Fix Harvard Business Review (cookie)
Fix Spectator.com.au
Fix WSJ (non-pro; link to archive.is)
* v3.3.9.0 (2023-10-22)

View file

@ -2693,9 +2693,14 @@ else if (matchDomain('vn.nl')) {
else
csDone = true;
} else if ((window.location.hostname.match(/\.(ie|uk)$/) && !matchDomain(['investmentweek.co.uk'])) || matchDomain(['citywire.com', 'ft.com', 'granta.com', 'scotsman.com', 'tes.com', 'unherd.com'])) {//united kingdom/ireland
} else if ((window.location.hostname.match(/\.(ie|uk)$/) && !matchDomain(['investmentweek.co.uk'])) || matchDomain(['apollo-magazine.com', 'citywire.com', 'ft.com', 'granta.com', 'scotsman.com', 'tes.com', 'unherd.com'])) {//united kingdom/ireland
if (matchDomain('autocar.co.uk')) {
if (matchDomain('apollo-magazine.com')) {
let banner = document.querySelector('#subscribe-ribbon');
removeDOMElement(banner);
}
else if (matchDomain('autocar.co.uk')) {
let url = window.location.href;
let paywall = document.querySelector('div.ms-block, div.register-block');
if (paywall) {
@ -5811,7 +5816,7 @@ function refreshCurrentTab_bg() {
ext_api.runtime.sendMessage({request: 'refreshCurrentTab'});
}
function archiveLink(url, text_fail = 'BPC > Try for full article text (only report issue if not working for over a week):\r\n') {
function archiveLink(url, text_fail = 'BPC > Try for full article text (no need to report issue for external site):\r\n') {
return externalLink(['archive.today', 'archive.is'], 'https://{domain}?run=1&url={url}', url, text_fail);
}

View file

@ -109,7 +109,7 @@ window.setTimeout(function () {
group = '###_ca_gcm';
else if (document.querySelector('script[src*=".postmedia.digital/"], head > meta[content*=".postmedia.digital/"]'))
group = '###_ca_postmedia';
else if (document.querySelector('script[src*=".axate.io/"], script[src*=".agate.io/"]') && !matchDomain(['thecricketer.com']))
else if (document.querySelector('script[src*=".axate.io/"], script[src*=".agate.io/"]'))
group = '###_uk_axate.io';
else if (matchDomain(['businessgreen.com', 'internationalinvestment.net', 'professionaladviser.com', 'professionalpensions.com']))
group = '###_uk_incisive_media';

View file

@ -51,5 +51,5 @@
"webRequestBlocking",
"*://*/*"
],
"version": "3.3.9.2"
"version": "3.3.9.3"
}

View file

@ -807,5 +807,5 @@
"*://*.wyleex.com/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.3.9.2"
"version": "3.3.9.3"
}

View file

@ -68,9 +68,7 @@ var defaultSites = {
block_regex: /\.tinypass\.com\//
},
"Apollo Magazine": {
domain: "apollo-magazine.com",
allow_cookies: 1,
block_regex: /\.tinypass\.com\//
domain: "apollo-magazine.com"
},
"ARA": {
domain: "###_cat_ara",
@ -2362,7 +2360,7 @@ var defaultSites = {
},
"The Spectator Australia": {
domain: "spectator.com.au",
block_regex: /\.tinypass\.com\//
useragent: "googlebot"
},
"The Spectator World": {
domain: "thespectator.com",
@ -2792,8 +2790,8 @@ var custom_flex_not = {
"###_ca_postmedia": ["canada.com", "canoe.com", "driving.ca"],
"###_de_dfv_medien": ["dfv.de"],
"###_de_madsack": ["madsack.de", "madsack-medien-campus.de"],
"###_wp_leaky_paywall": ["dominionpost.com", "thewirechina.com"],
"###_uk_axate.io": ["thinkofx.net"],
"###_wp_leaky_paywall": ["dominionpost.com", "heisenbergreport.com", "thewirechina.com"],
"###_uk_axate.io": ["thecricketer.com", "thinkofx.net"],
"###_usa_hearst_comm": ["sfgate.com"],
"###_usa_mcc": ["mcclatchy.com"],
"###_usa_townnews": ["bloxdigital.com", "townnews.com"],

View file

@ -1,4 +1,8 @@
{
"Apollo Magazine": {
"domain": "apollo-magazine.com",
"upd_version": "3.3.9.3"
},
"Australia News Corp (when blocked disable Googlebot in BPC-settings)": {
"domain": "###_au_news_corp",
"group": [
@ -104,6 +108,11 @@
"useragent": "googlebot",
"upd_version": "3.1.4.0"
},
"The Spectator Australia": {
"domain": "spectator.com.au",
"useragent": "googlebot",
"upd_version": "3.3.9.3"
},
"UnHerd": {
"domain": "unherd.com",
"allow_cookies": 1,

View file

@ -2,8 +2,8 @@
"addons": {
"magnolia@12.34": {
"updates": [
{ "version": "3.3.8.0",
"update_link": "https://gitlab.com/magnolia1234/bpc-uploads/-/raw/master/bypass_paywalls_clean-3.3.8.0.xpi" }
{ "version": "3.3.9.0",
"update_link": "https://gitlab.com/magnolia1234/bpc-uploads/-/raw/master/bypass_paywalls_clean-3.3.9.0.xpi" }
]
}
}