Scriptbar Snippets 🚀
Handy and easy to understand snippets to keep in your browser
toggle-design-mode.js

#Basic

Toggle design mode to edit webpage live

toggle design mode demo

((document) => { if (document.designMode.toLocaleLowerCase() === 'on') { document.designMode = 'off'; } else { document.designMode = 'on'; } })(document)
Built with ❤️ by @domnguyen and everyone on the internet 🚀