8 ms·
A game running in your browser's address bar
- therealidiot 12y agoPretty cool, if you ask me.
- nittr 12y agocool..hw does it work?
- SifJar 12y agoThe code is all there to look at, just right click > view source for most desktop browsers. But in brief, it's a fairly simple case of using JS to set "window.location.hash" to whatever value necessary. If you want to test this out, you can open your browser's JS console (on any website), and simply type something like this: window.location.hash="test" and it'll update the URL displayed in your navigation bar. Then it's just a case of using some JS code to generate the text to place in the navigation bar. It's quite a neat idea, but it's also pretty simple.
- bananaoomarang 12y agoHah, these are neat!
- ORioN63 12y agoAnd my history is now full.
- lionyo 12y agoIs that the reason why the title of the page is named "I'm sorry"?
- fidz 12y agoI am using chrome 40, and the history tells nothing except my first visit. Edit: Oh no, the back button was grayed out. I thought it affected nothing to my history. My thought is wrong. Completely wrong.
- Kenji 12y agoThanks for the warning. Better open that one in incognito mode to avoid this problem ;)
- lettergram 12y agoClear Browser > Last Hour :)
- zodvik 12y agoFor those still about to try, use incognito mode.
- deleted 12y ago[deleted]
- miander 12y agoAnd it appears that there is no way to select all entries matching a search for deletion in Chrome's history. Deleting all browser history from the last hour solves it though! Thanks for the warning...
- lione 12y agoI highly recommend Better History. https://chrome.google.com/webstore/detail/better-history/obciceimmggglbmelaidpjlmodcebijb?hl=en https://chrome.google.com/webstore/detail/better-history/obc... It has quite a few features, and it groups visits by site untill you expand it. I easily deleted it all in one button click.
- rgovind 12y agoHeads up for others. Open in incognito mode
- bsdpython 12y agoFun stuff though I would call them animations not games
- sprkyco 12y agoThe simplicity of this is amazing. On top of that even if somebody figured this out I didn't expect the assortment of animations offered up in the first show off. Would have been impressed with just the shark, but the table flip made it really cool.
- BatFastard 12y agoVery clever, I just need a score on pewpew....
- Sealy 12y agoLove the innovative thinking. Do you think there could realistically be any useful use-cases for this though? I really wouldn't be able to think of any off the top of my head...
- ademarre 12y agoIt demonstrates that you can use the address bar for animation. I imagine there might be a scenario where you'd want to try this for a progress bar or some other kind of status indicator.
- userbinator 12y agoI imagine there might be a scenario where you'd want to try this for a progress bar or some other kind of status indicator. That used to be what the status bar was for, until scripts started modifying it to hide link destinations (onclick= etc.) so that ability was disabled for "security reasons". Now the status bar is gone completely from most browsers by default, but onclick= can still be used to obfuscate link destinations. Also, status bar scrollers were rather common on the "old web"; they won't be missed, and I hope address bar scrollers don't start being the next "cool thing". It's a fun demo-effect, just not something I'd like to see all the time.
- TeMPOraL 12y agoSince there are no negative comments yet, let me be the first - I like it, but hell it really can hang up the browser...
- czardoz 12y agoI love this :-D
- dfkf 12y agoTo author, please use "location.replace" instead of "location.hash". -avid pewpew player.
- Glench 12y agoDone! Thanks for the tip.
- devniel 12y agofantastic
- mts_ 12y agoAlong with all the Flappy Bird clones, somebody made something Flappy Braille: http://flappybraille.ndre.gr/ http://flappybraille.ndre.gr/