mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:21:58 +01:00
Add Philonomist (text)
This commit is contained in:
parent
99cbc51164
commit
03de5cf0b0
5 changed files with 30 additions and 2 deletions
|
@ -449,6 +449,7 @@ Grouped in options:\
|
|||
[Les Inrockuptibles](https://www.lesinrocks.com) -
|
||||
[Marianne](https://www.marianne.net) -
|
||||
[Paris Match](https://www.parismatch.com) -
|
||||
[Philonomist (fr/en)](https://www.philonomist.com) -
|
||||
[Science & Vie](https://www.science-et-vie.com) -
|
||||
[Sciences et Avenir](https://www.sciencesetavenir.fr) -
|
||||
[Télérama](https://www.telerama.fr) -
|
||||
|
|
|
@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
|
|||
|
||||
Post-release
|
||||
Add Humanite.fr
|
||||
Add Philonomist (text)
|
||||
Remove Daily Nation (no paywall)
|
||||
Fix ABC.es (Sevilla)
|
||||
Fix ESPN USA (link to archive.is)
|
||||
|
|
|
@ -1142,7 +1142,7 @@ else if (matchDomain('politicaexterior.com')) {
|
|||
else
|
||||
csDone = true;
|
||||
|
||||
} else if (window.location.hostname.endsWith('.fr') || matchDomain(['bienpublic.com', 'connaissancedesarts.com', 'journaldunet.com', 'la-croix.com', 'lavenir.net', 'ledauphine.com', 'lesinrocks.com', 'lejsl.com', 'lesoir.be', 'loeildelaphotographie.com', 'marianne.net', 'nouvelobs.com', 'parismatch.com', 'science-et-vie.com', 'sudinfo.be'].concat(fr_groupe_nice_matin_domains))) {//france
|
||||
} else if (window.location.hostname.endsWith('.fr') || matchDomain(['bienpublic.com', 'connaissancedesarts.com', 'journaldunet.com', 'la-croix.com', 'lavenir.net', 'ledauphine.com', 'lesinrocks.com', 'lejsl.com', 'lesoir.be', 'loeildelaphotographie.com', 'marianne.net', 'nouvelobs.com', 'parismatch.com', 'philonomist.com', 'science-et-vie.com', 'sudinfo.be'].concat(fr_groupe_nice_matin_domains))) {//france
|
||||
|
||||
if (matchDomain('alternatives-economiques.fr')) {
|
||||
window.setTimeout(function () {
|
||||
|
@ -1538,6 +1538,27 @@ else if (matchDomain('nouvelobs.com')) {
|
|||
removeDOMElement(paywall);
|
||||
}
|
||||
|
||||
else if (matchDomain('philonomist.com')) {
|
||||
let paywall = document.querySelector('div.content-bandeau');
|
||||
if (paywall) {
|
||||
removeDOMElement(paywall);
|
||||
let json_script = getArticleJsonScript();
|
||||
if (json_script) {
|
||||
try {
|
||||
let json = JSON.parse(json_script.text);
|
||||
if (json) {
|
||||
let json_text = parseHtmlEntities(json['@graph'][0].articleBody.replace(/\s{3}/g, '\r\n\r\n'));
|
||||
let content = document.querySelector('div.main-body');
|
||||
if (json_text && content)
|
||||
content.innerText = json_text;
|
||||
}
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
else if (matchDomain('science-et-vie.com')) {
|
||||
if (window.location.hostname.startsWith('amp.')) {
|
||||
let pars = document.querySelectorAll('.qiota_reserve > p, .qiota_reserve > h2');
|
||||
|
|
|
@ -481,6 +481,7 @@
|
|||
"*://*.pennlive.com/*",
|
||||
"*://*.petitbleu.fr/*",
|
||||
"*://*.philanthropy.com/*",
|
||||
"*://*.philonomist.com/*",
|
||||
"*://*.philosophynow.org/*",
|
||||
"*://*.pilotonline.com/*",
|
||||
"*://*.piqd.de/*",
|
||||
|
@ -720,5 +721,5 @@
|
|||
"*://gcm.omerlocdn.com/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "2.8.9.4"
|
||||
"version": "2.8.9.5"
|
||||
}
|
||||
|
|
4
sites.js
4
sites.js
|
@ -1439,6 +1439,10 @@ var defaultSites = {
|
|||
],
|
||||
block_regex: /(cdn\.cxense\.com\/|\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-(access|subscriptions)-.+\.js)/
|
||||
},
|
||||
"Philonomist": {
|
||||
domain: "philonomist.com",
|
||||
allow_cookies: 1
|
||||
},
|
||||
"Philosophy Now": {
|
||||
domain: "philosophynow.org"
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue