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) {

var elementsToHaveHeaderBackgroundColorAsBorder = [ document.getElementById("WikiaPage"), document.getElementById("AccountNavigation").getElementsByClassName("subnav")[0], document.getElementById("WallNotifications").getElementsByClassName("subnav")[0], document.getElementById("WikiaPageHeader"), document.getElementById("WikiaSearch").querySelector("input[type=\"text\"]"), document.getElementById("WikiaRecentActivity"), document.getElementById("WikiaRail").getElementsByClassName("ChatModule")[0] ];

(function {       var wikiaHeader = document.getElementById("WikiaHeader"),            wikiaHeaderStyles = window.getComputedStyle(wikiaHeader),            wikiaHeaderBackgroundColor = wikiaHeaderStyles.getPropertyValue("background-color"),            page = document.getElementById("WikiaPage"),            i,            len;

for (var i = 0, len = elementsToHaveHeaderBackgroundColorAsBorder.length; i < len; i++) { elementsToHaveHeaderBackgroundColorAsBorder[i].style.borderColor = wikiaHeaderBackgroundColor; }   }); })(this, this.document, this.jQuery, this.mediaWiki);