User:Persondudes/global.js

/* CustomToolbarLinks by Bobogoobo */ // Possible additions: option to put items directly on the toolbar, possibly with position specified //

(function {   if ( typeof customPages == 'undefined' ) {        customPages = 'Main Page';    }    var addCode = ' ' +                      '  ' +                      'Custom Links',    c_href, 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 );    WikiaFooterApp.init; });