Fix washingtonpost.com
This commit is contained in:
parent
94c6236613
commit
77afc610bc
7
wapo.js
7
wapo.js
|
@ -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');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue