User:Jinbobo/Sandbox

mw.user.isAnon - Check if user is logged in.

Scrape image URLs from navboxes
Array.prototype.getUnique = function{ var u = {}, a = []; for(var i = 0, l = this.length; i < l; ++i){ if(u.hasOwnProperty(this[i])) { continue; }     a.push(this[i]); u[this[i]] = 1; }  return a; } arr = $(".navbox").html.match(/\/images\/thumb\/.\/..\/Grid[^\.]+\.png/g); for(i=0; igetUrl;