Functions
WebDev/*nix assorted functions & hacks
Search
find all
Array
-
Bash
-
Classes
-
Config
-
DateTime
-
Debug
-
dotjs
-
File
-
foooo
-
Git
-
HTML
-
Images
-
Javascript
-
Linux
-
Math
-
Misc
-
MySQL
-
OS X
-
Reading
-
Redis
-
Shell scripts
-
snippets
-
SQL
-
Strings
-
Tampermonkey
-
TextMate
-
Web
-
\(^o^)/ Fun!
-
_Misc hacks
-
_Pages
Tampermonkey
Wikipedia CSS
1
found
auth
Name:
Category: Tampermonkey
Body:
# Since Wikipedia's "Dark mode" stutters a lot on scrolling and I found changing the styles left it much smoother, here's a mostly-dark style for it in user CSS // ==UserScript== // @name Wikipedia // @namespace http://tampermonkey.net/ // @version 2025-05-12 // @description try to take over the world! // @author You // @match https://*.wikipedia.org/* // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @grant GM_addStyle // ==/UserScript== (function() { 'use strict'; GM_addStyle(` /* backgrounds dark.. */ body, .mw-page-container { background-color: #1b1b1b; color: #eee; } /* or darkish */ #vector-toc-pinned-container, #vector-page-tools-pinned-container, .vector-header-container .mw-header, .vector-header-container .vector-sticky-header, .mw-parser-output .box-Cleanup_reorganize.plainlinks.metadata.ambox.ambox-style, .mw-parser-output .box-Multiple_issues.plainlinks.metadata.ambox { background-color: #2b2b2b; } @media screen { /* this is mostly to help with specificity.. */ div.vector-sticky-pinned-container:nth-child(2)::after, .vector-sticky-pinned-container::after { background-color: #3b3b3b; height: 0; } .vector-page-toolbar-container { box-shadow: 0 1px silver; } .mw-heading, h1, h2, h3, h4, h5, h6, /* sidebar menu header things */ .vector-pinnable-element .vector-menu-heading, /* sidebar submenu header things */ .vector-toc .vector-toc-level-1-active:not(.vector-toc-list-item-active) > .vector-toc-link span { color: silver; } figure[typeof~="mw:File/Thumb"] { background-color: #2b2b2b; color: white; } .vector-menu-tabs .mw-list-item.selected a span, /* bar between content and title: active links */ .vector-toc .vector-toc-list-item-active > .vector-toc-link span { color: silver; font-weight: bold; } } /* text whiter */ .mw-heading.mw-heading2 h2, .mw-page-title-main, #footer-info li { color: #eee; } /* links linker */ a, vector-page-toolbar-container ul li a span { color: #08f !important; } `); })();
Footer