7 ms·
What about all the services offering provider.com/~username. Scrolling status bars used to be all the range in the 90s, I wonder how long until url hacks allow
by MikeW 16y ago
What about all the services offering provider.com/~username.
Scrolling status bars used to be all the range in the 90s, I wonder how long until url hacks allow for scrolling address bars with this.
- deleted 16y ago[deleted]
- johnswamps 16y agoHere you go. Copy paste into your url bar. Only tested in Chrome (edit: apparently also works in safari 5) javascript:var dashes = ""; var num = 20; while(--num) dashes += "-"; setInterval(function() { window.history.pushState("", "", dashes.slice(0, num % 20) + "foo" + dashes.slice(num % 20)); num++;}, 500)
- e1ven 16y agoThat is simultaneously one of the cooler, and more horrifying things I have seen. With Great Power, comes great potential for horrible, horrible abuse.
- j79 16y agoAbsolutely. I was thinking this could be "abused" in the same way that animated status bars were in the 90s. Of course, I had to try it out... javascript:var s=[119,101,108,99,111,109,101,45,116,111,45,104,97,99,107,101,114,45,110,101,119,115];var c=1;var mod=s.length+1;setInterval(function(){window.history.replaceState("","", setString())}, 200);function setString(){var n="";if(!(c % mod)){c=1}else{c++}for(i=0;i<s.length;i++){n+=String.fromCharCode(s[i]-(s[i]==45||i!=c-1?0:32))}return n+".aspx!!!"};
- ptomato 16y agoAlso works in Safari 5, at least.
- kristofferR 16y agoDamn, that is annoying! It totally screws up the back button functionality in Safari: http://imgur.com/41rrV.png http://imgur.com/41rrV.png
- wodow 16y agoAnd also in Chrome.
- sorbus 16y agoThat's sort of the point, isn't it? As it's continuously changing the URL ... I could see this used to make it difficult or impossible for people to leave sites, except by closing the window.
- mrkurt 16y agoHaha, indeed! (Don't click this if you care about your history) http://kurtly.tumblr.com/sticky-history http://kurtly.tumblr.com/sticky-history
- kiwidrew 16y agoIf you change the window.history.pushState() call to window.history.replaceState(), it doesn't add bazillions of entries to your history, which makes it slightly more practical. javascript:var dashes = ""; var num = 20; while(--num) dashes += "-"; setInterval(function() { window.history.replaceState("", "", dashes.slice(0, num % 20) + "foo" + dashes.slice(num % 20)); num++;}, 500)
- ben_alman 16y agoOk, here's a first pass... http://jsfiddle.net/cowboy/FB9Nd/show/ http://jsfiddle.net/cowboy/FB9Nd/show/