MediaWiki:CustomToolbarLinks/code.js

/* CustomToolbarLinks by Bobogoobo */

if (typeof(customPages) == 'undefined') { customPages = 'Main Page'; }

var addCode = ' ' + ' ' +              'Custom Links'; var c_href; var c_html;

for (var i = 0; i < customPages.length; i++) { c_href = customPages[i][0];

if (customPages[i].length > 1) { c_html = customPages[i][1]; } else { c_html = c_href; }

addCode += ' ' + c_html + ''; }

addCode += '';

$(".mytools").after(addCode);