User:Sozzer1/global.js

// ==UserScript== // @name         New Fandom.com: Remove the left global navigation // @namespace    http://userstyles.org // @description	 This style removes the big left navigation bar displayed on the new Fandom design called FandomDesktop, leaving more space for the content and less unrelated distractions. It does leave the Notifications and Account buttons there, that are now floating on the bottom left. // @author       nclm // @homepage     https://userstyles.org/styles/206710 // @include      http://fandom.com/* // @include      https://fandom.com/* // @include      http://*.fandom.com/* // @include      https://*.fandom.com/* // @run-at       document-start // @version      0.20210624192226 // ==/UserScript== (function {var css = [	".global-navigation {",	"	/* background-color: #002a32; */",	"	/* box-shadow: 0 3px 12px 0 rgba(0,0,0,.3); */",	"	background-color: transparent !important;",	"	box-shadow: none !important;",	"	pointer-events: none !important;",	"}",	"",	".global-navigation__top {",	"	visibility: hidden !important;",	"	pointer-events: none !important;",	"}",	"",	".global-navigation__bottom {",	"	/* background-color: #002a32; */",	"	background-color: transparent !important;",	"	pointer-events: initial !important;",	"}",	"",	".fandom-sticky-header {",	"	/* left: 66px; */",	"	left: 0 !important;",	"}",	"",	".main-container {",	"	/* margin-left: 66px; */",	"	/* width: calc(100% - 66px); */",	"	margin-left: 0 !important;",	"	width: 100% !important;",	"}" ].join("\n"); if (typeof GM_addStyle != "undefined") {	GM_addStyle(css); } else if (typeof PRO_addStyle != "undefined") {	PRO_addStyle(css); } else if (typeof addStyle != "undefined") { addStyle(css); } else { var node = document.createElement("style"); node.type = "text/css"; node.appendChild(document.createTextNode(css)); var heads = document.getElementsByTagName("head"); if (heads.length > 0) { heads[0].appendChild(node); } else { // no head yet, stick it whereever document.documentElement.appendChild(node); } } });