Handy Image

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

< Feedback op Handy Image

Vraag/Reactie

§
Geplaatst: 21-06-2015
Bijgewerkt: 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?

OwynMaker
§
Geplaatst: 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

§
Geplaatst: 21-06-2015

Can I skip that and have the script always active?

OwynMaker
§
Geplaatst: 21-06-2015

Only If you edit the script.

§
Geplaatst: 21-06-2015

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

OwynMaker
§
Geplaatst: 21-06-2015
Bijgewerkt: 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?

§
Geplaatst: 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;
    }
}

Reactie plaatsen

Log in om antwoord te geven.