Skip to content

Instantly share code, notes, and snippets.

@MadbHatter
Last active October 20, 2017 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MadbHatter/2d5479f7e57b7eb9cb21dccaa8ae9b98 to your computer and use it in GitHub Desktop.
Save MadbHatter/2d5479f7e57b7eb9cb21dccaa8ae9b98 to your computer and use it in GitHub Desktop.
Unleash Kerrigan upon the swarmsim!
// ==UserScript==
// @name Kerrigan Mode
// @namespace https://swarmsim.github.io/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://swarmsim.github.io/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
console.log(localStorage);
var testWindow = window.open("about:blank", "testWindow", "height=600,width=500");
if(testWindow == null){
alert("It seems that your browser or a extension blocked the \"Kerrigan Mode Window\"\nPlease allow popups on swarmsim.github.com");
}else{
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment