Skip to content

Instantly share code, notes, and snippets.

Avatar

MadHatter MadbHatter

View GitHub Profile
View UniversalPaperclipsAI.js
// ==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 Oct 20, 2017
Unleash Kerrigan upon the swarmsim!
View KerriganMode
// ==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() {
View clear-history-chrome.ts
(() => {
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();
You can’t perform that action at this time.