Update Image Loader Placeholder Remover to version 1.5
- Added support for www.theautopian.com
This commit is contained in:
parent
1e7479439a
commit
7bffd7ae9b
|
@ -3,7 +3,7 @@
|
|||
// @namespace blankie-scripts
|
||||
// @match http*://*/*
|
||||
// @grant none
|
||||
// @version 1.4
|
||||
// @version 1.5
|
||||
// @author blankie
|
||||
// @run-at document-end
|
||||
// @description Removes image loading placeholders
|
||||
|
@ -129,11 +129,24 @@ function wired() {
|
|||
document.head.appendChild(style);
|
||||
}
|
||||
|
||||
// https://www.theautopian.com/
|
||||
// https://www.theautopian.com/nobody-wants-touch-screen-glove-box-latches-and-it-needs-to-stop-now/
|
||||
function theautopian() {
|
||||
for (element of document.querySelectorAll("img[data-jzl-lazy-src]")) {
|
||||
let originalUrl = element.getAttribute("data-jzl-lazy-src");
|
||||
if (originalUrl === null) {
|
||||
continue;
|
||||
}
|
||||
element.src = originalUrl;
|
||||
}
|
||||
}
|
||||
|
||||
switch (location.host) {
|
||||
case "closeronline.co.uk": closeronline(); break;
|
||||
case "www.indiatoday.in": indiatoday(); break;
|
||||
case "www.vice.com": vice(); break;
|
||||
case "www.pcgamer.com": pcgamer(); break;
|
||||
case "www.wired.com": wired(); break;
|
||||
case "www.theautopian.com": theautopian(); break;
|
||||
default: wordpress(); break;
|
||||
};
|
Loading…
Reference in New Issue