User:Adambennett55/common.js
Jump to navigation
Jump to search
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
// ==UserScript== // @name FFXIV ConsoleGamesWiki Dark Theme // @namespace http://userstyles.org // @description An enhancement of FFXIV.consolegameswiki Zenburn theme from Dr.Meat. // @author Briaireous // @homepage https://userstyles.org/styles/211643 // @include http://ffxiv.consolegameswiki.com/* // @include https://ffxiv.consolegameswiki.com/* // @include http://*.ffxiv.consolegameswiki.com/* // @include https://*.ffxiv.consolegameswiki.com/* // @run-at document-start // @version 0.20210821183215 // ==/UserScript== (function() {var css = [ ".mw-body, body {", " background-color: #3f3f3f !important;", " color: #f0dfaf !important;", "}", "/* Headers font color */", " .mw-body h1, .mw-body h2 {", " color: #dfaf8f !important;", "}", "/* Tables */", " div#mw-head {", " background-color: #afafaf !important;", "}", "#toc, .toc, .mw-warning, .toccolours {", " border: 1px solid #888;", " background-color: #cfcfcf;", "}", ".mediawiki {", " background-color: #1d1c1c !important;", "}", "div#mw-head {", " background-color: #1d1c1c !important;", "}", "div#content {", " background-color: #3f3f3f;", "}", ".thumbinner {", " background-color: #1d1c1c !important;", " border: 1px solid #f0dfaf;", "}", ".toc {", " background-color: #1d1c1c !important;", "}", ".recipe-box {", " background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #2f2d2d), color-stop(1, #522b2b)) !important;", " border: 1px solid #f0dfaf !important;", "}", ".recipe-box .subheading, div.recipe-box .heading {", " background-color: #1d1c1c !important;", " color: #dfaf8f !important;", " border: 1px solid #f0dfaf !important;", " border-bottom: none !important;", " border-top: none !important;", "}", ".tocnumber {", " color: #f0dfaf !important;", "}", ".infobox-n {", " background-color: #1d1c1c !important;", "}", ".catlinks {", " background-color: #3f3f3f !important;", "}", ".nav > * .wrapper {", " background-color: #3f3f3f !important;", "}", "div.nav dl, div.infobox-n dl {", " margin: -5px !important;", "}", "/* i really want this to be global */", " h1, h2, h3, h4, h5, h6 {", " color: #dfaf8f !important;", "}", "table {", " background-color: #bfbfaf !important;", " color: #4f4f4f !important;", "}", "/* Hyperlinks */", " span {", " color: #dfaf8f !important;", "}", "a:link {", " color: #bc6c9c !important;", "}", "a:visited {", " color: #8c8cbc !important;", "}", "a:hover {", " color: #9c9ccc !important;", "}", "a:active {", " color: #ffd7a7 !important;", "}", "body::-webkit-scrollbar {", " width: 0.85em;", "}", "body::-webkit-scrollbar-track {", " background-color: #3f3f3f;", " box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);", "}", "body::-webkit-scrollbar-thumb {", " background-color: #856741;", " outline: 1px solid #fdb44d;", "}" ].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); } } })();