Live data from Hacker News

Asteroids JavaScript Bookmarklet to blow up any web site

erkie.github.com

61–70 of 77 posts

Re: Asteroids JavaScript Bookmarklet to blow up any web site

#62
post #56
post #7

Awesome. Now someone needs to combine it with websockets/node.js (or similar) so I can see the other players on the same page!

Exactly what you wanted: http://realitymachine.net/asteroids.html And the HN article, if you want to drum up some more players: http://news.ycombinator.com/item?id=1738543 I hacked together a very (very) basic multiplayer with a paper-thin node.js server in coffeescript. Yes, really: http://github.com/cushman/asteroids.js It might deserve a newspost of its own, but I'd like to have a working server running so people…

Awesome. Good work!

Re: Asteroids JavaScript Bookmarklet to blow up any web site

#63

Earlier quoted context omitted.

What you're talking about has been around forever, and is called a "bookmarklet" http://en.wikipedia.org/wiki/Bookmarklet

What a terrible explanation..

I thought it was bad too, so I blew the shit out of it!

Re: Asteroids JavaScript Bookmarklet to blow up any web site

#64
post #29

Holy crap, I had an extremely similar idea last month for a bookmarklet that let you machine gun and blow up pages. In fact, it's sitting half complete in a projects folder. Erkie, get out of my head!!!! At least it's open source, so I guess I can fork it and add in my ideas.

ideas are cheap :)

Re: Asteroids JavaScript Bookmarklet to blow up any web site

#66

The HN homepage is very reliant on everything being there. One shot to a number did this: http://skitch.com/jackowayed/d29n5/hn-ass-kicked

Tables for layout will do that.

Another disadvantage to tables for layout, they are weak against attack!

Re: Asteroids JavaScript Bookmarklet to blow up any web site

#68

Does anyone want to explain how this works? I had no idea dragging onto a tab could start up javascript on a page. It's amazing!

Here is an example that will search hacker news (via google). This is based on the wikipedia example:

javascript:function se(d) {return d.selection ? d.selection.createRange().text : d.getSelection()} s = se(document); for (i=0; i<frames.length && !s; i++) s = se(frames[i].document); if (!s || s=='') s = prompt('Enter%20search%20terms%20for%20HackerNews',''); var goo = 'http:'; var g = '//'; var le = 'www.google.com/'; open(goo + g + le + (s ? '#q=site%3Anews.ycombinator.com ' + encodeURIComponent(s) : '')).focus();

Re: Asteroids JavaScript Bookmarklet to blow up any web site

#69
post #29

Holy crap, I had an extremely similar idea last month for a bookmarklet that let you machine gun and blow up pages. In fact, it's sitting half complete in a projects folder. Erkie, get out of my head!!!! At least it's open source, so I guess I can fork it and add in my ideas.

Don't feel bad - this idea is pretty old. A program called "Desktop Toys" from the Win95 era comes to mind, and there are probably more examples.
Post reply on HN