I remember myself running the same script in my Chrome Console. Thanks to Chrome Dev Tool Snippets, now you can save and run your favorite and frequently used code snippets on any sites in Chrome. The good thing is that these snippets are aware of the Javascript Context of the page.
For this article, I wrote a script that will bring Dark Theme to Medium web.
Javascript Snippet for Medium Dark Theme
First, we add the above snippet in Chrome and see if it is working.
Open Dev Tools
2. Click on the **Sources **Tab. You can see a list of options on the left like Page, Filesystem, Overrides, etc.
Switch to Sources Tab
3. Click the **» **button and select Snippets.
Select Snippets Option
#javascript #web #dark-mode #devtools #chrome #programming