Handy Image

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

< Feedback on Handy Image

Question/comment

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

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: 2015-06-21

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: 2015-06-21

Can I skip that and have the script always active?

OwynAuthor
§
Posted: 2015-06-21

Only If you edit the script.

FFW
§
Posted: 2015-06-21

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

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

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: 2015-06-21

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.