| Line 3: |
Line 3: |
| | // Please leave the following line | | // Please leave the following line |
| | // [[user:Where/usertabs]] | | // [[user:Where/usertabs]] |
| − |
| + | /* |
| | addOnloadHook(function() { | | addOnloadHook(function() { |
| | if (wgTitle.indexOf("/") != -1 || document.title.indexOf("- History -") != -1) //no subpages or history | | if (wgTitle.indexOf("/") != -1 || document.title.indexOf("- History -") != -1) //no subpages or history |
| Line 17: |
Line 17: |
| | addPortletLink("p-cactions", wgServer + "/w/index.php?title=Special:Log&type=protect&user=" + username, "Protections", "", "Protections by this user"); | | addPortletLink("p-cactions", wgServer + "/w/index.php?title=Special:Log&type=protect&user=" + username, "Protections", "", "Protections by this user"); |
| | addPortletLink("p-cactions", wgServer + "/w/index.php?title=Special:Log&type=delete&user=" + username, "Deletions", "", "Deletions by this user"); | | addPortletLink("p-cactions", wgServer + "/w/index.php?title=Special:Log&type=delete&user=" + username, "Deletions", "", "Deletions by this user"); |
| | + | } |
| | + | }); */ |
| | + | |
| | + | 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", wgServer + "/wiki/Special:Contributions/" + username, "contribs", "ca-contrib", "User contributions"); |
| | + | addPortletLink("p-cactions", "http://tools.wikimedia.de/~interiot/cgi-bin/Tool1/wannabe_kate?username=" + username + "&site=en.wikipedia.org", "count", "ca-editcount", "Edit count from Interiot's Tool1"); |
| | + | addPortletLink("p-cactions", "http://www.math.ucla.edu/~aoleg/wp/rfa/edit_summary.cgi?user=" + username + "&site=en.wikipedia.org", "Summary", "ca-summary", "Edit Summary"); |
| | } | | } |
| | }); | | }); |
| | | | |
| | // </nowiki></pre> | | // </nowiki></pre> |