Created
September 30, 2013 04:50
-
-
Save akatov/6759488 to your computer and use it in GitHub Desktop.
a tampermonkey script to enhance the http://foojure.clojurecup.com experience
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Foojure enhancer | |
// @namespace http://use.i.E.your.homepage/ | |
// @version 0.1 | |
// @description enter something useful | |
// @match http://foojure.clojurecup.com/ | |
// @copyright 2012+, You | |
// ==/UserScript== | |
var tables = ['fireball', 'garlando', 'leonhart', 'roberto-sport', 'tornado', 'unknown'] | |
var randomizeTable = function(){ | |
setTimeout(function(){ | |
$('#table-type').removeClass().addClass(tables[Math.floor(Math.random() * tables.length)]) | |
}, 16) | |
} | |
$('#right').click(randomizeTable) | |
$('#left').click(randomizeTable) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment