10 oct. 2018
danielbahl
Thank you for uploading this awesome Shortcut, @dlo 👍
Dark Mode.
First release
Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.
#include 'actions/web'
#define color darkgray
#define glyph textSymbol
runJavaScriptOnWebpage("var style = document.createElement(\"style\");\nstyle.type = \"text/css\";\nvar head = document.head;\nhead.appendChild(style);\n\nstyle.sheet.insertRule(\"* { color: #aaa !important; background-color: #333 !important; border-color: currentColor !important; }\");\n\ncompletion(true);")
Thank you for uploading this awesome Shortcut, @dlo 👍