Add Humanite.fr

This commit is contained in:
magnolia1234 2022-10-22 11:24:37 +02:00
parent 9cba386735
commit 99cbc51164
6 changed files with 27 additions and 1 deletions

View File

@ -429,6 +429,7 @@ Grouped in options:\
[L'Écho](https://lecho.be) -
[L'Équipe](https://www.lequipe.fr) -
[L'Express](https://www.lexpress.fr) -
[L'Humanité](https://www.humanite.fr) -
[L'Obs](https://www.nouvelobs.com) -
[L'Oeil de la Photographie (fr/en)](https://loeildelaphotographie.com) -
[L'Opinion](https://www.lopinion.fr) -

View File

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Firefox
Post-release
Add Humanite.fr
Remove Daily Nation (no paywall)
Fix ABC.es (Sevilla)
Fix ESPN USA (link to archive.is)

View File

@ -1256,6 +1256,19 @@ else if (matchDomain('franc-tireur.fr')) {
removeDOMElement(paywall);
}
else if (matchDomain('humanite.fr')) {
if (window.location.search.startsWith('?amp')) {
let qiota_script = document.querySelector('amp-script[src^="https://www.qiota.com/"]');
if (qiota_script) {
let amphtml_fill_content = qiota_script.querySelector('div.i-amphtml-fill-content');
if (amphtml_fill_content)
amphtml_fill_content.removeAttribute('class');
let i_amphtml_sizer = qiota_script.querySelector('i-amphtml-sizer');
removeDOMElement(i_amphtml_sizer);
}
}
}
else if (matchDomain('journaldunet.com')) {
let reg_wall = document.querySelector('.reg_wall');
removeDOMElement(reg_wall);

View File

@ -275,6 +275,7 @@
"*://*.houstonchronicle.com/*",
"*://*.hoy.es/*",
"*://*.huffingtonpost.it/*",
"*://*.humanite.fr/*",
"*://*.humo.be/*",
"*://*.ideal.es/*",
"*://*.ijmuidercourant.nl/*",
@ -719,5 +720,5 @@
"*://gcm.omerlocdn.com/*",
"*://webcache.googleusercontent.com/*"
],
"version": "2.8.9.3"
"version": "2.8.9.4"
}

View File

@ -969,6 +969,11 @@ var defaultSites = {
allow_cookies: 1,
block_regex: /\.qiota\.com\//
},
"L'Humanité": {
domain: "humanite.fr",
allow_cookies: 1,
block_regex: /\.qiota\.com\//
},
"L'Obs": {
domain: "nouvelobs.com",
allow_cookies: 1,

View File

@ -42,6 +42,11 @@
"allow_cookies": 1,
"block_regex": "\\.tinypass\\.com\\/"
},
"L'Humanité": {
"domain": "humanite.fr",
"allow_cookies": 1,
"block_regex": "\\.qiota\\.com\\/"
},
"The Washington Post": {
"domain": "washingtonpost.com",
"allow_cookies": 1,