SmokeyMcBeard/hydra.js

// ==UserScript== // @name         Gamepedia Uncluttered (+ a dark theme) // @namespace    http://userstyles.org // @description	 A solid attempt at making Gamepedia Wikis a much more clean, information driven experience. There's also an optional dark theme which only theme's the main content section of each wiki. // @author       CheatFreak47 // @homepage     https://userstyles.org/styles/101970 // @include      http://gamepedia.com/* // @include      https://gamepedia.com/* // @include      http://*.gamepedia.com/* // @include      https://*.gamepedia.com/* // @run-at       document-start // @version      0.20180118224713 // ==/UserScript== (function {var css = [	"/*make the netbar not annoying*/",	"html body {",	"	margin-top: 0!important;",	"}",	"#netbar {",	"	top: 0px!important;",	"	background: transparent!important;",	"	border-bottom: 0px!important;",	"}",	".netbar-right {",	"	background: #000;",	"}",	"",	"/*remove gamepedia brand and some netbar stuff*/",	".netbar-left,",	"#OfficialWiki,",	"#footer,",	"div[id^=\"p-Portals\"],",	"div[id^=\"p-Gamepedia\"] {",	"	display: none;",	"}",	".netbar-box.left {",	"	display: none!important;",	"}",	"",	"/*fixes the massive space left behind by removing the footer*/",	"html body #global-wrapper #footer-push {",	"	height: 50px;",	"}",	"",	"/*removes annoying follows-u-sidebar ad*/",	"#content #siderail {",	"	display: none !important;",	"}",	"#global-wrapper.with-siderail #content #bodyContent {",	"	width: 100%;",	"}",	"",	"/*tries to remove ad rails for those without blockers*/",	"#content div#atflb,", "#content div#btflb {", "	display: none !important;", "}",	"/*optional dark theme*/", "#content img {", "	background: transparent !important;", "	-webkit-filter: drop-shadow(0px 0px 2px rgba(255,255,255,1));", "	-moz-filter: drop-shadow(0px 0px 2px rgba(255,255,255,1));", "	filter: drop-shadow(0px 0px 2px rgba(255,255,255,1));", "}",	"#content *, div#content {", "   background: #262626 !important;", "   border-color: #585858 !important;", "   border-width: 2px !important;", "   color: #C2C2C2 !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); } } });