mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-09-20 04:43:42 +02:00
Add Sport Life Iberica (opt-in to custom sites)
This commit is contained in:
parent
1864a30009
commit
731af1c270
8 changed files with 16 additions and 5 deletions
|
@ -737,6 +737,8 @@ Grouped in options:\
|
||||||
[Las Provincias](https://www.lasprovincias.es) -
|
[Las Provincias](https://www.lasprovincias.es) -
|
||||||
[Sur](https://www.diariosur.es)
|
[Sur](https://www.diariosur.es)
|
||||||
|
|
||||||
|
*[Sport Life Ibérica](https://www.sportlifeiberica.es/)* sites (opt-in to custom sites)
|
||||||
|
|
||||||
##### Sweden
|
##### Sweden
|
||||||
[Aftonbladet](https://www.aftonbladet.se) -
|
[Aftonbladet](https://www.aftonbladet.se) -
|
||||||
[Dagens ETC](https://www.etc.se) -
|
[Dagens ETC](https://www.etc.se) -
|
||||||
|
|
|
@ -1317,11 +1317,12 @@ function clear_cookies() {
|
||||||
change_headers.push(custom_domain);
|
change_headers.push(custom_domain);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let custom_amp_unhide = rules.amp_unhide;
|
if (rules.amp_unhide) {
|
||||||
if (custom_amp_unhide) {
|
|
||||||
if (!amp_unhide.includes(custom_domain))
|
if (!amp_unhide.includes(custom_domain))
|
||||||
amp_unhide.push(custom_domain);
|
amp_unhide.push(custom_domain);
|
||||||
}
|
}
|
||||||
|
if (rules.ld_json)
|
||||||
|
ld_json[custom_domain] = rules.ld_json;
|
||||||
custom_flex_domains.push(custom_domain);
|
custom_flex_domains.push(custom_domain);
|
||||||
if (!enabledSites.includes(custom_domain))
|
if (!enabledSites.includes(custom_domain))
|
||||||
enabledSites.push(custom_domain);
|
enabledSites.push(custom_domain);
|
||||||
|
|
|
@ -8,6 +8,7 @@ Add Le Figaro (link to archive.is)
|
||||||
Add Libelle.nl
|
Add Libelle.nl
|
||||||
Add Margriet.nl
|
Add Margriet.nl
|
||||||
Add Revue Conflits
|
Add Revue Conflits
|
||||||
|
Add Sport Life Iberica (opt-in to custom sites)
|
||||||
Remove Cellesche Zeitung (fix obsolete)
|
Remove Cellesche Zeitung (fix obsolete)
|
||||||
Fix Automobilwoche.de (js)
|
Fix Automobilwoche.de (js)
|
||||||
Fix Faz.net (json)
|
Fix Faz.net (json)
|
||||||
|
|
|
@ -73,7 +73,6 @@ if (bg2csData.ld_json) {
|
||||||
json_key = Object.keys(json).find(key => key.match(/^articlebody$/i)) || Object.keys(json).find(key => key.match(/^text$/i));
|
json_key = Object.keys(json).find(key => key.match(/^articlebody$/i)) || Object.keys(json).find(key => key.match(/^text$/i));
|
||||||
json_text = parseHtmlEntities(json[json_key]);
|
json_text = parseHtmlEntities(json[json_key]);
|
||||||
}
|
}
|
||||||
console.log(json_text);
|
|
||||||
let content = document.querySelector(article_sel);
|
let content = document.querySelector(article_sel);
|
||||||
if (json_text && content) {
|
if (json_text && content) {
|
||||||
let parser = new DOMParser();
|
let parser = new DOMParser();
|
||||||
|
|
|
@ -65,6 +65,8 @@ window.setTimeout(function () {
|
||||||
} else if (hostname.match(/\.(es|cat)$/) || matchDomain(['diariocordoba.com', 'elperiodicodearagon.com', 'elperiodicoextremadura.com', 'elperiodicomediterraneo.com', 'emporda.info'])) {
|
} else if (hostname.match(/\.(es|cat)$/) || matchDomain(['diariocordoba.com', 'elperiodicodearagon.com', 'elperiodicoextremadura.com', 'elperiodicomediterraneo.com', 'emporda.info'])) {
|
||||||
if (document.querySelector('link[href*="/estaticos-cdn."]'))
|
if (document.querySelector('link[href*="/estaticos-cdn."]'))
|
||||||
group = '###_es_epiberica';
|
group = '###_es_epiberica';
|
||||||
|
else if (document.querySelector('div > ul > li > a[href="https://www.sportlife.es/"]'))
|
||||||
|
group = '###_es_sport_life';
|
||||||
} else if (hostname.endsWith('.fi')) {
|
} else if (hostname.endsWith('.fi')) {
|
||||||
if (document.querySelector('link[href^="https://assets.almatalent.fi"]'))
|
if (document.querySelector('link[href^="https://assets.almatalent.fi"]'))
|
||||||
group = '###_fi_alma_talent';// no fix
|
group = '###_fi_alma_talent';// no fix
|
||||||
|
|
|
@ -51,5 +51,5 @@
|
||||||
"webRequestBlocking",
|
"webRequestBlocking",
|
||||||
"*://*/*"
|
"*://*/*"
|
||||||
],
|
],
|
||||||
"version": "3.1.0.8"
|
"version": "3.1.0.9"
|
||||||
}
|
}
|
||||||
|
|
|
@ -744,5 +744,5 @@
|
||||||
"*://*.wallkit.net/*",
|
"*://*.wallkit.net/*",
|
||||||
"*://webcache.googleusercontent.com/*"
|
"*://webcache.googleusercontent.com/*"
|
||||||
],
|
],
|
||||||
"version": "3.1.0.8"
|
"version": "3.1.0.9"
|
||||||
}
|
}
|
||||||
|
|
6
sites.js
6
sites.js
|
@ -1730,6 +1730,12 @@ var defaultSites = {
|
||||||
domain: "infzm.com",
|
domain: "infzm.com",
|
||||||
allow_cookies: 1
|
allow_cookies: 1
|
||||||
},
|
},
|
||||||
|
"Sport Life Ibérica (text only; opt-in to custom sites)": {
|
||||||
|
domain: "###_es_sport_life",
|
||||||
|
group: [],
|
||||||
|
allow_cookies: 1,
|
||||||
|
ld_json: "div.c-paywall|div.c-mainarticle__body"
|
||||||
|
},
|
||||||
"Sports Illustrated": {
|
"Sports Illustrated": {
|
||||||
domain: "si.com",
|
domain: "si.com",
|
||||||
allow_cookies: 1,
|
allow_cookies: 1,
|
||||||
|
|
Loading…
Reference in a new issue