Dark Mode Toggle

dark mode using inversion, double-hit Esc for toggle button

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

Yazar
Alistair1231
Günlük kurulumlar
0
Toplam kurulumlar
15
Değerlendirmeler
0 0 0
Versiyon
0.3.0
Oluşturulma
16.03.2025
Güncellenme
30.06.2025
Boyut
3,44 KB
Lisans
GPL-3.0
Geçerli
Tüm siteler

Dark Mode Toggle

I got frustrated with how complex and unreliable existing dark mode methods were, so I made a very simple one myself. It simply inverts the colors of the page, while keeping images and videos the same.

Double-Hit Esc to shortly display the toggle button. Dark Mode state is saved in window.localStorage.darkMode for persistence.

Style loads very early to avoid white flash.

Button:

Before:

After: