Skip to content

Instantly share code, notes, and snippets.

@akatov
Created September 30, 2013 04:50
Show Gist options
  • Save akatov/6759488 to your computer and use it in GitHub Desktop.
Save akatov/6759488 to your computer and use it in GitHub Desktop.
a tampermonkey script to enhance the http://foojure.clojurecup.com experience
// ==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