Skip to content

Instantly share code, notes, and snippets.

View MadbHatter's full-sized avatar

MadHatter MadbHatter

View GitHub Profile
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match http://www.decisionproblem.com/paperclips/index2.html
// @updateURL https://gist.github.com/MadbHatter/471b1eaf32b4cde899dfd806fb92ae63
// @grant none
// ==/UserScript==
@MadbHatter
MadbHatter / KerriganMode
Last active October 20, 2017 10:19
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() {
(() => {
function removeAllEntries() {
var checkboxes = document.querySelectorAll("input[type=\"checkbox\"]");
if (checkboxes.length === 0) return;
for (var i = 0; i < checkboxes.length; i++) {
var el = <HTMLInputElement>checkboxes[i];
el.checked = true;
}
var el = <HTMLInputElement>checkboxes[0];
el.click();