Sixem

JavaScript Extremely Fast Changing URL

Oct 12th, 2013
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).ready(function() {
  2.    startLoop();
  3. });
  4. var iFrequency = 50;
  5. var myInterval = 0;
  6. function startLoop() {
  7.     if(myInterval > 0) clearInterval(myInterval);
  8.     myInterval = setInterval("doSomething()", iFrequency );
  9. }
  10. function doSomething()
  11. {
  12.     history.pushState(null, null, makeid());
  13. }
  14. function makeid()
  15. {
  16.     var text = "";
  17.     var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789#+-$£@++++";
  18.  
  19.     for( var i=0; i < 30; i++ )
  20.         text += possible.charAt(Math.floor(Math.random() * possible.length));
  21.  
  22.     return 'hack.exe?&$hackingprogress:#' + text + '$progress#100%#complete';
  23. }
Advertisement
Add Comment
Please, Sign In to add comment