User:-Matt/global.js

if (mw.loader.getModuleNames.indexOf("tundra") < 0) { mw.loader.implement(           "tundra",            ["http://matthew2602.github.io/tundra/tundra.min.js"],            {},            {}        ); }
 * (function(window, document, $, mw, undefined) {

(function {       // Using jQuery here over DOM methods so it gracefully degrades because        // some of the elements may not exist on all pages        var elementsToHaveHeaderBackgroundColorAsBorder = [            $("#WikiaPage"),            $("#AccountNavigation").find(".subnav"),            $("#WallNotifications").find(".subnav"),            $("#WikiaPageHeader"),            $("#WikiaSearch").children("input[type=\"text\"]"),            $("#WikiaRecentActivity"),            $("#WikiaRail").children("ChatModule")        ],            wikiaHeaderBackgroundColor = window.sassParams["color-header"],            i,            len;

for (           i = 0, len = elementsToHaveHeaderBackgroundColorAsBorder.length;            i < len;            i++        ) { elementsToHaveHeaderBackgroundColorAsBorder[i].css(               "border-color",                wikiaHeaderBackgroundColor            ) }   });

(function {       var page = document.getElementById("WikiaPage"),            hubBranding = page.getElementsByClassName("WikiaHubBranding")[0],            hubImage = hubBranding.getElementsByClassName("sprite")[0];

hubImage.className = hubImage.className.replace(/logo\d+/, "logo4"); }); })(this, this.document, this.jQuery, this.mediaWiki);