5 ms·
Copy & paste this in the address bar of your browser in order to use it as inline resource (it's data URI format): data:text/html,%20<x%20id=e><script>for(i=
by izietto 13y ago
Copy & paste this in the address bar of your browser in order to use it as inline resource (it's data URI format):
data:text/html,%20<x%20id=e><script>for(i=4;i--;)e.innerHTML+=(i?'<textarea%20id=t'+i:'<iframe')+'%20style=width:49%;height:48%%20oninput=\'e.lastChild.src="data:text/html;base64,"+btoa(t3[v="value"]+"<script>"+t1[v]+"<\/script><style>"+t2[v])\'>'</script>
Taken from this: https://coderwall.com/p/lhsrcq https://coderwall.com/p/lhsrcq
- xem 13y agoThanks for mentioning this! I also thought of this approach this morning, but didn't mention it because I thought people would just add the editor in their bookmarks.
- kolodny 13y agoI can do one better data:text/html,%20<x%20id=e><script>d=['','//js','/*css*/','<!--HTML-->'];for(i=4;i--;)e.innerHTML+=(i?'<textarea%20id=t'+i:'<iframe')+'%20style=width:49%;height:48%%20oninput=\'e.lastChild.src="data:text/html;base64,"+btoa(t3[v="value"]+"<script>"+t1[v]+"<\/script><style>"+t2[v])\'>'+d[i]+'\n'</script>
- croddin 13y agoI made one that can let you visit the page in a data uri, and can edit itself awhile ago. I just put it on github. https://news.ycombinator.com/item?id=6862837 https://news.ycombinator.com/item?id=6862837
- xem 13y agoThat's very nice too!
- subzey 13y agoLeading %20 is redundant here.