User:Bobogoobo/common.js: Difference between revisions

From NPOWiki
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>'
);
);
});
});

Revision as of 05:51, 2 July 2020

$(function() {
	//Add PrefixIndex to toolbox
	$('#p-tb li:nth-of-type(2)').after(
		'<li id="t-prefixindex">' +
			'<a href="/view/Special:PrefixIndex?prefix=&namespace=' +
				mw.config.get('wgNamespaceNumber') +
				'">Prefix Index</a>' +
		'</li>'
	);
});