mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 08:27:48 +01:00
Fix Business Standard & LiveMint
This commit is contained in:
parent
ba3a5c5f58
commit
ab6f6282ec
5 changed files with 29 additions and 5 deletions
|
@ -4,8 +4,10 @@ Changelog Bypass Paywalls Clean - Firefox
|
||||||
Post-release
|
Post-release
|
||||||
Add Nw.de
|
Add Nw.de
|
||||||
Add Substack custom domains (opt-in to custom sites)
|
Add Substack custom domains (opt-in to custom sites)
|
||||||
|
Fix Business Standard (mobile)
|
||||||
Fix El Correo & La Voz de Cadiz
|
Fix El Correo & La Voz de Cadiz
|
||||||
Fix LaVie.fr
|
Fix LaVie.fr
|
||||||
|
Fix LiveMint (css)
|
||||||
|
|
||||||
* v2.8.0.0 (2022-08-15)
|
* v2.8.0.0 (2022-08-15)
|
||||||
Add Gazzetta.it
|
Add Gazzetta.it
|
||||||
|
|
|
@ -39,7 +39,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'];
|
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)
|
// clean local storage of sites (with an exemption for hold-list)
|
||||||
var arr_localstorage_hold = ['allgaeuer-zeitung.de', 'augsburger-allgemeine.de', 'barrons.com', 'businessoffashion.com', 'challenges.fr', 'charliehebdo.fr', 'cmjornal.pt', 'corriere.it', 'corrieredellosport.it', 'cyclingtips.com', 'eldiario.es', 'elespanol.com', 'elle.fr', 'elpais.com', 'elperiodico.com', 'enotes.com', 'estadao.com.br', 'forbes.com', 'fortune.com', 'economictimes.com', 'freiepresse.de', 'ilfoglio.it', 'inc42.com', 'lanouvellerepublique.fr', 'lesechos.fr', 'mid-day.com', 'nw.de', 'nytimes.com', 'nzherald.co.nz', 'scmp.com', 'seekingalpha.com', 'substack.com', 'telegraph.co.uk', 'theatlantic.com', 'thehindu.com', 'thetimes.co.uk', 'wsj.com'].concat(de_funke_medien_domains, de_westfalen_medien_domains, es_epiberica_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, fr_groupe_nice_matin_domains, it_quotidiano_domains, ca_gcm_domains, nl_dpg_media_domains, no_nhst_media_domains, usa_hearst_comm_domains);
|
var arr_localstorage_hold = ['allgaeuer-zeitung.de', 'augsburger-allgemeine.de', 'barrons.com', 'businessoffashion.com', 'challenges.fr', 'charliehebdo.fr', 'cmjornal.pt', 'corriere.it', 'corrieredellosport.it', 'cyclingtips.com', 'eldiario.es', 'elespanol.com', 'elle.fr', 'elpais.com', 'elperiodico.com', 'enotes.com', 'estadao.com.br', 'forbes.com', 'fortune.com', 'economictimes.com', 'freiepresse.de', 'ilfoglio.it', 'inc42.com', 'lanouvellerepublique.fr', 'lesechos.fr', 'livemint.com', 'mid-day.com', 'nw.de', 'nytimes.com', 'nzherald.co.nz', 'scmp.com', 'seekingalpha.com', 'substack.com', 'telegraph.co.uk', 'theatlantic.com', 'thehindu.com', 'thetimes.co.uk', 'wsj.com'].concat(de_funke_medien_domains, de_westfalen_medien_domains, es_epiberica_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, fr_groupe_nice_matin_domains, it_quotidiano_domains, ca_gcm_domains, nl_dpg_media_domains, no_nhst_media_domains, usa_hearst_comm_domains);
|
||||||
if (!matchDomain(arr_localstorage_hold)) {
|
if (!matchDomain(arr_localstorage_hold)) {
|
||||||
window.localStorage.clear();
|
window.localStorage.clear();
|
||||||
}
|
}
|
||||||
|
@ -2674,14 +2674,14 @@ else if (matchDomain('business-standard.com')) {
|
||||||
if (skip_button)
|
if (skip_button)
|
||||||
skip_button.click();
|
skip_button.click();
|
||||||
if (!window.location.pathname.startsWith('/article-amp/')) {
|
if (!window.location.pathname.startsWith('/article-amp/')) {
|
||||||
let paywall = document.querySelector('span.p-content.paywall, main');
|
let paywall = document.querySelector('span.p-content.paywall, main, p.read-txt');
|
||||||
let amphtml = document.querySelector('link[rel="amphtml"]');
|
let amphtml = document.querySelector('link[rel="amphtml"]');
|
||||||
if (paywall && amphtml) {
|
if (paywall && amphtml) {
|
||||||
removeDOMElement(paywall);
|
removeDOMElement(paywall);
|
||||||
window.location.href = amphtml.href;
|
window.location.href = amphtml.href;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
amp_unhide_subscr_section('amp-ad, amp-embed, .block-cont-amp, #divnonpaidcontent');
|
amp_unhide_subscr_section('amp-ad, amp-embed, .block-cont-amp, #divnonpaidcontent, div > div.article_image, div[subscriptions-actions], .reader');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3146,6 +3146,12 @@ else if (matchDomain('livemint.com')) {
|
||||||
if (window.location.pathname.includes('/amp-')) {
|
if (window.location.pathname.includes('/amp-')) {
|
||||||
let paywall = document.querySelectorAll('[amp-access="NOT subscribed"]');
|
let paywall = document.querySelectorAll('[amp-access="NOT subscribed"]');
|
||||||
removeDOMElement(...paywall);
|
removeDOMElement(...paywall);
|
||||||
|
} else {
|
||||||
|
let paywall = document.querySelector('div.paywall');
|
||||||
|
if (paywall)
|
||||||
|
paywall.classList.remove('paywall');
|
||||||
|
let ads = document.querySelectorAll('[class^="ad"], [id^="ad"], #subscribeAd, .taboolaHeight');
|
||||||
|
removeDOMElement(...ads);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -700,5 +700,5 @@
|
||||||
"*://gcm.omerlocdn.com/*",
|
"*://gcm.omerlocdn.com/*",
|
||||||
"*://webcache.googleusercontent.com/*"
|
"*://webcache.googleusercontent.com/*"
|
||||||
],
|
],
|
||||||
"version": "2.8.0.4"
|
"version": "2.8.0.5"
|
||||||
}
|
}
|
||||||
|
|
2
sites.js
2
sites.js
|
@ -1078,7 +1078,7 @@ var defaultSites = {
|
||||||
"LiveMint": {
|
"LiveMint": {
|
||||||
domain: "livemint.com",
|
domain: "livemint.com",
|
||||||
allow_cookies: 1,
|
allow_cookies: 1,
|
||||||
block_regex: /(\.livemint\.com\/__js\/lm_subscription_.+\.js|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/
|
block_regex: /(\.livemint\.com\/__js\/lm_subscription_.+\.js|\.piano\.io\/api\/tinypass\.min\.js|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/
|
||||||
},
|
},
|
||||||
"Loeb Classical Library": {
|
"Loeb Classical Library": {
|
||||||
domain: "loebclassics.com"
|
domain: "loebclassics.com"
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
{
|
{
|
||||||
|
"Business Standard": {
|
||||||
|
"domain": "business-standard.com",
|
||||||
|
"allow_cookies": 1,
|
||||||
|
"block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-subscriptions-.+\\.js",
|
||||||
|
"amp_redirect": "p.read-txt"
|
||||||
|
},
|
||||||
"El Español": {
|
"El Español": {
|
||||||
"domain": "elespanol.com",
|
"domain": "elespanol.com",
|
||||||
"allow_cookies": 1,
|
"allow_cookies": 1,
|
||||||
|
@ -22,6 +28,16 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"LiveMint": {
|
||||||
|
"domain": "livemint.com",
|
||||||
|
"allow_cookies": 1,
|
||||||
|
"block_regex": "(\\.livemint\\.com\\/__js\\/lm_subscription_.+\\.js|\\.piano\\.io\\/api\\/tinypass\\.min\\.js|cdn\\.ampproject\\.org\\/v\\d\\/amp-access-.+\\.js)",
|
||||||
|
"cs_code": [{
|
||||||
|
"cond": "div.paywall",
|
||||||
|
"rm_class": "paywall"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"Neue Westfälische": {
|
"Neue Westfälische": {
|
||||||
"domain": "nw.de",
|
"domain": "nw.de",
|
||||||
"allow_cookies": 1,
|
"allow_cookies": 1,
|
||||||
|
|
Loading…
Reference in a new issue