User:Lleumas/common.js

// ==UserScript== // @name         Unscrew the new Fandom Minecraft wiki // @namespace    http://userstyles.org // @description	 They really screwed up this time. This removes the sidebar, banner ads, all the images at the bottom of the page, the floating header, and it also makes the page wider. // @author       lordpipe // @homepage     https://userstyles.org/styles/207550 // @include      http://minecraft.fandom.com/* // @include      https://minecraft.fandom.com/* // @include      http://*.minecraft.fandom.com/* // @include      https://*.minecraft.fandom.com/* // @run-at       document-start // @version      0.20210706093602 // ==/UserScript== (function {var css = [	"body {",	"   font-family: \"Noto Sans\", \"Rubik\", \"Liberation Sans\", sans-serif !important;",	"  }",	"",	"  .resizable-container {",	"    max-width: 999999px;",	"  }",	"",	"  .main-container {",	"    width: 100%;",	"    margin-left: 0px;",	"  }",	"",	"  .wds-global-footer,",	"  #mixed-content-footer,",	"  #ds_cpp_inner,",	"  #WikiaBar,",	"  .global-navigation,",	"  .fandom-sticky-header,",	"  .page__right-rail,",	"  .wds-global-footer,",	"  .gpt-ad,",	"  #ds_cpp_inner,",	"  .ds_im,",	"  .ds_cpp",	"  {",	"    display: none;",	"  }" ].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); } } });