mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 04:01:58 +01:00
Fix El Espanol (menu)
This commit is contained in:
parent
cab8c3d810
commit
7a2e0f3512
5 changed files with 17 additions and 4 deletions
|
@ -8,6 +8,7 @@ Remove Limburger.nl & Standaard.be (fix obsolete)
|
|||
Remove Golem.de, Tagesspiegel.de, Welt.de & Wiwo.de (fix obsolete)
|
||||
Remove World Politics Review (fix obsolete)
|
||||
Fix Australia News Corp (amp-iframe)
|
||||
Fix El Espanol (menu)
|
||||
Fix Spiegel.de (link to archive.is)
|
||||
Fix The New Republic (js)
|
||||
Fix TheTimes.co.uk (link to archive.is & epaper-fix obsolete)
|
||||
|
|
|
@ -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'];
|
||||
|
||||
// clean local storage of sites (with an exemption for hold-list)
|
||||
var arr_localstorage_hold = ['abc.es', 'allgaeuer-zeitung.de', 'augsburger-allgemeine.de', 'barrons.com', 'businessoffashion.com', 'challenges.fr', 'charliehebdo.fr', 'cmjornal.pt', 'corriere.it', 'corrieredellosport.it', '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', '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 = ['abc.es', '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', '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)) {
|
||||
window.localStorage.clear();
|
||||
}
|
||||
|
@ -1078,8 +1078,9 @@ else if (matchDomain('elespanol.com')) {
|
|||
if (window.location.pathname.endsWith('.amp.html')) {
|
||||
amp_unhide_subscr_section('amp-ad, amp-embed');
|
||||
} else {
|
||||
let paywall = document.querySelector('div.full-suscriptor-container');
|
||||
let adverts = document.querySelectorAll('[id*="superior"], [class*="adv"]');
|
||||
removeDOMElement(...adverts);
|
||||
removeDOMElement(paywall, ...adverts);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3966,6 +3967,7 @@ else if (matchDomain(usa_outside_mag_domains)) {
|
|||
removeDOMElement(paywall);
|
||||
}
|
||||
if (matchDomain('cyclingtips.com')) {
|
||||
localStorage.removeItem('av');
|
||||
let ads = document.querySelectorAll('div[data-block-name="ads"], div#takeover');
|
||||
removeDOMElement(...ads);
|
||||
}
|
||||
|
|
|
@ -698,5 +698,5 @@
|
|||
"*://gcm.omerlocdn.com/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "2.7.9.5"
|
||||
"version": "2.7.9.6"
|
||||
}
|
||||
|
|
2
sites.js
2
sites.js
|
@ -393,7 +393,7 @@ var defaultSites = {
|
|||
"El Español": {
|
||||
domain: "elespanol.com",
|
||||
allow_cookies: 1,
|
||||
block_regex: /(\.eestatic\.com\/assets_js\/web\/v\d\/historia.*\.min\.js|cdn\.ampproject\.org\/v\d\/amp-(access|subscriptions)-.+\.js)/
|
||||
block_regex: /cdn\.ampproject\.org\/v\d\/amp-(access|subscriptions)-.+\.js/
|
||||
},
|
||||
"El Espectador": {
|
||||
domain: "elespectador.com",
|
||||
|
|
|
@ -1,4 +1,14 @@
|
|||
{
|
||||
"El Español": {
|
||||
"domain": "elespanol.com",
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|subscriptions)-.+\\.js",
|
||||
"cs_code": [{
|
||||
"cond": "div.full-suscriptor-container",
|
||||
"rm_elem": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"Groene Amsterdammer": {
|
||||
"domain": "groene.nl",
|
||||
"remove_cookies_select_hold": ["accept-cookies", "popunder-hidden"],
|
||||
|
|
Loading…
Reference in a new issue