mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 05:37:47 +01:00
Fix-update LaDepeche.fr
This commit is contained in:
parent
7a94349181
commit
5967eb7b2e
2 changed files with 12 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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')) {
|
||||
|
|
Loading…
Reference in a new issue