This is a chrome extension to toggle the dark mode in web.whatsapp.com on chrome browser.
- manifest.json : Chrome extensions require a file called the manifest. It’s a simple JSON file and is read by Chrome to understand what permissions the extension requires, which pages it should load on and things like the name and icons.
- content.js : This is the javascript i want to run when this extension is enabled.
- popup.html : This is html file that contains the UI of extension popup.
- popup.js : This is the javascript file runs associated with the
popup.html.
So this extension is not on google chrome store right now (may be due to those 5$ payment). To use this locally on your chrome browser.
- download the zip archive of this repo (download here)
- Extract it.
- Go to
chrome://extensions/in your chrome browser then turn on the developer mode. - Now paste the repo folder(the one you extracted) at
chrome://extensions/and you'll see the extension enabled in your browser.
initial reference : https://blog.lateral.io/2016/04/create-chrome-extension-modify-websites-html-css/
icon credits : https://www.flaticon.com/free-icon/whatsapp_889154?term=whatsapp&page=1&position=16