Charas-Project

Off-Topic => All of all! => Topic started by: X_marks_the_ed on June 26, 2007, 04:42:47 PM

Title: Address bar trick
Post by: X_marks_the_ed on June 26, 2007, 04:42:47 PM
While surfing for random junk, I found this:

java script: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
1. Go to google image search and type in any old thing and hit search.

2. Copy the above code and paste it in the address bar. (REMOVE THE SPACE BETWEEN JAVA AND SCRIPT)

3. Hit enter or click to go button and watch what happens.

To stop it, close the window and re-enter google.
Title:
Post by: WarxePB on June 26, 2007, 04:57:24 PM
Even better, do this while viewing a thread. THE BUTTONS ARE ATTACKING!!!
Title:
Post by: A Forgotten Legend on June 26, 2007, 05:26:59 PM
You mean this is what'll happen? :corn:
Title:
Post by: X_marks_the_ed on June 26, 2007, 05:28:44 PM
Indeed.
Title:
Post by: Osmose on June 26, 2007, 06:44:27 PM
Basically all it does is use the link syntax for executing Javascript (Why that even exists when there is onClick makes no sense) and then messes with the X and Y values of the image array - an array used to reference every image on a page.

In case you were wondering. :P
Title:
Post by: Archem on June 26, 2007, 07:04:25 PM
I wasn't, but thanks anyway.
Title:
Post by: Shady Ultima on June 26, 2007, 07:13:54 PM
Bahahaha, that's friggin awesome!
Title:
Post by: Fortet on June 26, 2007, 07:24:05 PM
Yeah.
Nothing happened >_>
Title:
Post by: X_marks_the_ed on June 26, 2007, 07:48:27 PM
Quote
Originally posted by Fortet
Yeah.
Nothing happened >_>


You delete the space between Java and Script?
Title:
Post by: A Forgotten Legend on June 26, 2007, 08:04:17 PM
Quote
Originally posted by Osmose
Basically all it does is use the link syntax for executing Javascript (Why that even exists when there is onClick makes no sense) and then messes with the X and Y values of the image array - an array used to reference every image on a page.

In case you were wondering. :P


Huh?
Title:
Post by: Desimodontidae on June 26, 2007, 09:29:24 PM
Cool, but completely pointless.
Title:
Post by: X_marks_the_ed on June 26, 2007, 09:44:07 PM
Quote
Originally posted by Desimodontidae
Cool, but completely pointless.


Who ever mentioned it ever HAVING a point.
Title:
Post by: A Forgotten Legend on June 26, 2007, 10:03:35 PM
Quote
Originally posted by lucas_irineu
It is awesome! And pointless, now I have a reason for life! :p


GO LIFE! AND NOT THE CEREAL EITHER! YAY LIFE!
Title:
Post by: X_marks_the_ed on June 26, 2007, 10:20:43 PM
Warxe, any reason you just transformed into Ace of Spades? [/OMGOFFTOPIC]

As if this thread had a topic to begin with.
Title:
Post by: Fortet on June 26, 2007, 11:25:30 PM
Quote
Originally posted by X_marks_the_ed
Quote
Originally posted by Fortet
Yeah.
Nothing happened >_>


You delete the space between Java and Script?[/B]


Yea
It gave me one of those quick search pages
Title:
Post by: X_marks_the_ed on June 27, 2007, 11:36:57 AM
Quote
Originally posted by Fortet
Quote
Originally posted by X_marks_the_ed
Quote
Originally posted by Fortet
Yeah.
Nothing happened >_>


You delete the space between Java and Script?[/B]


Yea
It gave me one of those quick search pages[/B]


You're using IE, get a real browser. One that will participate in this fun, unlike those google ads. Standing there like jerks.
Title:
Post by: Fortet on June 27, 2007, 02:21:21 PM
No. I'm using FireFox. IE sucks. Big time. o_o
Title:
Post by: X_marks_the_ed on June 27, 2007, 02:47:39 PM
Quote
Originally posted by Fortet
No. I'm using FireFox. IE sucks. Big time. o_o


Then the only reason I can think of is that your Firefox is retarded.
Title:
Post by: GaryCXJk on June 27, 2007, 11:06:26 PM
Quote
Originally posted by Osmose
Basically all it does is use the link syntax for executing Javascript (Why that even exists when there is onClick makes no sense) and then messes with the X and Y values of the image array - an array used to reference every image on a page.

In case you were wondering. :P


To simply translate it to human language:

See it as M&Ms. Each colour of M&M represents a certain type or group. Now let's say that each M&M is also labeled / attached to a certain object group, like pens or books. The red M&Ms are the photos. To identify which red M&M belongs to which photo, a number is placed on each M&M, as well as each photo. The M&M with number one is attached to the photo which is labeled with number one.

Now let's say there are two sheets of paper with a grid. One small sheet, with squares the size of M&Ms, and one big grid, the size of the largest photo. Now we put each M&M at random on the small grid. Then we match both grids. If M&M one is in square two, then we put photo one in square two on the bigger grid. If M&M six is in square fourty, photo fourty is in square fourty on the big grid.

So, let's shuffle all the M&Ms again, and match the two grids again.

That's basically what Osmose said.

An array is a set of variables, or "labels", which have certain objects (mostly of the same type) attached. The images are all labeled by one variable (the colour of the M&M), but that variable has different records (the different labeled M&Ms), which point to certain objects. Because you now have a list of the same object, you can manipulate each object the same way by going trough every record (every number).
Title:
Post by: Grandy on June 27, 2007, 11:11:55 PM
Say, people, I'll post the code without thew space to see if something happens.

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

No, nothing at all.