5 ms·
what about data urls? No need for hosting page: data:text/html,%3Ch1%3EHello%2C%20World!%3C%2Fh1%3E
by SigmundA 7y ago
what about data urls? No need for hosting page:
data:text/html,%3Ch1%3EHello%2C%20World!%3C%2Fh1%3E
- air7 7y agoThat's what I thought he would aim for. This is actually safe from being taken down whereas op's solution needs op's website to decode the url.
- SigmundA 7y agoRight it took me a a little while to realize that its still needed a host since its talks about not needing a host and doesn't say here is the bootstrap page that needs to be hosted. data url's are truly entirely in the url with no hosting or dependencies.
- jstrieb 7y agoWhile I agree that this is technically correct, I feel it ignores the spirit of the project. Since I released it open-source, my expectation is that anyone who cares about safety from takedowns will clone and host one or more of their own. Or, for that matter, use the files offline with shared base-64 encoded URLs
- air7 7y agoIf your site goes down, all the links go broken. To use a clone I'd need to manually copy a part of a dead link and append it on the clone url. The links are actually just data stores in need of a renderer. Why not use an html file instead?
- iwalton3 7y agoChrome and Firefox don’t support top-level navigation to data urls anymore. https://blog.mozilla.org/security/2017/11/27/blocking-top-level-navigations-data-urls-firefox-59/ https://blog.mozilla.org/security/2017/11/27/blocking-top-le...
- SigmundA 7y agoInteresting I tested but in jsbin which uses a frame to navigate and it works. So if you do need to link to a data url you just need to a use an iframe.
- badrabbit 7y agoYou can't navigate a tab/window to a data: url,browsers put that restriction in place to curtail some of the abuse.
- SigmundA 7y agoIf you use a frame you can, at least in Chrome: https://jsbin.com/nokexonepe/edit?html,output https://jsbin.com/nokexonepe/edit?html,output