Add LiteraryReview.co.uk

This commit is contained in:
magnolia1234 2023-12-12 12:00:46 +01:00
parent b4917321f4
commit 63436a7939
9 changed files with 44 additions and 21 deletions

View file

@ -459,6 +459,7 @@ Grouped in options:\
[iNews](https://inews.co.uk) -
[Investors' Chronicle](https://www.investorschronicle.co.uk) -
[Irish Independent](https://www.independent.ie) -
[Literary Review](https://literaryreview.co.uk) -
[London Review of Books](https://www.lrb.co.uk) -
[Monocle](https://monocle.com) -
[New Left Review](https://newleftreview.org) -

View file

@ -514,7 +514,7 @@ ext_api.storage.local.get({
});
}
disabledSites = defaultSites_grouped_domains.concat(customSites_domains).filter(x => !enabledSites.includes(x));
disabledSites = defaultSites_grouped_domains.concat(customSites_domains, updatedSites_domains_new).filter(x => !enabledSites.includes(x));
add_grouped_enabled_domains(grouped_sites);
set_rules(sites, updatedSites, customSites);
if (enabledSites.includes('#options_optin_update_rules')) {
@ -542,7 +542,7 @@ ext_api.storage.onChanged.addListener(function (changes, namespace) {
}).map(function (val) {
return val.toLowerCase();
});
disabledSites = defaultSites_grouped_domains.concat(customSites_domains).filter(x => !enabledSites.includes(x));
disabledSites = defaultSites_grouped_domains.concat(customSites_domains, updatedSites_domains_new).filter(x => !enabledSites.includes(x));
add_grouped_enabled_domains(grouped_sites);
set_rules(sites, updatedSites, customSites);
}
@ -874,7 +874,11 @@ if (typeof browser !== 'object') {
// send bg2csData to contentScript.js
if (Object.keys(bg2csData).length) {
setTimeout(function () {
ext_api.tabs.sendMessage(tabId, {msg: "bg2cs", data: bg2csData});
try {
ext_api.tabs.sendMessage(tabId, {msg: "bg2cs", data: bg2csData});
} catch (err) {
false;
}
}, 500);
}
} // !cs_block_domain
@ -1029,6 +1033,7 @@ if (matchUrlDomain(change_headers, details.url) && !ignore_types.includes(detail
!(matchUrlDomain('barrons.com', details.url) && enabledSites.includes('#options_disable_gb_barrons')) &&
!(matchUrlDomain(['economictimes.com', 'economictimes.indiatimes.com'], details.url) && !details.url.split(/\?|#/)[0].endsWith('.cms')) &&
!(matchUrlDomain(au_news_corp_domains, details.url) && (details.url.includes('?amp') || !mobile || (!matchUrlDomain(au_news_corp_no_amp_fix, details.url) && enabledSites.includes('#options_disable_gb_au_news_corp')))) &&
!(matchUrlDomain('nytimes.com', details.url) && details.url.includes('.nytimes.com/live/')) &&
!(matchUrlDomain('uol.com.br', details.url) && !matchUrlDomain('folha.uol.com.br', details.url)) &&
!(matchUrlDomain('www.wsj.com', details.url));
var bingbotEnabled = matchUrlDomain(use_bing_bot, details.url);

View file

@ -3,8 +3,9 @@ Changelog Bypass Paywalls Clean - Firefox
Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases
Post-release
Remove Groupe EBRA (fix obsolete)
Add LiteraryReview.co.uk
Remove JungeFreiheit.de (fix obsolete)
Remove Groupe EBRA (fix obsolete)
Remove Wissenschaft.de (fix obsolete)
Fix Australia News Corp (media on amp)

View file

@ -1109,13 +1109,8 @@ else if (matchDomain('nwzonline.de')) {
}
else if (matchDomain('nzz.ch')) {
if (!window.location.href.includes('/amp/')) {
let ads = document.querySelectorAll('div.resor');
hideDOMElement(...ads);
} else {
let amp_ads = document.querySelectorAll('amp-ad');
hideDOMElement(...amp_ads);
}
let ads = document.querySelectorAll('div.resor');
hideDOMElement(...ads);
}
else if (matchDomain('philomag.de')) {
@ -1353,8 +1348,8 @@ else if (matchDomain(de_lv_domains)) {
div_hidden.removeAttribute('style');
}
}
let banners = document.querySelectorAll('.adZone');
removeDOMElement(...banners);
let ads = document.querySelectorAll('div.adZone');
hideDOMElement(...ads);
}
else if (matchDomain(de_westfalen_medien_domains)) {
@ -2919,6 +2914,11 @@ else if (matchDomain('independent.co.uk')) {
}
}
else if (matchDomain('literaryreview.co.uk')) {
if (dompurify_loaded)
getJsonUrl('p.subscribe-for-more', '', 'div#_articlereview');
}
else if (matchDomain('prospectmagazine.co.uk')) {
let url = window.location.href;
getGoogleWebcache(url, 'div.paywall_overlay_blend, div.paywall', '', 'main');
@ -4449,13 +4449,17 @@ else if (matchDomain('nybooks.com')) {
let paywall_article = document.querySelector('.paywall-article');
if (paywall_article)
paywall_article.classList.remove('paywall-article');
let banner = document.querySelector('div.toast-cta, div.inline-ad');
removeDOMElement(banner);
let banners = document.querySelectorAll('div.toast-cta, div.inline-ad');
hideDOMElement(...banners);
}
else if (matchDomain('nytimes.com')) {
let banners = document.querySelectorAll('div[data-testid="inline-message"], div[id^="ad-"], div.expanded-dock, div.pz-ad-box');
removeDOMElement(...banners);
waitDOMElement('div#dock-container', 'DIV', removeDOMElement, false);
csDoneOnce = true;
window.setTimeout(function () {
let banners = document.querySelectorAll('div[data-testid="inline-message"], div[id^="ad-"], div.pz-ad-box');
hideDOMElement(...banners);
}, 1000);
}
else if (matchDomain('nzherald.co.nz')) {

View file

@ -51,5 +51,5 @@
"webRequestBlocking",
"*://*/*"
],
"version": "3.4.6.2"
"version": "3.4.6.3"
}

View file

@ -429,6 +429,7 @@
"*://*.liberation-champagne.fr/*",
"*://*.lindependant.fr/*",
"*://*.linforme.com/*",
"*://*.literaryreview.co.uk/*",
"*://*.livelaw.in/*",
"*://*.livemint.com/*",
"*://*.ln-online.de/*",
@ -820,5 +821,5 @@
"*://archive.vn/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.4.6.2"
"version": "3.4.6.3"
}

View file

@ -1427,6 +1427,11 @@ var defaultSites = {
allow_cookies: 1,
block_regex: /\.qiota\.com\//
},
"Literary Review (UK)": {
domain: "literaryreview.co.uk",
allow_cookies: 1,
cs_dompurify: 1
},
"Live Law": {
domain: "livelaw.in",
allow_cookies: 1

View file

@ -35,6 +35,12 @@
"allow_cookies": 1,
"upd_version": "3.4.4.3"
},
"Literary Review (UK)": {
"domain": "literaryreview.co.uk",
"allow_cookies": 1,
"ld_json_url": "p.subscribe-for-more|div#_articlereview",
"upd_version": "3.4.6.3"
},
"The Atlantic": {
"domain": "theatlantic.com",
"block_regex": "cdn\\.theatlantic\\.com\\/_next\\/static\\/chunks\\/pages\\/.+\\/archive\\/",

View file

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