mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-16 14:28:33 +02:00
* Replace var with let in examples store-collected-images/webextension-plain/deps/uuidv4.js * Reverted third–party code
Dynamic theme
What it does
Checks the users time and then flips between two different themes. A "moon theme" for after 8pm and before 8am and a "sun theme" the rest of the time.
To flip themes you can change the system time.
What it shows
How to use the dynamic theme API and the alarm API.
Images are under creative commons 2.0: https://creativecommons.org/licenses/by/2.0/ and are: