mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:11:56 +01:00
Fix The Globe and Mail (title/comments)
This commit is contained in:
parent
e85fec5c82
commit
fc9d379ce8
6 changed files with 21 additions and 30 deletions
|
@ -10,6 +10,7 @@ Fix Gruppo SAE.it (free articles only)
|
|||
Fix LePoint.fr
|
||||
Fix Schwaebische.de
|
||||
Fix Tagesspiegel.de (not background/checkpoint)
|
||||
Fix The Globe and Mail (title/comments)
|
||||
Update custom sites/popup (remove Google Search Tool)
|
||||
|
||||
* v3.1.8.0 (2023-05-14)
|
||||
|
|
|
@ -49,7 +49,7 @@ var usa_outside_mag_domains = ["backpacker.com", "betamtb.com", "betternutrition
|
|||
var usa_tribune_domains = ['baltimoresun.com', 'chicagotribune.com', 'courant.com', 'dailypress.com', 'mcall.com', 'nydailynews.com', 'orlandosentinel.com', 'pilotonline.com', 'sun-sentinel.com'];
|
||||
|
||||
// clean local storage of sites (with an exemption for hold-list)
|
||||
var arr_localstorage_hold = ['allgaeuer-zeitung.de', 'augsburger-allgemeine.de', 'barrons.com', 'businessinsider.com', 'businessoffashion.com', 'businesspost.ie', 'challenges.fr', 'charliehebdo.fr', 'cmjornal.pt', 'corriere.it', 'corrieredellosport.it', 'cyclingtips.com', 'dvhn.nl', 'economictimes.com', 'eldiario.es', 'elespanol.com', 'elle.fr', 'elpais.com', 'elperiodico.com', 'enotes.com', 'estadao.com.br', 'forbes.com', 'fortune.com', 'freiepresse.de', 'globo.com', 'ilfoglio.it', 'inc42.com', 'indianexpress.com', 'ksta.de', 'kurier.at', 'lanouvellerepublique.fr', 'latimes.com', 'lc.nl', 'lesechos.fr', 'livemint.com', 'mid-day.com', 'mundodeportivo.com', 'nationalreview.com', 'nw.de', 'nytimes.com', 'nzherald.co.nz', 'record.pt', 'rundschau-online.de', 'sandiegouniontribune.com', 'scmp.com', 'seekingalpha.com', 'telegraph.co.uk', 'tes.com', 'theatlantic.com', 'thebulletin.org', 'thecritic.co.uk', 'thetimes.co.uk', 'uol.com.br', 'wsj.com'].concat(be_roularta_domains, ca_gcm_domains, de_funke_medien_domains, de_lv_domains, de_westfalen_medien_domains, es_epiberica_domains, es_epiberica_custom_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, fr_groupe_nice_matin_domains, it_gedi_domains, it_quotidiano_domains, ca_gcm_domains, nl_dpg_media_domains, no_nhst_media_domains, timesofindia_domains, usa_hearst_comm_domains, usa_mcc_domains);
|
||||
var arr_localstorage_hold = ['allgaeuer-zeitung.de', 'augsburger-allgemeine.de', 'barrons.com', 'businessinsider.com', 'businessoffashion.com', 'businesspost.ie', 'challenges.fr', 'charliehebdo.fr', 'cmjornal.pt', 'corriere.it', 'corrieredellosport.it', 'cyclingtips.com', 'dvhn.nl', 'economictimes.com', 'eldiario.es', 'elespanol.com', 'elle.fr', 'elpais.com', 'elperiodico.com', 'enotes.com', 'estadao.com.br', 'forbes.com', 'fortune.com', 'freiepresse.de', 'globo.com', 'ilfoglio.it', 'inc42.com', 'indianexpress.com', 'ksta.de', 'kurier.at', 'lanouvellerepublique.fr', 'latimes.com', 'lc.nl', 'lesechos.fr', 'livemint.com', 'mid-day.com', 'mundodeportivo.com', 'nationalreview.com', 'nrc.nl', 'nw.de', 'nytimes.com', 'nzherald.co.nz', 'record.pt', 'rundschau-online.de', 'sandiegouniontribune.com', 'scmp.com', 'seekingalpha.com', 'telegraph.co.uk', 'tes.com', 'theatlantic.com', 'thebulletin.org', 'thecritic.co.uk', 'thetimes.co.uk', 'uol.com.br', 'wsj.com'].concat(be_roularta_domains, ca_gcm_domains, de_funke_medien_domains, de_lv_domains, de_westfalen_medien_domains, es_epiberica_domains, es_epiberica_custom_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, fr_groupe_nice_matin_domains, it_gedi_domains, it_quotidiano_domains, ca_gcm_domains, nl_dpg_media_domains, no_nhst_media_domains, timesofindia_domains, usa_hearst_comm_domains, usa_mcc_domains);
|
||||
if (!matchDomain(arr_localstorage_hold)) {
|
||||
window.localStorage.clear();
|
||||
}
|
||||
|
@ -2332,18 +2332,8 @@ else if (matchDomain(nl_dpg_media_domains)) {
|
|||
}
|
||||
|
||||
else if (matchDomain('nrc.nl')) {
|
||||
window.setTimeout(function () {
|
||||
let nrc_overlay = document.querySelectorAll('[id$="modal__overlay"]');
|
||||
let subscribe_bar = document.querySelector('.header__subscribe-bar');
|
||||
let ads = document.querySelectorAll('.banner');
|
||||
removeDOMElement(...nrc_overlay, subscribe_bar, ...ads);
|
||||
let paywall = document.querySelector('.has-paywall');
|
||||
if (paywall)
|
||||
paywall.classList.remove('has-paywall');
|
||||
let paywall_overlay = document.querySelector('.has-paywall-overlay');
|
||||
if (paywall_overlay)
|
||||
paywall_overlay.classList.remove('has-paywall-overlay');
|
||||
}, 100);
|
||||
let banners = document.querySelectorAll('div[id$="modal__overlay"], div.header__subscribe-bar, div.banner');
|
||||
removeDOMElement(...banners);
|
||||
}
|
||||
|
||||
else if (matchDomain('telegraaf.nl')) {
|
||||
|
@ -4429,15 +4419,21 @@ else if (matchDomain('thediplomat.com')) {
|
|||
}
|
||||
|
||||
else if (matchDomain('theglobeandmail.com')) {
|
||||
let paywall = document.querySelector('div.c-paywall');
|
||||
if (paywall) {
|
||||
removeDOMElement(paywall);
|
||||
window.location.href = window.location.pathname + '?rel=premium';
|
||||
if (!window.location.search.startsWith('?rel=premium')) {
|
||||
let paywall = document.querySelector('div.c-paywall');
|
||||
if (paywall) {
|
||||
removeDOMElement(paywall);
|
||||
window.location.href = window.location.pathname + '?rel=premium';
|
||||
}
|
||||
} else {
|
||||
let header_hidden = document.querySelectorAll('div.o-primary-header, div.c-article-meta');
|
||||
for (let elem of header_hidden)
|
||||
elem.setAttribute('style', 'display: block !important;');
|
||||
}
|
||||
let lazy_images = document.querySelectorAll('img[src^="data:image/"][data-src]');
|
||||
for (let elem of lazy_images)
|
||||
elem.src = elem.getAttribute('data-src');
|
||||
let banners = document.querySelectorAll('div.c-ad, div#subscription-pencil-area, div.marketing-container-wrapper');
|
||||
let banners = document.querySelectorAll('div.c-ad, div#subscription-pencil-area, div.marketing-container-wrapper, div[class^="BaseAd__"]');
|
||||
hideDOMElement(...banners);
|
||||
}
|
||||
|
||||
|
|
|
@ -8,12 +8,10 @@ if (hostname.match(/\.de$/)) {
|
|||
|
||||
if (matchDomain(de_madsack_domains) || document.querySelector('link[href*=".rndtech.de/"]')) {
|
||||
function madsack_main() {
|
||||
let done = false;
|
||||
for (let n = 0; n < 10; n++) {
|
||||
window.setTimeout(function () {
|
||||
if (!done && window.Fusion) {
|
||||
if (window.Fusion) {
|
||||
window.Fusion.globalContent.isPaid = false;
|
||||
done = true;
|
||||
}
|
||||
}, n * 50);
|
||||
}
|
||||
|
@ -23,12 +21,10 @@ if (matchDomain(de_madsack_domains) || document.querySelector('link[href*=".rndt
|
|||
|
||||
} else if (matchDomain('nzherald.co.nz')) {
|
||||
function nzherald_main() {
|
||||
let done = false;
|
||||
for (let n = 0; n < 10; n++) {
|
||||
window.setTimeout(function () {
|
||||
if (!done && window.Fusion) {
|
||||
if (window.Fusion) {
|
||||
window.Fusion.globalContent.isPremium = false;
|
||||
done = true;
|
||||
}
|
||||
}, n * 50);
|
||||
}
|
||||
|
@ -38,12 +34,10 @@ if (matchDomain(de_madsack_domains) || document.querySelector('link[href*=".rndt
|
|||
|
||||
else if (matchDomain('theglobeandmail.com')) {
|
||||
function tgam_main() {
|
||||
let done = false;
|
||||
for (let n = 0; n < 10; n++) {
|
||||
window.setTimeout(function () {
|
||||
if (!done && window.Fusion) {
|
||||
if (window.Fusion) {
|
||||
window.Fusion.globalContent._id = '';
|
||||
done = true;
|
||||
}
|
||||
}, n * 50);
|
||||
}
|
||||
|
|
|
@ -51,5 +51,5 @@
|
|||
"webRequestBlocking",
|
||||
"*://*/*"
|
||||
],
|
||||
"version": "3.1.8.3"
|
||||
"version": "3.1.8.4"
|
||||
}
|
||||
|
|
|
@ -753,5 +753,5 @@
|
|||
"*://*.wallkit.net/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "3.1.8.3"
|
||||
"version": "3.1.8.4"
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
"domain": "lepoint.fr",
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "\\.poool\\.fr",
|
||||
"ld_google_webcache": "div#dompurify|div"
|
||||
"ld_google_webcache": "div.info-paywall|div.ArticleBody"
|
||||
},
|
||||
"Monocle": {
|
||||
"domain": "monocle.com",
|
||||
|
|
Loading…
Reference in a new issue