Add HowToGeek
This commit is contained in:
parent
f2e95a2a03
commit
94c6236613
|
@ -0,0 +1,18 @@
|
||||||
|
// ==UserScript==
|
||||||
|
// @name data-pagespeed-lazy-src Image Fixer
|
||||||
|
// @version 1
|
||||||
|
// @grant none
|
||||||
|
// @match https://www.howtogeek.com/*
|
||||||
|
// ==/UserScript==
|
||||||
|
|
||||||
|
function fixImages() {
|
||||||
|
for (let img of document.getElementsByTagName('img')) {
|
||||||
|
let imgUrl = img.getAttribute('data-pagespeed-lazy-src');
|
||||||
|
if (imgUrl) {
|
||||||
|
img.setAttribute('src', imgUrl);
|
||||||
|
img.style.height = 'auto';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fixImages();
|
Loading…
Reference in New Issue