Add a simple Dark Mode toggle to any site without using extensions.
You can add this code to any page using the following bookmarklet:
javascript: (function (d) { sl = d.createElement('style'), s = d.createElement('script'); sl.innerHTML = '.darkmode-layer, .darkmode-toggle { z-index: 500; }'; d.head.appendChild(sl); s.onload = function () { new Darkmode({ saveInCookies: false, label: '🌓', right: 'unset', left: '32px' }).showWidget(); }; s.src = '//cdn.jsdelivr.net/npm/[email protected]/lib/darkmode-js.min.js'; d.head.appendChild(s); })(document)