MediaWiki:GlobalNavButtons.js

// Global Nav Buttons // @author:Jr Mime

$(function {  glnbutt = {};

glnbutt.init = function { if (window.globalNavButtons) { $(".wds-global-navigation__links").empty; $.each(window.globalNavButtons, function(i) {       if (!window.globalNavButtons[i].isMain && !window.globalNavButtons[i].whoIsMain) {          $(".wds-global-navigation__links").append("" + window.globalNavButtons[i].text + "");        } else if (window.globalNavButtons[i].isMain) {          $(".wds-global-navigation__links").append( '' + '' + '' + window.globalNavButtons[i].text + ' ' + '' + '' + ' ' +             ' ' +              '' + '' + // Items here '' + ' ' +           ' '          )          if (window.globalNavButtons[i].url) $("#custom-global-nav-button-href-" + window.globalNavButtons[i].shortName).attr("href", url);        } else if (!window.globalNavButtons[i].isMain && window.globalNavButtons[i].whoIsMain) {          $("#custom-global-nav-button-lbl-" + window.globalNavButtons[i].whoIsMain).append( ''+ '' + window.globalNavButtons[i].text + '' + '' )       }        i++;      }); } };

glnbutt.init; });