🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

Universal Dark Theme Maker

Simple Dark Theme style for any website which you can configure per-site

Você precisará instalar uma extensão como Tampermonkey, Greasemonkey ou Violentmonkey para instalar este script.

You will need to install an extension such as Tampermonkey to install this script.

Você precisará instalar uma extensão como Tampermonkey ou Violentmonkey para instalar este script.

Você precisará instalar uma extensão como Tampermonkey ou Userscripts para instalar este script.

Você precisará instalar uma extensão como o Tampermonkey para instalar este script.

Você precisará instalar um gerenciador de scripts de usuário para instalar este script.

(Eu já tenho um gerenciador de scripts de usuário, me deixe instalá-lo!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

Você precisará instalar uma extensão como o Stylus para instalar este estilo.

Você precisará instalar uma extensão como o Stylus para instalar este estilo.

Você precisará instalar uma extensão como o Stylus para instalar este estilo.

Você precisará instalar um gerenciador de estilos de usuário para instalar este estilo.

Você precisará instalar um gerenciador de estilos de usuário para instalar este estilo.

Você precisará instalar um gerenciador de estilos de usuário para instalar este estilo.

(Eu já possuo um gerenciador de estilos de usuário, me deixar fazer a instalação!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

Autor
Owyn
Instalações hoje
0
Total de instalações
4.622
Avaliações
9 0 0
Versão
1.41
Criado
03/03/2020
Atualizado
07/03/2025
Tamanho
11,3 KB
Compatibilidade
Compatível com Firefox Compatível com Chrome
Licença
N/A
Aplicável a
Todos os sites

Universal Dark Theme Maker

Browser userscript (extension) to apply a simple Dark Theme style for any website which you can configure per-site.


Or a developer tool to create dark themes for websites using custom css and js in per-site script settings.

One click to turn one dark theme style for a website - (hotkey `T` while menu is open)




Configuration (per-site & global for colors)




Supported browsers:



Supported userscript managers:



How to stop flickering:

(sometimes it happens when the site loads in white and then it lags and then the script turns it dark)
that is because userscripts are loaded in "lazy mode" asynchroniously by default, to guarantee that they are loaded exactly when expected - go to TamperMonkey's dashboard -> settings -> Content Script API: dynamic







Important Notes:

Userscript works well on simplemistic website designs with little color gradients and lack of shades used, because it makes all backgrounds into one background color and all text colors into one text color.

Moreover not all website designs are competently done and might (and likely would) contain broken elements which would require hammering them out with your CSS (web style programming) knowledge. Or you could just look for a ready-to-use userstyle for that specific website on userstyles.org or in google with "website.com dark theme script" search and not bother.

There is no such thing as magic


However simple one-click dark theme applicator (or a handy tool to craft dark themes - I noticed I was using the same CSS dark style for quite a lot of websites and decided to make this universal one instead) would be enough in many cases.

Is some website broken ? (especially if you use high-contrast windows theme) - no problem, just one click and:


borkedunborked

how to bring back original color to an element (exclude css elements): - Click inspect element on it and



how-to-bring-back-color

see, inspected element there has `bell` class, so you just enter it as `.bell` (class "bell") into excludes list of the script config - OR \ AND - you could try enabling "keep background images" option for that website before and see if it'd unhide what you want (or even more than that so it'd look ugly :D - test yourself)

other tips

- to use just custom CSS \ JS on a site without changing any colors - just add `*` (asterix) into excludes to exclude literally everything

- to get the green dark theme you have seen on the screen above - just use those color codes shown on the screenshot above :-)

- or use a cool golden one from this old screenshot below:



Just make sure there is enough contrast between the text and background colors,
it should be at least 7:1 to read normal-sized text comfortably according to WCAG Level AAA standard, use this online checker: https://webaim.org/resources/contrastchecker/