Handy Image

Shows just fullsize Image with hotkeys & without pop-ups on many image-hosting sites

< Valutazione su Handy Image

Recensione: Bene - lo script funziona

§
Pubblicato: 18/03/2017

imgboom.net not work.

imgboom.net not work.



// ==UserScript==
// @name imgboom Redirect
// @include http://imgboom.net/img-*.html
// @include http://imgboom.net/view.php
// @version 1.0
// @grant none
// ==/UserScript==
var domain = decodeURI(document.location.href);
console.log(domain);
if (/.html/.test(domain)) {
domain = domain.replace(/.+\.html/g, 'http://imgboom.net/view.php');
location.replace(domain);
}

else if (/view.php/.test(domain)) {
var imgCheck = setInterval(function() {
if (document.querySelectorAll('img').length > 0) {
var domain = document.location.href;
console.log(document.getElementsByTagName("img"));
var img = document.getElementsByTagName("img");
var src = img[0].getAttribute("src");
console.log(src);
clearInterval(imgCheck);
location.replace(src);
}
}, 200);
}



i test this script

OwynAutore
§
Pubblicato: 18/03/2017

fixed in latest version

§
Pubblicato: 18/03/2017

thanks

Pubblica risposta

Accedi per pubblicare una risposta.