// ==UserScript== // @name Extended Navigation Bar Multiplayer // @namespace http://badassmonkey.org // @description Additional tabs for the forumwarz navigation bar, Made by Bamse (http://www.nilsbakken.com) modified for recent changes by Echuu. Also, Ricket did things. // @include http://www.forumwarz.com/* // @include http://forumwarz.com/* // @exclude http://www.forumwarz.com/forums/battle/* // @exclude http://forumwarz.com/forums/battle/* // ==/UserScript== // Call style function addGlobalStyle(); // Add general links expandNavBar(); // Update stylesheet function addGlobalStyle() { var css = 'div.tabs a.gmtab { background-position: 0px -378px;}'+ 'div.tabs a.gmtab span.inner { background-position: 100% -378px; color: #000; }'; var head, style; head = document.getElementsByTagName('head')[0]; if (!head) { return; } style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = css; head.appendChild(style); } // Add links to navigation bar function expandNavBar() { var linksHTML1 = '