User:WestonWyse/monobook.js

function parse(obj){ var text=""; for(x in obj){ text = text + x + ": " + obj[x] + "\n"; }   alert(text); }

/******************************

Random page from category


function catRandomPage{ if(document.body.innerHTML.match(/.*_CATRANDOM_.*/)){ var links = document.getElementsByTagName("a"); var larray = new Array; for(var i=0; i 0){ link = larray[rand(larray.length)].href; link = "click here."; link = "To see a random page from this category, " + link; document.body.innerHTML = document.body.innerHTML.replace(/(.*)_CATRANDOM_(.*)/, ("$1" + link + "$2")); }   } } addLoadEvent(catRandomPage);