NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name FunTrivia Answer Randomizer
// @namespace http://gaxx.co.uk/funTrviaRanomizer
// @version 0.6
// @description Select a random answer to each question
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
// @author Gaxx
// @include http://www.funtrivia.com/private/play.cfm
// @include http://www.funtrivia.com/private/play.cfm?tid=86650
// @grant none
// @license MIT
// ==/UserScript==
(function() {
console.log("== FunTrivia Answer Ranomizer v" + GM_info.script.version + " ==");
var autoSubmit = false;
$('table[style="border:1px #336600 solid;"]').each(function( index ) {
var $list = $( this );
var $ans = $list.find('input[type="radio"]');
if ($ans.length > 1) { var $sel = $list.find("input[type='radio']:eq(" + Math.floor(Math.random() * $ans.length) + ")").trigger("click"); }
});
window.scrollTo(0,0);
if (autoSubmit) {
$("input[type='submit']").trigger("click");
}
console.log("/= FunTrivia Answer Ranomizer v" + GM_info.script.version + " =/");
})();