2020-08-24 12:44:52 +00:00
|
|
|
// ==UserScript==
|
2020-12-26 22:26:38 +00:00
|
|
|
// @name data-src Image Fixer
|
2020-08-24 12:44:52 +00:00
|
|
|
// @version 1
|
|
|
|
// @grant none
|
|
|
|
// @match https://www.atlasobscura.com/*
|
2020-12-12 01:12:50 +00:00
|
|
|
// @match https://hayleyisaghost.co.uk/*
|
2021-04-26 16:50:41 +00:00
|
|
|
// @match https://threadreaderapp.com/*
|
2020-08-24 12:44:52 +00:00
|
|
|
// ==/UserScript==
|
|
|
|
|
|
|
|
function fixImages() {
|
|
|
|
for (let img of document.getElementsByTagName('img')) {
|
|
|
|
let imgUrl = img.getAttribute('data-src');
|
|
|
|
if (imgUrl) {
|
|
|
|
img.setAttribute('src', imgUrl);
|
|
|
|
img.style.height = 'auto';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fixImages();
|