MongoDB Atlas is built for every app.

Start Building

Awesome jQuery Space Mouse DOM Shooter

Sam Deering
Sam Deering
Published in
·Updated:

Share this article

SitePoint Premium
Stay Relevant and Grow Your Career in Tech
  • Premium Results
  • Publish articles on SitePoint
  • Daily curated jobs
  • Learning Paths
  • Discounts to dev tools

7 Day Free Trial. Cancel Anytime.

space-mouse-FTW
Hi guys, ever wanted to destroy a web page with a little mouse icon space ship??? Well, now you can! To play the game simply copy and paste the javascript code given below in the url bar and hit enter.

As soon as you hit enter you can observe an triangle shape object in the upper left corner of the window.

Controls

Navigate the mouse space ship with the following keys:

W = move up
A = move left
D = move right
Spacebar = shoot

Shoot Down Your Favourite Websites!

Just copy and paste the javascript below into your address bar and your away!

javascript:var%20s%20=%20document.createElement('script');s.type='text/javascript';document.body.appendChild(s);s.src='http://erkie.github.com/asteroids.min.js';void(0);

If that doesn’t work try the jQuery version:

jQuery(document).ready( function()
{
	jQuery.getScript('http://erkie.github.com/asteroids.min.js');
});

Sam Deering has 15+ years of programming and website development experience. He was a website consultant at Console, ABC News, Flight Centre, Sapient Nitro, and the QLD Government and runs a tech blog with over 1 million views per month. Currently, Sam is the Founder of Crypto News, Australia.

jQuery

Share this article

Subscribe to our newsletter

Get the freshest news and resources for developers, designers and digital creators in your inbox each week

© 2000 – 2025 SitePoint Pty. Ltd.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.