3 ms·
Having written two apps that do this, I can confirm that it is an amazing technique, and criminally underutilized! My projects store and render entire pages fro
by jstrieb 5y ago
Having written two apps that do this, I can confirm that it is an amazing technique, and criminally underutilized! My projects store and render entire pages from the URL and encrypt URLs (respectively):
https://github.com/jstrieb/urlpages https://github.com/jstrieb/urlpages
https://github.com/jstrieb/link-lock https://github.com/jstrieb/link-lock
- breck 5y agoLove it! Have you thought about having a non-obfuscated pretty version? In addition to this: https://jstrieb.github.io/urlpages/editor/#eyJjc3MiOiJ3aG9tIiwianMiOiJkb2N1bWVudC53cml0ZShcInRoaXMgd2FzIHdycml0ZW4gYnkgamF2YXNjcmlwdFwiKSIsImh0bWwiOiJiYW0ifQ== https://jstrieb.github.io/urlpages/editor/#eyJjc3MiOiJ3aG9tI... Offer a pretty version like: https://jstrieb.github.io/urlpages/editor/#html...html-here.~css...body;background:red;~javascript...document.write('this-was-written-by-javascript.')
- jstrieb 5y agoI appreciate the kind words! Hadn't considered it originally because I was concerned about allowable characters in the URL, and jumped to base64 instead of leaning more heavily on the actual set of acceptable characters to make it readable. In hindsight, this is a great thing to add to my next project that (inevitably) uses this technique, thanks!