A bookmarklet is a small JavaScript program stored as a browser bookmark that, when clicked, performs actions such as changing the appearance of the current page, searching for selected text, extracting data from a table, etc. Bookmarklet Maker is the simplest tool available to create or customize bookmarklets.
Your code stays private: it is processed locally in your browser and never sent to a server.const style = document.documentElement.style; if (/invert/.test(style.filter)) { style.filter = ''; } else { style.filter = 'invert(0.9)'; }