Originally Posted by
~~smart~fool~~
this thread has been jacked by you ppl argueing over browsers...
Ok, well if you people want something back on topic, here is some URL javascript I quickly put together to do mostly annoying things...
Note: Try these at your own risk! Most run on an endless loop and the only way to stop them is to end the browser's process.
Number * - The window flasher. Enter this into your (or someone else's) browser and the window will keep flashing until someone decides to close the browser:
Code:
javascript:while(*){window.blur();window.focus()};
Number 2 - The endless alert box. This will pop-up an annoying alert box on the browser which simply reappears when 'ok' is clicked. AFAIK, there is not enough time to close the browser window before the next box pops up and you must resort to task manager. This can be used to tie up someone's computer while they aren't looking.
Code:
javascript:while(*){alert("This will never end")};
Number * - The window opener. This will keep opening up new windows on google.com as fast as the computer can physically handle. This will eat up resources until killed manually. Google.com could be replaced with a shock website if you particularly dislike the victim - they won't have much chance to close the window.
Code:
javascript:while(*){window.open("http://www.google.com")};
Number 4 - The scroller. This javascript will keep scrolling up and down on the page until it lags your computer down.
Code:
javascript:while(*){window.scrollTo(0, 500);window.scrollTo(0, 0);};
Number 5 - The window mover. This resizes the window then moves it continually in a square movement until you get bored; then realize there's no way to stop it. Unless of course you use Firefox which allows you to stop unresponsive scripts.
Code:
javascript:function pause(numberMillis){var now = new Date();var exitTime = now.getTime() + numberMillis;while (true){now = new Date();if (now.getTime() > exitTime)return;}}window.resizeTo(*0, *0);while(*){pause(200);window.moveBy(200, 0);pause(200);window.moveBy(0, -200);pause(200);window.moveBy(-200, 0);window.moveBy(0, 200);};
Number 6 - The smooth window resizer. This resizes the window gradually back and forth once.
Code:
javascript: function pause(numberMillis){var now = new Date();var exitTime = now.getTime() + numberMillis;while (true){now = new Date();if (now.getTime() > exitTime)return;}} for(var Counter = "0";Counter < *0;Counter++){pause(*00);window.resizeBy(-*00, -*00);}for(var Counter = "0";Counter < *0;Counter++){pause(*00);window.resizeBy(*00, *00);}
******: I created all this code apart from one function to delay execution for a specified time, which I found here:
[url]http://codewalkers.com/forum/index.php?action=displaythread&forum=clientside&id=584&realm=default[/url]