Fix washingtonpost.com

This commit is contained in:
Juhani Krekelä 2022-10-31 11:48:58 +02:00
parent 94c6236613
commit 77afc610bc
1 changed files with 4 additions and 3 deletions

View File

@ -1,13 +1,14 @@
// ==UserScript== // ==UserScript==
// @name Washington Post image deblurrer // @name Washington Post image fixer
// @version 1 // @version 1
// @grant none // @grant none
// @match https://www.washingtonpost.com/* // @match https://www.washingtonpost.com/*
// ==/UserScript== // ==/UserScript==
function deBlur() { function deBlur() {
for (let figure of document.getElementsByTagName('figure')) { for (let img of document.getElementsByTagName('img')) {
figure.firstChild.style.filter=''; img.style.filter='none';
img.src = img.getAttribute('data-hi-res-src');
} }
} }