Skip to content

Instantly share code, notes, and snippets.

@DungGramer
Last active February 28, 2021 07:13
Show Gist options
  • Save DungGramer/bc23a281c0298536ff6886f6ae252517 to your computer and use it in GitHub Desktop.
Save DungGramer/bc23a281c0298536ff6886f6ae252517 to your computer and use it in GitHub Desktop.
Make browser to Text Editor
data:text/html,<html contenteditable><style>body{color:rgb(79 79 79);background:rgb(250 250 250);font-family:"Cascadia Code","Fira Code Retina","Consolas","Roboto Mono","Courier New",monospace;font-size:16px;line-height:1.688;padding:34px 16px 32px 32px;border-radius:10px;width:min(80ch, calc(100% - 64px));margin:15px auto;box-shadow:0 0px 40px rgba(0,0,0,0.13);white-space:break-spaces}body>*>*,body>*{white-space:break-spaces !important}</style></html>
javascript:(()=>{eval(document.querySelector('body').innerText)})()
javascript:new Function(document.querySelector('body').innerText)()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment