User:Mikkkko/monobook.js

addOnloadHook(function { if (wgTitle.indexOf("/") != -1 || document.title.indexOf("- History -") != -1)  //no subpages or history     return;  if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk") {     var username = encodeURIComponent( wgTitle );     addPortletLink("p-cactions", "http://en.wikipedia.org/wiki/Special:Contributions/" + username, "Contribs", "ca-contrib", "User   contributions");     addPortletLink("p-cactions", "http://en.wikipedia.org/w/index.php?title=Special%3ALog&type=move&user=" + username, "Page moves",  "ca-pagemoves", "Page moves by this user");     addPortletLink("p-cactions", "http://en.wikipedia.org/w/index.php?title=Special%3ALog&type=upload&user=" + username, "Uploads",  "ca-uploads", "Files uploaded by this user");     addPortletLink("p-cactions", "http://en.wikipedia.org/w/index.php?title=Special%3APrefixindex&from=" + username + "&namespace=2", "Userspace", "", "List of pages in this user's userspace"); }  addPortletLink('p-cactions', 'http://en.wikipedia.org/w/index.php?title=' + wgPageName + "&diff=cur&oldid=prev", 'last',                                                'ca-last', 'Show most recent diff'); });