Greasy Fork is available in English.
Automatically and resiliently enables dark mode on Google, handling multiple UI versions and DOM changes.
Tired of Google forgetting your dark mode preference? This script automatically and reliably forces Google's dark theme on every visit.
Features:
Automatic: No clicks needed. It finds and activates the dark mode toggle for you.
Resilient: Actively watches for the theme toggle to appear, making it work even when Google changes its layout or on slow connections.
Fast: Runs at the earliest possible moment to prevent the jarring "flash of white" when a page loads.
Efficient: Checks if dark mode is already on and stops running to save resources.
Works on the Google homepage, search results, and settings pages. Set it and forget it!