Sleazy Fork is available in English.

Handy Image

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

< 脚本Handy Image的反馈

评价:好评 - 脚本一切正常

§
发表于:2017-03-18

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

Owyn作者
§
发表于:2017-03-18

fixed in latest version

§
发表于:2017-03-18

thanks

发表回复

登录以发表回复。