mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:27:48 +01:00
Fix Grupo Prensa Iberica (css)
This commit is contained in:
parent
f7794069da
commit
a2b2537b80
8 changed files with 40 additions and 90 deletions
|
@ -815,7 +815,8 @@ Grouped in options:\
|
|||
[La Nueva España](https://www.lne.es) -
|
||||
[La Provincia](https://www.laprovincia.es) -
|
||||
[Levante-EMV](https://www.levante-emv.com) -
|
||||
[Mallorca Zeitung](https://www.mallorcazeitung.es)\
|
||||
[Mallorca Zeitung](https://www.mallorcazeitung.es) -
|
||||
[Superdeporte](https://www.superdeporte.es)\
|
||||
*Grupo Unidad Editorial* sites like\
|
||||
[El Mundo](https://www.elmundo.es) -
|
||||
[Expansión](https://www.expansion.com) -
|
||||
|
|
|
@ -3,6 +3,8 @@ Changelog Bypass Paywalls Clean - Firefox
|
|||
Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases
|
||||
|
||||
Post-release
|
||||
Add Superdeporte.es (Grupo Prensa Iberica)
|
||||
Fix Grupo Prensa Iberica (css)
|
||||
|
||||
* v3.5.4.0 (2024-02-04)
|
||||
Add BusinessTimes.com.sg & StraitsTimes.com (SPH Media)
|
||||
|
|
|
@ -20,8 +20,8 @@ var de_madsack_domains = ['haz.de', 'kn-online.de', 'ln-online.de', 'lvz.de', 'm
|
|||
var de_mhs_custom_domains = ['cannstatter-zeitung.de', 'esslinger-zeitung.de', 'frankenpost.de', 'insuedthueringen.de', 'krzbb.de', 'kurier.de', 'np-coburg.de'];
|
||||
var de_vrm_domains = ['allgemeine-zeitung.de', 'echo-online.de', 'wiesbadener-kurier.de'];
|
||||
var de_vrm_custom_domains = ['buerstaedter-zeitung.de', 'hochheimer-zeitung.de', 'lampertheimer-zeitung.de', 'lauterbacher-anzeiger.de', 'main-spitze.de', 'mittelhessen.de', 'oberhessische-zeitung.de', 'wormser-zeitung.de'];
|
||||
var es_epiberica_domains = ['diariodemallorca.es', 'eldia.es', 'elperiodico.com', 'epe.es', 'farodevigo.es', 'informacion.es', 'laprovincia.es', 'levante-emv.com', 'lne.es', 'mallorcazeitung.es'];
|
||||
var es_epiberica_custom_domains = ['diaridegirona.cat', 'diariocordoba.com', 'diariodeibiza.es', 'elperiodicodearagon.com', 'elperiodicoextremadura.com', 'elperiodicomediterraneo.com', 'emporda.info', 'laopinioncoruna.es', 'laopiniondemalaga.es', 'laopiniondemurcia.es', 'laopiniondezamora.es', 'regio7.cat'];
|
||||
var es_epiberica_domains = ['diariodemallorca.es', 'eldia.es', 'elperiodico.com', 'epe.es', 'farodevigo.es', 'informacion.es', 'laprovincia.es', 'levante-emv.com', 'lne.es', 'mallorcazeitung.es', 'superdeporte.es'];
|
||||
var es_epiberica_custom_domains = ['diaridegirona.cat', 'diariocordoba.com', 'diariodeibiza.es', 'elcorreogallego.es', 'elperiodicodearagon.com', 'elperiodicoextremadura.com', 'elperiodicomediterraneo.com', 'emporda.info', 'laopinioncoruna.es', 'laopiniondemalaga.es', 'laopiniondemurcia.es', 'laopiniondezamora.es', 'regio7.cat'];
|
||||
var es_grupo_vocento_domains = ['abc.es', 'diariosur.es', 'diariovasco.com', 'elcomercio.es', 'elcorreo.com', 'eldiariomontanes.es', 'elnortedecastilla.es', 'hoy.es', 'ideal.es', 'larioja.com', 'lasprovincias.es', 'laverdad.es', 'lavozdigital.es'];
|
||||
var es_unidad_domains = ['elmundo.es', 'expansion.com', 'marca.com'];
|
||||
var fr_be_groupe_rossel = ['aisnenouvelle.fr', 'courrier-picard.fr', 'lardennais.fr', 'lavoixdunord.fr', 'lesoir.be', 'lest-eclair.fr', 'liberation-champagne.fr', 'lunion.fr', 'nordlittoral.fr', 'paris-normandie.fr', 'sudinfo.be'];
|
||||
|
@ -1602,7 +1602,7 @@ else if (matchDomain(es_epiberica_domains) || matchDomain(es_epiberica_custom_do
|
|||
let truncated = document.querySelector('div.article-body--truncated');
|
||||
if (truncated)
|
||||
truncated.classList.remove('article-body--truncated');
|
||||
amp_unhide_access_hide('="NOT access"], [amp-access="FALSE"', '="access"');
|
||||
amp_unhide_access_hide('="NOT access"], [amp-access="FALSE"', '="access"', 'amp-ad, amp-embed, span.ad-signature');
|
||||
} else if (['amp.elperiodico.com', 'amp.epe.es'].includes(window.location.hostname)) {
|
||||
amp_unhide_access_hide('="loggedIn"', '="NOT loggedIn"', 'amp-ad, amp-embed, amp-next-page');
|
||||
let amp_images = document.querySelectorAll('div > amp-img[src]');
|
||||
|
@ -1613,7 +1613,10 @@ else if (matchDomain(es_epiberica_domains) || matchDomain(es_epiberica_custom_do
|
|||
amp_image.parentNode.replaceChild(elem, amp_image);
|
||||
}
|
||||
} else {
|
||||
let ads = document.querySelectorAll('div.commercial-up-full__wrapper, div.sidebar--sticky__space, div[data-bbnx-id*="cxense"], div.container-ad');
|
||||
let paywall = document.querySelector('div.ft-helper-closenews');
|
||||
if (paywall)
|
||||
paywall.removeAttribute('class');
|
||||
let ads = document.querySelectorAll('div.commercial-up-full__wrapper, aside.ft-ad, div[class^="_mo_recs"]');
|
||||
hideDOMElement(...ads);
|
||||
}
|
||||
}
|
||||
|
@ -1647,7 +1650,7 @@ else if (matchDomain('expresso.pt')) {
|
|||
for (let par of pars) {
|
||||
let par_new;
|
||||
if (par.html) {
|
||||
let doc = parser.parseFromString('<div>' + DOMPurify.sanitize(par.html) + '</div>', 'text/html');
|
||||
let doc = parser.parseFromString('<div>' + DOMPurify.sanitize(par.html, dompurify_options) + '</div>', 'text/html');
|
||||
par_new = doc.querySelector('div');
|
||||
} else if (par.type === 'PICTURE') {
|
||||
if (par.urlOriginal) {
|
||||
|
@ -1668,7 +1671,7 @@ else if (matchDomain('expresso.pt')) {
|
|||
for (let elem of par.contents) {
|
||||
let elem_new;
|
||||
if (elem.html) {
|
||||
let doc = parser.parseFromString('<div>' + DOMPurify.sanitize(elem.html) + '</div>', 'text/html');
|
||||
let doc = parser.parseFromString('<div>' + DOMPurify.sanitize(elem.html, dompurify_options) + '</div>', 'text/html');
|
||||
elem_new = doc.querySelector('div');
|
||||
} else if (elem.urlOriginal) {
|
||||
elem_new = document.createElement('figure');
|
||||
|
|
|
@ -51,5 +51,5 @@
|
|||
"webRequestBlocking",
|
||||
"*://*/*"
|
||||
],
|
||||
"version": "3.5.4.0"
|
||||
"version": "3.5.4.1"
|
||||
}
|
||||
|
|
|
@ -846,5 +846,5 @@
|
|||
"*://archive.vn/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "3.5.4.0"
|
||||
"version": "3.5.4.1"
|
||||
}
|
||||
|
|
4
sites.js
4
sites.js
|
@ -988,7 +988,8 @@ var defaultSites = {
|
|||
"laprovincia.es",
|
||||
"levante-emv.com",
|
||||
"lne.es",
|
||||
"mallorcazeitung.es"
|
||||
"mallorcazeitung.es",
|
||||
"superdeporte.es"
|
||||
],
|
||||
allow_cookies: 1,
|
||||
block_regex: /(\.piano\.io\/|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/
|
||||
|
@ -3000,6 +3001,7 @@ 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"],
|
||||
"###_es_epiberica": ["sport.es", "stilo.es"],
|
||||
"###_wp_leaky_paywall": ["epsilontheory.com", "heisenbergreport.com", "investmentnews.com", "thewirechina.com"],
|
||||
"###_uk_axate.io": ["thecricketer.com", "thinkofx.net"],
|
||||
"###_uk_haymarket": ["gpbusiness.co.uk", "scmagazineuk.com", "thecorporatetreasurer.com"],
|
||||
|
|
|
@ -26,13 +26,6 @@
|
|||
"ld_archive_is": "div.esi-paywall|div.article__premium-content|article>div[style='display:block;']",
|
||||
"upd_version": "3.5.3.7"
|
||||
},
|
||||
"Die Zeit": {
|
||||
"domain": "zeit.de",
|
||||
"allow_cookies": 1,
|
||||
"add_ext_link": "aside#paywall|article",
|
||||
"add_ext_link_type": "archive.is",
|
||||
"upd_version": "3.5.1.2"
|
||||
},
|
||||
"Funke Mediengruppe": {
|
||||
"domain": "###_de_funke_medien",
|
||||
"group": [
|
||||
|
@ -53,6 +46,26 @@
|
|||
"block_regex": "\\.abril\\.com\\.br\\/.+\\/abril-paywall\\/",
|
||||
"upd_version": "3.5.2.1"
|
||||
},
|
||||
"Grupo Prensa Ibérica": {
|
||||
"domain": "###_es_epiberica",
|
||||
"group": [
|
||||
"diariodemallorca.es",
|
||||
"eldia.es",
|
||||
"elperiodico.com",
|
||||
"epe.es",
|
||||
"farodevigo.es",
|
||||
"informacion.es",
|
||||
"laprovincia.es",
|
||||
"levante-emv.com",
|
||||
"lne.es",
|
||||
"mallorcazeitung.es",
|
||||
"superdeporte.es"
|
||||
],
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "(\\.piano\\.io\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-access-.+\\.js)",
|
||||
"cs_code": "[{\"cond\":\"div.ft-helper-closenews\", \"rm_attrib\":\"class\"}]",
|
||||
"upd_version": "3.5.4.1"
|
||||
},
|
||||
"Haaretz Group": {
|
||||
"domain": "###_il_haaretz_group",
|
||||
"group": [
|
||||
|
@ -66,40 +79,6 @@
|
|||
"cs_dompurify": 1,
|
||||
"upd_version": "3.5.2.3"
|
||||
},
|
||||
"Hearst Communications magazines": {
|
||||
"domain": "###_usa_hearst_comm_mag",
|
||||
"group": [
|
||||
"bicycling.com",
|
||||
"cosmopolitan.com",
|
||||
"countryliving.com",
|
||||
"delish.com",
|
||||
"elle.com",
|
||||
"elledecor.com",
|
||||
"esquire.com",
|
||||
"goodhousekeeping.com",
|
||||
"harpersbazaar.com",
|
||||
"housebeautiful.com",
|
||||
"menshealth.com",
|
||||
"oprahdaily.com",
|
||||
"popularmechanics.com",
|
||||
"prevention.com",
|
||||
"roadandtrack.com",
|
||||
"runnersworld.com",
|
||||
"townandcountrymag.com",
|
||||
"womenshealthmag.com"
|
||||
],
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "(\\.com\\/_assets\\/jam\\/|\\.ensighten\\.com\\/.+\\/Bootstrap\\.js)",
|
||||
"upd_version": "3.5.1.5"
|
||||
},
|
||||
"Het Laatste Nieuws": {
|
||||
"domain": "hln.be",
|
||||
"allow_cookies": 1,
|
||||
"add_ext_link": "div#remaining-paid-content|div.article__body",
|
||||
"add_ext_link_type": "archive.is",
|
||||
"block_regex": "temptation\\.hln\\.be\\/temptation\\.js",
|
||||
"upd_version": "3.5.1.5"
|
||||
},
|
||||
"Landwirtschaftsverlag": {
|
||||
"domain": "###_de_lv",
|
||||
"group": [
|
||||
|
@ -116,20 +95,6 @@
|
|||
],
|
||||
"upd_version": "3.5.2.4"
|
||||
},
|
||||
"Mediahuis Nederland Regional": {
|
||||
"domain": "###_nl_mediahuis_region",
|
||||
"group": [
|
||||
"gooieneemlander.nl",
|
||||
"haarlemsdagblad.nl",
|
||||
"ijmuidercourant.nl",
|
||||
"leidschdagblad.nl",
|
||||
"noordhollandsdagblad.nl"
|
||||
],
|
||||
"allow_cookies": 1,
|
||||
"add_ext_link": "div[data-auth-root='paywall']|article",
|
||||
"add_ext_link_type": "archive.is",
|
||||
"upd_version": "3.5.1.4"
|
||||
},
|
||||
"Newsweek.pl": {
|
||||
"domain": "newsweek.pl",
|
||||
"allow_cookies": 1,
|
||||
|
@ -149,22 +114,6 @@
|
|||
"ld_archive_is": "div[class*=eas-paywall],div#nocx_paywall_area|main#content",
|
||||
"upd_version": "3.5.3.4"
|
||||
},
|
||||
"Stratfor": {
|
||||
"domain": "stratfor.com",
|
||||
"allow_cookies": 1,
|
||||
"useragent": "googlebot",
|
||||
"upd_version": "3.5.1.8"
|
||||
},
|
||||
"The (New Orleans) Advocate": {
|
||||
"domain": "###_usa_theadvocate",
|
||||
"group": [
|
||||
"nola.com",
|
||||
"theadvocate.com"
|
||||
],
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "(\\.{domain}\\/(script||.+\\/tncms\\/api\\/access\\..+)\\.js|js\\.matheranalytics\\.com\\/)",
|
||||
"upd_version": "3.5.1.7"
|
||||
},
|
||||
"The Lamp Magazine": {
|
||||
"domain": "thelampmagazine.com",
|
||||
"allow_cookies": 1,
|
||||
|
@ -195,12 +144,5 @@
|
|||
"allow_cookies": 1,
|
||||
"block_regex": "(\\.{domain}\\/(script|.+\\/loader-wp\\/static\\/loader\\.min)\\.js)",
|
||||
"upd_version": "3.5.3.2"
|
||||
},
|
||||
"WirtschaftsWoche": {
|
||||
"domain": "wiwo.de",
|
||||
"allow_cookies": 1,
|
||||
"add_ext_link": "div.o-paywall|article",
|
||||
"add_ext_link_type": "archive.is",
|
||||
"upd_version": "3.5.1.3"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
"addons": {
|
||||
"magnolia@12.34": {
|
||||
"updates": [
|
||||
{ "version": "3.5.3.2",
|
||||
"update_link": "https://gitlab.com/magnolia1234/bpc-uploads/-/raw/master/bypass_paywalls_clean-3.5.3.2.xpi" }
|
||||
{ "version": "3.5.4.0",
|
||||
"update_link": "https://gitlab.com/magnolia1234/bpc-uploads/-/raw/master/bypass_paywalls_clean-3.5.4.0.xpi" }
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue