DOM II: JavaScript Hell

Have some fun destroying websites using my bookmarklet.

Published: Thu, October 5, 2017, 21:30
Software development

Bookmarklet 🔗

DOM II: JavaScript Hell

Just click the button to play the game on this page.

To try it on other pages, just drag the button to your bookmark row in your browser. After that you can just click the bookmark when visiting other sites.

What's a bookmarklet? 🔗

A bookmarklet is a bookmark stored in a web browser that contains JavaScript commands that add new features to the browser. Bookmarklets can be useful tools, e.g. for increasing the readability of web pages, do searches, create short urls, etc.

DOM II: JavaScript Hell might not be very useful, but hopefully it's an enjoyable small game if you're bored or if you're disliking a web site. :)

Inspiration 🔗

I never forgot about the similar bookmarklet created by Erik Rothoff Andersson in 2010. I wanted to create something like that, but with my own code and my own twists and also have mobile support.

Oh, and the name? Since this game is all about DOM manipulation I figured that the name would be a nice play-on-words and tribute to Doom and more specifically Doom II: Hell on Earth.

Security 🔗

As I write a bit about security I think it's natural to give you a word of warning when it comes to bookmarklets. My bookmarklet is safe to use, but you shouldn't take my word for it. You should never run bookmarklets on pages that have private information stored on it. Luckily, today online banks etc. uses a Content Security Policy that will stop bookmarklets to be run on their page. Otherwise one would risk e.g. financial or private information getting in the wrong hands.

Feedback 🔗

Please leave a comment or send me an e-mail if you see any bugs or have have any suggestions for the game. My guess is that there will be quite a few mobile devices having the some odd values reported from the gyroscope.

Get notified when there are new posts! :-)