Fix-update NyTeknik (images)

This commit is contained in:
magnolia1234 2021-04-19 18:27:36 +02:00
parent c8457fa714
commit 871643bb79
3 changed files with 5 additions and 1 deletions

View file

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Firefox Changelog Bypass Paywalls Clean - Firefox
Post-release Post-release
Fix-update NyTeknik (images)
* v2.1.7.0 (2021-04-18) * v2.1.7.0 (2021-04-18)
Add NyTeknik (Sweden) Add NyTeknik (Sweden)

View file

@ -2019,6 +2019,9 @@ else if (matchDomain('nyteknik.se')) {
let locked_article = document.querySelector('div.locked-article'); let locked_article = document.querySelector('div.locked-article');
if (locked_article) if (locked_article)
locked_article.classList.remove('locked-article'); locked_article.classList.remove('locked-article');
let hidden_images = document.querySelectorAll('img[src=""][data-proxy-image]');
for (let hidden_image of hidden_images)
hidden_image.setAttribute('src', hidden_image.getAttribute('data-proxy-image').replace('_320', '_640'));
} }
else if (matchDomain('nytimes.com')) { else if (matchDomain('nytimes.com')) {

View file

@ -503,5 +503,5 @@
"*://*.wallkit.net/*", "*://*.wallkit.net/*",
"*://*.wsj.net/*" "*://*.wsj.net/*"
], ],
"version": "2.1.7.0" "version": "2.1.7.1"
} }