From 871643bb79cdb867da48df8577df375b1f40a863 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Mon, 19 Apr 2021 18:27:36 +0200 Subject: [PATCH] Fix-update NyTeknik (images) --- changelog.txt | 1 + contentScript.js | 3 +++ manifest.json | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index b43194d..7d5b229 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release +Fix-update NyTeknik (images) * v2.1.7.0 (2021-04-18) Add NyTeknik (Sweden) diff --git a/contentScript.js b/contentScript.js index 9177853..079109d 100644 --- a/contentScript.js +++ b/contentScript.js @@ -2019,6 +2019,9 @@ else if (matchDomain('nyteknik.se')) { let locked_article = document.querySelector('div.locked-article'); if (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')) { diff --git a/manifest.json b/manifest.json index 3a16f31..b7bddd5 100644 --- a/manifest.json +++ b/manifest.json @@ -503,5 +503,5 @@ "*://*.wallkit.net/*", "*://*.wsj.net/*" ], - "version": "2.1.7.0" + "version": "2.1.7.1" } \ No newline at end of file