Fix-update AFR (images)

Plus some background.js styling
master
magnolia1234 2020-10-24 16:37:42 +02:00
parent 5ebe902e9b
commit 7f4d7b2189
4 changed files with 483 additions and 483 deletions

View File

@ -345,7 +345,7 @@ Visit the [Firefox repository](https://bitbucket.org/magnolia1234/bypass-paywall
[Haaretz.com](https://www.haaretz.com) - [Haaretz.com](https://www.haaretz.com) -
[The Marker](https://www.themarker.com) [The Marker](https://www.themarker.com)
####Lebanon #### Lebanon
[L'Orient-Le Jour](https://www.lorientlejour.com) [L'Orient-Le Jour](https://www.lorientlejour.com)
#### Latin America #### Latin America

File diff suppressed because it is too large Load Diff

View File

@ -11,6 +11,7 @@ Add The New York Review of Books
Fix-update Australian Provincial Newspapers (Googlebot) Fix-update Australian Provincial Newspapers (Googlebot)
Fix-update Funke Medien (TinyPass) Fix-update Funke Medien (TinyPass)
Fix bug in NY Times (hidden iframe-content) Fix bug in NY Times (hidden iframe-content)
Fix-update Australian Financial Review (images)
Fix-update The West Australian (timing) Fix-update The West Australian (timing)
Open (custom) options in new tab Open (custom) options in new tab

View File

@ -598,19 +598,17 @@ else if (matchDomain("thestar.com")) {
} }
else if (matchDomain("afr.com")) { else if (matchDomain("afr.com")) {
document.addEventListener('DOMContentLoaded', () => { let hidden_images = document.querySelectorAll('img');
let hidden_images = document.querySelectorAll('img'); for (let hidden_image of hidden_images) {
for (let hidden_image of hidden_images) { var src = hidden_image.src;
var src = hidden_image.src; if (src.includes(".gif")) {
if (src.includes(".gif")) { var data_src = hidden_image.getAttribute("data-src");
var data_src = hidden_image.getAttribute("data-src"); if (data_src)
if (data_src) hidden_image.setAttribute('src', data_src);
hidden_image.setAttribute('src', data_src);
}
} }
let plista = document.querySelector('div[data-plista-placement="underArticle_Group"]'); }
removeDOMElement(plista); let plista = document.querySelector('div[data-plista-placement="underArticle_Group"]');
}); removeDOMElement(plista);
} }
else if (matchDomain("theglobeandmail.com")) { else if (matchDomain("theglobeandmail.com")) {