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==
// @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');
}
}