Fix-update Challenges.fr

This commit is contained in:
magnolia1234 2020-04-29 20:10:51 +02:00
parent 97d99f2583
commit 7a94349181
2 changed files with 7 additions and 3 deletions

View file

@ -12,9 +12,9 @@
* [License](#license)
### Installation
[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 not working though).
Install add-on by downloading xpi-file (assets).
[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>
Install add-on by downloading xpi-file.
### List of supported websites
#### United States of America

View file

@ -466,6 +466,10 @@ else if (matchDomain('ladepeche.fr')) {
else if (matchDomain('challenges.fr')) {
document.addEventListener('DOMContentLoaded', () => {
const hidden_par = document.querySelector('.corps[style="display:none"]');
if (hidden_par) {
hidden_par.removeAttribute('style');
}
const hidden_image = document.querySelectorAll('img.lazyload');
for (let i = 0; i < hidden_image.length; i++) {
var src = hidden_image[i].src;