User:Markhurd/hidetopcontrib.js: Difference between revisions

Content deleted Content added
m Reverted edits by Xeno (talk) to last version by Markhurd
m better page check
Line 58:
addOnloadHook(function () {
if((___location.href.indexOf("Special:wgCanonicalSpecialPageName == 'Contributions"')!=-1||
___location.href.indexOf("Special%3AContributions")!=-1))
addPortletLink('p-cactions', 'javascript:hidetopcontrib()', 'show/hide top', 'ca-hidetop',
"Show/hide pages for which you're the top contributor", '');