User:Bobogoobo/common.js: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
$(function() { | $(function() { | ||
//Add PrefixIndex to toolbox | |||
$('#p-tb li:nth-of-type(2)').after( | $('#p-tb li:nth-of-type(2)').after( | ||
'<li id="t-prefixindex"><a href="/view/Special:PrefixIndex">Prefix Index</a></li>' | '<li id="t-prefixindex">' + | ||
'<a href="/view/Special:PrefixIndex?prefix=&namespace=' + | |||
mw.config.get('wgNamespaceNumber') + | |||
'">Prefix Index</a>' + | |||
'</li>' | |||
); | ); | ||
}); | }); |