// Please leave the following line
// I hope this work. Because this is going to be a breakthrough in this gadget development.
// [[Wikipedia:WikiProject User scripts/scripts/Scripts/User tabs]]
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 );
mw.util.addPortletLink("p-cactions", wgServer + "/wiki/Special:Contributions/" + username, "Lateef Contribs", "ca-contrib", "User contributions");
mw.util.addPortletLink("p-cactions","http://toolserver.org/~soxred93/count/index.php?name="+ username +"&lang=en&wiki=wikipedia" , "Lateef Edit count", "ca-editcount", "Edit count from X!'s Tool");
mw.util.addPortletLink("p-cactions", wgServer + "/w/index.php?title=Special:Log&type=move&user=" + username, "Lat Page moves", "ca-pagemoves", "Page moves by this user");
mw.util.addPortletLink("p-cactions", wgServer + "/w/index.php?title=Special:Log&type=block&page=User:" + username, "Lateef Blocks received", "ca-blog", "Blocks received by this user");
mw.util.addPortletLink("p-cactions", wgServer + "/w/index.php?title=Special:Prefixindex&from=" + username + "&namespace=2", "Lateef Userspace", "", "List of pages in this user's userspace");
mw.util.addPortletLink("p-cactions", wgServer + "/w/index.php?title=Special:Log&type=block&user=" + username, "Lateef Blocks given", "", "Blocks by this user");
mw.util.addPortletLink("p-cactions", wgServer + "/w/index.php?title=Special:Log&type=protect&user=" + username, "Lateef Protections", "", "Protections by this user");
mw.util.addPortletLink("p-cactions", wgServer + "/w/index.php?title=Special:Log&type=delete&user=" + username, "Lateef Deletions", "", "Deletions by this user");
}
});
//