User:Ultra two/monobook.js

var arr = new Array(3); arr[0] = "Jani"; arr[1] = "Tove"; arr[2] = "Hege";

function gotoCoolPage{ document.location=arr[Math.floor(Math.random*3)]; }

//Define our main function function myScript{ document.getElementById('n-randompage').childNodes[0].href="javascript:gotoCoolPage"; }; //Schedule it to run after the HTML page is rendered //addOnloadHook(myScript);