Difference between revisions of "User:Waldir/vector.js"
(test) |
(retry) |
||
Line 2: | Line 2: | ||
importScriptURI('http://en.wikipedia.org/w/index.php?title=User:Markhurd/hidetopcontrib.js&action=raw&ctype=text/javascript'); | importScriptURI('http://en.wikipedia.org/w/index.php?title=User:Markhurd/hidetopcontrib.js&action=raw&ctype=text/javascript'); | ||
− | + | addOnloadHook(function () { | |
− | + | if(wgCanonicalSpecialPageName == 'Contributions') | |
− | + | addPortletLink('p-cactions', 'javascript:alert("it works!")', 'show/hide top', 'ca-hidetop', | |
− | + | "Show/hide pages for which you're the top contributor", ''); | |
− | |||
− | |||
− | |||
− | |||
− | |||
}); | }); |
Revision as of 12:54, 22 November 2012
importScriptURI('http://en.wikipedia.org/w/index.php?title=User:Js/6tabs-vector.js&action=raw&ctype=text/javascript'); importScriptURI('http://en.wikipedia.org/w/index.php?title=User:Markhurd/hidetopcontrib.js&action=raw&ctype=text/javascript'); addOnloadHook(function () { if(wgCanonicalSpecialPageName == 'Contributions') addPortletLink('p-cactions', 'javascript:alert("it works!")', 'show/hide top', 'ca-hidetop', "Show/hide pages for which you're the top contributor", ''); });