User:Animum/rfavote.js

/* This is a complete joke. Do not take its advice seriously. */

function rfavote { var benchmark = Math.random * 100; var decider = Math.round(Math.random * 100); var supportrationales = [ "Per above.", "Seen him around. Nice guy.", "Excellent candidate.", "Overall impression is good.", "Why the hell not?", "Has a cool userpage.", "Need I say more?" ];

var opposerationales = [ "I vaguely remember a time when he did something wrong.", "Not enough featured content.", "We don't need any more admins.", "Not comfortable supporting.", "Almost no contributions to the MediaWiki namespace", "Why the hell not?", "Not in the BRC." ];

var neutralrationales = [ "It would be rude not to show.", "Good vandal fighter, but not enough featured content.", "Their english ain't good.", "Both the affirmative and the opposition make good arguments.", "Per below.", "I know this user has done something wrong, but I can't find proof of it.", "Why the hell not?" ];

if(decider >= 0 && decider <= 33) alert("You are advised to:\n\nSupport – " + supportrationales[Math.round(benchmark / 17)] + " \~\~\~\~");

if(decider > 33 && decider <= 66) alert("You are advised to:\n\nOppose – " + opposerationales[Math.round(benchmark / 17)] + " \~\~\~\~");

if(decider > 66 && decider <= 100) alert("You are advised to:\n\nNeutral – " + neutralrationales[Math.round(benchmark / 17)] + " \~\~\~\~"); }

$(function {   if((wgTitle.indexOf("Requests for adminship/") != -1 || wgTitle.indexOf("Requests for bureaucratship/") != -1) && wgNamespaceNumber == 4) {        mw.util.addPortletLink('p-cactions', "javascript:rfavote", "rfavote", "ca-rfavote");    } });