MediaWiki:RevertOldGlobalNav.js

(function {    // Double-run protection.    if (window.RevertOldHeaderLoaded) {         return;    }    window.RevertOldHeaderLoaded = true;

// Configuration. var config = window.RevertOldHeaderSettings || {}; poweredByFandom = config.poweredByFandom || 1; displayVideo = config.displayTV || 0; importArticle({       type: 'style',         article: 'u:dev:MediaWiki:RevertOldHeader.css'    });

if (displayVideo === 0) { $('a[href="//fandom.wikia.com/video"]').remove; }   if (poweredByFandom) { $('.wds-global-navigation__logo').append('<path d="M3.836 4.292c.334 0 .597-.088.79-.264.19-.176.286-.436.286-.78 0-.32-.088-.577-.263-.774-.176-.196-.447-.294-.814-.294h-1.37v2.112h1.37zM.22 8.915A.296.296 0 0 1 .13 8.7V.73C.13.64.156.566.213.504A.291.291 0 0 1 .434.41h3.463c1.06 0 1.892.243 2.496.726.603.483.905 1.19.905 2.124 0 .934-.302 1.632-.905 2.094-.604.463-1.436.694-2.496.694H2.502V8.7a.31.31 0 0 1-.086.215.284.284 0 0 1-.22.092H.436a.294.294 0 0 1-.216-.092zM13.89 6.9c.252-.257.387-.652.403-1.184.016-.474.025-.814.025-1.02 0-.203-.01-.535-.025-.994-.016-.532-.15-.927-.404-1.185-.253-.258-.592-.386-1.016-.386-.432 0-.775.13-1.028.387-.253.258-.387.653-.403 1.185-.01.23-.013.56-.013.995 0 .442.004.782.013 1.02.016.53.15.926.403 1.184.253.26.596.388 1.028.388.424 0 .763-.13 1.015-.387m-3.756 1.383C9.464 7.718 9.11 6.887 9.07 5.79c-.01-.23-.013-.58-.013-1.056 0-.475.004-.83.012-1.068.032-1.08.39-1.914 1.07-2.5.68-.585 1.592-.878 2.734-.878 1.134 0 2.04.293 2.722.88.68.584 1.038 1.417 1.07 2.498.017.475.025.83.025 1.068 0 .245-.007.598-.023 1.056-.04 1.097-.394 1.928-1.06 2.493-.664.565-1.575.847-2.733.847-1.158 0-2.072-.282-2.74-.847m9.602.607a.46.46 0 0 1-.153-.288l-1.31-7.86a.19.19 0 0 1-.01-.073.25.25 0 0 1 .078-.18.255.255 0 0 1 .18-.08h1.6c.238 0 .37.096.393.284l.746 4.642.843-2.69c.066-.22.2-.33.404-.33h.918c.203 0 .338.11.403.33l.845 2.677.758-4.63a.336.336 0 0 1 .11-.214c.058-.046.148-.07.27-.07h1.603c.073 0 .135.028.184.08a.266.266 0 0 1 .073.18v.073l-1.31 7.86a.457.457 0 0 1-.158.287.486.486 0 0 1-.33.117h-1.236a.441.441 0 0 1-.453-.32l-1.21-3.402-1.212 3.402a.566.566 0 0 1-.158.22.439.439 0 0 1-.306.1h-1.223c-.14 0-.25-.04-.337-.118m9.954.028A.298.298 0 0 1 29.6 8.7V.73c0-.09.03-.165.086-.227a.291.291 0 0 1 .22-.092h5.775A.317.317 0 0 1 36 .732v1.216c0 .09-.032.164-.093.222a.318.318 0 0 1-.226.085h-3.865v1.56h3.596a.31.31 0 0 1 .318.319V5.25a.311.311 0 0 1-.317.319h-3.595v1.595h3.963c.09 0 .166.03.227.092.06.062.092.138.092.228V8.7c0 .09-.03.164-.092.22a.307.307 0 0 1-.227.087h-5.872a.29.29 0 0 1-.214-.092M41.88 4.206c.35 0 .62-.088.802-.264.184-.176.275-.42.275-.73 0-.312-.09-.562-.275-.75-.183-.188-.45-.282-.8-.282h-1.36v2.026h1.36zm-3.565 4.71a.295.295 0 0 1-.092-.216V.73c0-.09.028-.165.085-.227a.291.291 0 0 1 .22-.092h3.365c1.077 0 1.92.247 2.526.738.607.49.91 1.183.91 2.075 0 .574-.132 1.06-.397 1.462-.265.4-.63.712-1.095.933l1.652 2.996c.024.05.037.094.037.135a.255.255 0 0 1-.074.177.238.238 0 0 1-.183.08h-1.725a.511.511 0 0 1-.502-.33L41.697 6.01h-1.174V8.7c0 .09-.03.164-.092.22a.304.304 0 0 1-.225.087H38.53a.29.29 0 0 1-.215-.092zm9.215-.001a.296.296 0 0 1-.09-.215V.73a.32.32 0 0 1 .084-.227.291.291 0 0 1 .22-.092h5.775c.09 0 .164.032.225.093a.31.31 0 0 1 .092.228v1.216a.29.29 0 0 1-.092.222.316.316 0 0 1-.226.085h-3.867v1.56h3.597c.09 0 .165.03.226.092.06.06.092.137.092.227V5.25c0 .09-.03.166-.092.227a.31.31 0 0 1-.226.092h-3.597v1.595h3.964c.09 0 .165.03.226.092.06.062.092.138.092.228V8.7c0 .09-.03.164-.092.22a.305.305 0 0 1-.226.087h-5.872a.293.293 0 0 1-.215-.092m12.057-1.75c.514 0 .893-.123 1.138-.368.244-.246.375-.64.39-1.18.017-.236.025-.543.025-.92 0-.376-.008-.68-.024-.91-.016-.523-.157-.91-.422-1.16-.265-.25-.655-.374-1.168-.374H58.36v4.912h1.225zm-3.432 1.75a.298.298 0 0 1-.092-.215V.73c0-.09.03-.165.087-.227a.291.291 0 0 1 .22-.092h3.218c1.207 0 2.145.29 2.814.867.667.577 1.018 1.406 1.05 2.487.01.237.013.553.013.945 0 .392-.004.703-.012.932-.08 2.244-1.35 3.365-3.804 3.365h-3.28a.29.29 0 0 1-.213-.092zM73.2 7.35c.32 0 .566-.093.74-.277a.946.946 0 0 0 .264-.682.95.95 0 0 0-.27-.692c-.178-.184-.423-.276-.733-.276h-1.638V7.35h1.64zm-.11-3.537c.302 0 .535-.082.698-.246.163-.163.245-.376.245-.64 0-.252-.08-.46-.24-.618-.158-.16-.392-.24-.702-.24h-1.528v1.743h1.53zm-3.737 5.102a.296.296 0 0 1-.09-.215V.73a.32.32 0 0 1 .084-.227.291.291 0 0 1 .22-.092h3.78c1.036 0 1.807.214 2.313.64.506.426.76 1.03.76 1.817 0 .393-.105.733-.313 1.02a2.03 2.03 0 0 1-.692.626c.335.147.616.39.845.73.228.34.342.723.342 1.148 0 .828-.27 1.47-.814 1.93-.542.458-1.32.687-2.33.687h-3.89a.293.293 0 0 1-.215-.092zm11.435 0a.296.296 0 0 1-.09-.215V6.085L77.87.805a.269.269 0 0 1-.036-.136.25.25 0 0 1 .08-.18.245.245 0 0 1 .177-.08h1.616a.44.44 0 0 1 .28.087.56.56 0 0 1 .16.184l1.7 3.084 1.7-3.083a.595.595 0 0 1 .16-.183.447.447 0 0 1 .282-.086h1.615a.25.25 0 0 1 .177.08c.053.055.08.114.08.18a.262.262 0 0 1-.037.134l-2.826 5.28V8.7c0 .09-.03.164-.092.22a.307.307 0 0 1-.226.087h-1.677a.293.293 0 0 1-.215-.092M92.3 8.89a.464.464 0 0 1-.152-.288l-1.31-7.86a.166.166 0 0 1-.012-.073c0-.066.027-.126.08-.18a.25.25 0 0 1 .177-.08h1.603c.236 0 .367.096.39.284l.748 4.642.844-2.69c.065-.22.2-.33.404-.33h.917c.203 0 .337.11.403.33l.844 2.677.76-4.63c.015-.097.052-.17.11-.214.056-.046.145-.07.268-.07h1.603c.073 0 .134.028.183.08.05.054.074.114.074.18v.073l-1.31 7.86a.444.444 0 0 1-.158.287.486.486 0 0 1-.33.117H97.2a.439.439 0 0 1-.452-.32l-1.21-3.402-1.213 3.402a.552.552 0 0 1-.16.22.431.431 0 0 1-.305.1h-1.223c-.14 0-.25-.04-.336-.118m9.955.028a.296.296 0 0 1-.09-.215V.718a.304.304 0 0 1 .305-.307h1.75c.09 0 .163.03.22.087a.3.3 0 0 1 .086.22V8.7a.31.31 0 0 1-.086.215.284.284 0 0 1-.22.092h-1.75a.294.294 0 0 1-.214-.092m4.751 0a.298.298 0 0 1-.092-.215V.73c0-.09.03-.165.086-.227a.291.291 0 0 1 .22-.092h1.64c.09 0 .163.032.22.093a.324.324 0 0 1 .085.228V3.41l2.166-2.75c.09-.165.25-.247.477-.247h1.872a.25.25 0 0 1 .177.08c.052.055.08.114.08.18 0 .065-.018.114-.05.147l-2.85 3.708 3.082 4.077c.033.033.05.082.05.147a.246.246 0 0 1-.08.177.257.257 0 0 1-.19.08h-1.92a.578.578 0 0 1-.32-.08.517.517 0 0 1-.17-.165l-2.325-2.997V8.7a.305.305 0 0 1-.085.215.284.284 0 0 1-.22.092h-1.64a.293.293 0 0 1-.214-.092m9.037 0a.298.298 0 0 1-.092-.215V.718c0-.09.03-.163.092-.22a.3.3 0 0 1 .214-.087h1.75c.09 0 .163.03.22.087a.3.3 0 0 1 .086.22V8.7a.31.31 0 0 1-.086.215.284.284 0 0 1-.22.092h-1.75a.293.293 0 0 1-.214-.092m7.276-3.211h2.176l-1.09-3.132-1.087 3.132zm-3.14 3.223a.25.25 0 0 1-.08-.178c0-.05.005-.087.013-.11l2.85-7.872c.082-.238.246-.357.49-.357h1.91c.244 0 .406.12.488.358l2.852 7.87a.384.384 0 0 1 .012.11.25.25 0 0 1-.08.18.246.246 0 0 1-.177.08h-1.59a.424.424 0 0 1-.416-.27l-.44-1.192h-3.205l-.44 1.19a.425.425 0 0 1-.417.27h-1.59a.238.238 0 0 1-.177-.08z" fill="#002A32" fill-rule="evenodd"> '); } } );