Skip to content

Instantly share code, notes, and snippets.

@gyf304
Last active July 31, 2025 20:35
Show Gist options
  • Select an option

  • Save gyf304/330567df0cdf6b764caef6e38d99fd32 to your computer and use it in GitHub Desktop.

Select an option

Save gyf304/330567df0cdf6b764caef6e38d99fd32 to your computer and use it in GitHub Desktop.
Dark Mode for stackoverflow websites
// ==UserScript==
// @name StackOverflow Dark Theme
// @namespace http://tampermonkey.net/
// @version 2025-07-28
// @description try to take over the world!
// @author You
// @match https://*.stackexchange.com/*
// @match https://askubuntu.com/*
// @match https://mathoverflow.net/*
// @match https://serverfault.com/*
// @match https://stackoverflow.com/*
// @match https://superuser.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=stackoverflow.com
// @grant none
// @run-at document-body
// ==/UserScript==
(function() {
'use strict';
document.body.className += " theme-dark";
document.body.style += ";background-color:#000;";
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment