User:Archanil/vector-2022.js
Note: After publishing, 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 Archwiki colourful dark // @namespace http://userstyles.org // @description A dark theme for the archwiki. Theme is adapted from "Another dark Arch Linux theme" by kiwii, just with more colour // @author voovs // @homepage https://userstyles.org/styles/198102 // @run-at document-start // @version 0.20210222061923 // ==/UserScript== (function() {var css = [ "@namespace url(http://www.w3.org/1999/xhtml);", "body, #content, table {", " background-color: #201f1f !important;", " color: #d4d2cf !important;", " }", " h1, h2, h3, h4, h5 {", " color: #ff6e6e !important;", " }", " pre, code, .pBody, #p-cactions li a {", " background-color: #2b2a2a !important;", " border: none !important;", " color: #d4d2cf !important;", " }", " div, #p-personal .portlet, #p-personal .pBody, #p-cactions .pBody {", " background-color: #201f1f !important;", " color: #d4d2cf !important;", " }", " input {", " background-color: #2b2a2a !important;", " color: #d4d2cf !important;", " }", " table.results th {", " background-color: #2b2a2a !important;", " }", " table.results tr.odd {", " background-color: #373636 !important;", " }", " table.results tr.even {", " background-color: #2b2a2a !important;", " }", " .pun .punwrap, .pun .blockpost h2 {", " border: none;", " background: none;", " border-bottom: 1px dotted #BBB;", " border-top: 1px dotted #BBB;", " }", " #brdmain, .pun .blockpost .postbody, .pun .blockpost .postfoot, .pun .blockpost, .pun .quotebox, .pun .codebox, .pun .pagelink a, .pun .pagelink * {", " border-style: none !important;", " }", " .pun .quotebox, pre, code, .pun .quotebox blockquote div {", " background-color: #2B2A2A !important;", " }", " #brdmenu a, #brdmenu a:link, #brdmenu a:visited, .pun .blocktable * {", " background-color: #201f1f !important;", " border: none !important;", " }", " .pun .blocktable tr {", " border-top: 1px dotted #BBB !important;", " }", " #content a:not(.new), #mw-navigation li:not(.new) a:not(.new), #mw-panel li:not(.new) a:not(.new), #column-one li:not(.new) a:not(.new), #footer a:not(.new) {", " color: #e6ab00 !important;", " }", "/* i really want this to be global */" ].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); } } })();