From 77afc610bc3b793d5a3eb7b7761e33a2870a379c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Mon, 31 Oct 2022 11:48:58 +0200 Subject: [PATCH] Fix washingtonpost.com --- wapo.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wapo.js b/wapo.js index 4693e3e..ab8db48 100644 --- a/wapo.js +++ b/wapo.js @@ -1,13 +1,14 @@ // ==UserScript== -// @name Washington Post image deblurrer +// @name Washington Post image fixer // @version 1 // @grant none // @match https://www.washingtonpost.com/* // ==/UserScript== function deBlur() { - for (let figure of document.getElementsByTagName('figure')) { - figure.firstChild.style.filter=''; + for (let img of document.getElementsByTagName('img')) { + img.style.filter='none'; + img.src = img.getAttribute('data-hi-res-src'); } }