Handy Image

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

< Feedback on Handy Image

Question/comment

FFW
§
Posted: 21-06-2015
Edited: 21-06-2015

you have just uploaded a picture, haven't you? :/

I'm pretty sure I haven't. sometimes this message would show up in the console disabling the script for some case I created. Can you explain what this message means?

OwynAuthor
§
Posted: 21-06-2015

It means you opened a picture from the main page of a website e.g. www.website.com/ usually people upload there, it's a global fix

FFW
§
Posted: 21-06-2015

Can I skip that and have the script always active?

OwynAuthor
§
Posted: 21-06-2015

Only If you edit the script.

FFW
§
Posted: 21-06-2015

I'm fine with that. Could you please tell me which part should I edit?

OwynAuthor
§
Posted: 21-06-2015
Edited: 21-06-2015

It's in the beggining of the script, you can find it with ctrl+f (text search) with phrase it prints into console you have just uploaded a picture, haven't you?

FFW
§
Posted: 21-06-2015

I actually tried removing that part earlier but it didn't work for some reason. But now it did. Thank you :D

if(document.referrer)
{
    if(document.referrer.lastIndexOf(window.location.hostname) != -1 && document.referrer.lastIndexOf(window.location.hostname) +1 == document.referrer.length - window.location.hostname.length)
    {
        console.warn("you have just uploaded a picture, haven't you?");
        return false;
    }
}

Post reply

Sign in to post a reply.