dark-mode-clap-extension
dark-mode-clap-extension copied to clipboard
Chrome extension to toggle dark mode on Netlify by clapping hands 👏
Dark mode clap extension for Netlify 👏
Experiment to toggle Netlify's dark mode by clapping your hands.
This Chrome extension uses TensorFlow.js to recognise the sound of clapping hands, and toggle the dark mode on/off.
If you'd like to know more about this experiment, check out the blog post!
Install
- Clone the repo.
- Run
yarn install
to install the dependencies. - Run
yarn build
to generate thedist
folder. - Visit
chrome://extensions
in your browser and make sure developer mode is toggled on. - Click on "Load unpacked" and select the
dist
folder generated. - Visit
https://app.netlify.com
and clap your hands to toggle dark mode.
The first time you use the extension, you will probably be asked for permission to use the browser's microphone, so it might take a few seconds.