Fix-update LaDepeche.fr

This commit is contained in:
magnolia1234 2020-04-29 20:46:44 +02:00
parent 7a94349181
commit 5967eb7b2e
2 changed files with 12 additions and 5 deletions

View file

@ -12,8 +12,8 @@
* [License](#license)
### Installation
[Download and install the latest version](https://bitbucket.org/magnolia1234/bypass-paywalls-firefox-clean/downloads)<br>
Here you can also find a limited permissions version (custom sites will not be working though).<br>
[Download and install the latest version](https://bitbucket.org/magnolia1234/bypass-paywalls-firefox-clean/downloads)
Here you can also find a limited permissions version (custom sites will not be working though).
Install add-on by downloading xpi-file.
### List of supported websites

View file

@ -457,11 +457,18 @@ else if (matchDomain("americanaffairsjournal.org")) {
}
else if (matchDomain('ladepeche.fr')) {
document.addEventListener('DOMContentLoaded', () => {
window.setTimeout(function () {
const hidden_section = document.querySelector('.article-full__body-content');
if (hidden_section)
if (hidden_section) {
hidden_section.classList.remove('article-full__body-content');
});
let paras = hidden_section.querySelectorAll("p, h2, div");
for (let i = 0; i < paras.length; i++) {
paras[i].removeAttribute('style');
}
}
const abon = document.querySelector('#noscript-paywall-content, #noscript-paywall');
removeDOMElement(abon);
}, 500); // Delay (in milliseconds)
}
else if (matchDomain('challenges.fr')) {