153 Comments
- z00k, on 10/12/2007, -25/+209Wow, I mean I have only seen this on Digg 92 Times! I'm telling you though, don't go over 93 otherwise I will yell dupe!
- kcpwnsgman, on 10/12/2007, -19/+126if you do this to digg, you remove all of the "digg down" thumbs, I'd like to see you burry me now bitches!
- AhrenBa, on 10/12/2007, -6/+64Lol, sorry for another comment here (three in a row), but I thought this would be useful for people. Here is the code from the site:
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(R*x1+i*x2+x3)*x4+x5; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterval('A()',5); void(0);
Go to a website, copy it, and paste into your browser bar, and hit enter, or use the trick I provided above. (recommended to try on flickr!) - DeflatorMouse, on 10/12/2007, -3/+34Does this work in Lynx?
- cocoamix, on 10/12/2007, -1/+32I just did that on a bunch of MySpace pages and didn't notice anything different.
- inactive, on 11/08/2007, -2/+24I edited this a while ago to do different stuff. The one posted is the image one.
This one works for the text of a site:
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.getElementsByTagName(%22font%22); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+%22px%22; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+%22px%22}R++}setInterval('A()',75); void(0);
This one is my favorite and combines both of them:
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.getElementsByTagName(%22*%22); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+%22px%22; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+%22px%22}R++}setInterval('A()',75); void(0);
The later will really mess up a page. - smojo12, on 10/12/2007, -0/+17Did you notice that it made the pages look better?
- AhrenBa, on 10/12/2007, -10/+25Oh, and another thing to make this trick a whole lot easier: Just highlight that Javascript code and drag it into your bookmarks or bookmark toolbar. That way, when you go to a website, just click the bookmark, and it's done. :)
- fernando26, on 10/12/2007, -5/+18Try it on http://www.stileproject.com (DEFINTELY NSFW) and watch your graphics card come to its knees.
Awesome script =P - 405994, on 10/12/2007, -0/+9Do a google image search, then hit it! It's kickass!
- thiagoleon, on 10/12/2007, -1/+10Cool! Hitting enter more times in the address bar makes it go faster.
- AnimobileAWS, on 10/12/2007, -0/+9+digg for not using the word hack in the title
- Brahma, on 10/12/2007, -0/+8And see your CPU utilization. That's kickass too..
- rstarr, on 10/12/2007, -2/+8Its a SEXY PAHRTY!
Try in on your myspace teeny boppers and watch the fun. - safiire, on 10/12/2007, -4/+10Nothing more vicious than someone could do on any website with javascript.
Javascript code runs on your computer in your browser, this is the same thing as if you saved the page to your harddrive, opened it up and pasted the code into the page.
It's nothing that special, unless you didn't know you could do it through the URL bar. - tuartboy, on 10/12/2007, -0/+5Loading digg by itself bogs down my G4...
- Initialpassion, on 10/12/2007, -0/+5wow that was the best 3.7 seconds of entertainment ever!
- Area51mafia, on 10/12/2007, -8/+12You'd imagine wrong. First, it's Javascript. Secondly, it'd just be on your end. Since you're putting it in yourself, it's a bit like running a Greasemonkey script to use extra Javascript for a site. Anything you'd be doing would be pretty tame.
- rocket000, on 10/12/2007, -1/+5get a computer.
- BladeMelbourne, on 10/12/2007, -0/+4Your post is a dupe in this thread. Buried.
- Tricky, on 10/12/2007, -0/+3Fun to screw with Myspace pages :)
- oracleXofXall, on 10/12/2007, -1/+4javascript:x=0;e=document.body;e.style.position=%22absolute%22;function rt(){e.style.top=100-(50*Math.cos(x*Math.PI/180))+%22px%22;e.style.left=100+(50*Math.sin(x*Math.PI/180))+%22px%22;x+=5};setInterval(%22rt()%22,50);void(0);
That one is way cooler - JackyTreehorn, on 10/12/2007, -1/+4I read a story in 2600 about a guy who used this trick to pay $1 to get into some expensive conference. He went to the conference sign-up page and there was a ticket drop down list or something similar. You select standard or premium (again I don't remember the specifics).
The value of the input on the page was the amount of money each ticket cost, i.e.
<input type='radio' value='100' />Standard<br />
<input type='radio' value='200' />Premium<br />
The guy guessed correctly that the website uses this value to determine what to charge guests. The guy used this javascript trick to set the value of his ticket to $1. $100 becomes $1, (somebody call Verizon).
This is how you could mess with someones website. For coders looking to avoid such a situation, put IDs in the value of inputs rather than actual values. Use that ID value to look up an actual price. - Switch22, on 10/12/2007, -1/+4It's not very fun on http://www.google.com :(
- iSamurai, on 10/12/2007, -17/+20This is a dupe from a while ago. Buried
- Negyxo, on 10/12/2007, -0/+3The latter js input reaaaally bogs my comp down. Takes up 100% of my cpu (amd64 3400) and runs at maybe 10fps.. lol
- GuJu, on 10/12/2007, -0/+2thats cool
- Mike89, on 10/12/2007, -1/+3Your graphics card doesn't come into play when it comes to speed. It's your CPU.
- noah45, on 10/12/2007, -0/+2Uh oh. BBC had spacer images flying around.
- Quakes, on 10/12/2007, -1/+3@JackyTreehorn
That's just plain old JavaScript injection. It can be done much easier now (the Web Developer extension for Firefox, for example), but you won't have much use for it - only retarded webmasters would ever do anything important client side. - MacGyver2210, on 10/12/2007, -0/+2ha, first time i've seen this. very fun. it looks coolest on really gridded-out pages like Google Image search or Flickr - makes the pics orbit random points....cool.
- doubleyoube, on 10/12/2007, -2/+4Seen this a while ago, still cool though.
Does anyone know the code that allows you to edit the page in the browser? That was always fun. - SobyOne, on 10/12/2007, -0/+2You are my hero!
Check it out -> www.sobyland.com (bottom left-hand corner) "DON'T CLICK ME"
p.s. Digg doesn't work because there are no images to speak of. - everfalling, on 10/12/2007, -0/+2try this with www.millionpennyhomepage.com
woo :P - ROFLance, on 10/12/2007, -0/+2^ pointless
- UltraAyla, on 10/12/2007, -0/+2I just replaced Math.cos with Math.tan and watched ***** fly - it was pretty sweet
- fynergy, on 10/12/2007, -0/+2I think they mean this:
javascript:(function(){document.designMode="on";})()
switch off is the same replacing 'on' for 'off' in the line above. - inactive, on 10/12/2007, -0/+2dug for the cool animating avatars on that forum!
- ROFLance, on 10/12/2007, -0/+2If you refresh the page after you enter it, it doubles in speed, and gets faster and faster the more you refresh. (in safari, at least)
- sfacets, on 10/12/2007, -0/+2I used it here on Digg, and all the comment digg down buttons disappeared.
Could this be used as a link? - emceepecks, on 10/12/2007, -0/+1Poor tubes =(
- coollettuce, on 10/12/2007, -0/+1by the way it would be awesome if i could embed this in a comment on someones myspace
- Ashe, on 10/12/2007, -0/+1Duplicate. Please Bury.
- JackyTreehorn, on 10/12/2007, -0/+1I messed up my HTML. The radio buttons looked like:
<input type='radio' value='100' />Standard<br />
<input type='radio' value='200' />Premium<br /> - tomarocco, on 10/12/2007, -0/+1Actually, it uses the DOM to extract the pictures: DI=document.images;
- dep01, on 10/12/2007, -0/+1And here I was thinking it was something useful.
- tito13kfm, on 10/12/2007, -0/+1I wouldn't recommend doing that while drunk.
- SVPirate, on 10/12/2007, -0/+1That's kinda neat in a naff and useless kinda way. Would make a good screensaver I suppose for websites that are likely to be on a screen for ages (like company intranets left up on computers in an office) but then again it'd drive everyone nuts or make em puke or something ;o)
It only works in IE 6 (don't have 7 to test) for me, no FF2. - robtowne, on 10/12/2007, -0/+1Just check out the scroll bar at the bottom. That's pretty cool by itself
- jdstorer2, on 10/12/2007, -0/+1Here's my version. Probably not as cool but it randomizes a circular path, makes any img (or any tag: just modify tag='img'; to what tag you want)
javascript:tag='img';s=new Date().getTime();function rnd(){s=(s*9301+49297)%25233280;return s/233280.0;};a=0;x=50;y=50;rr=300;d=document.getElementsByTagName(tag);dl=d.length;rxa=new Array();rya=new Array();xa=new Array();ya=new Array();for(i=0;i-dl;i++){rxa[i]=rnd()*rr;rya[i]=rnd()*rr;xa[i]=rnd()*x;ya[i]=rnd()*y;};function fn(){for(i=0;i-dl;i++){d[i].style.position='absolute';d[i].style.top=xa[i]-(rxa[i]*Math.cos(a*Math.PI/180))+'px';d[i].style.left=ya[i]+(rya[i]*Math.sin(a*Math.PI/180))+'px';}a+=5;}setInterval('fn()',50);void(0); -
Show 51 - 100 of 151 discussions



What is Digg?
Digg is coming to a city (and computer) near you! Check out all the details on our