4 ms·
Upload? Come on, just load it as dataURI, bookmark it and you have offline "application" at your disposal. And as a bonus, here, have this "distributed app sto
by myfonj 8y ago
Upload? Come on, just load it as dataURI, bookmark it and you have offline "application" at your disposal. And as a bonus, here, have this "distributed app store" you can even print on paper [1].
[1] http://zxing.org/w/chart?cht=qr&chs=350x350&chld=L&choe=UTF-8&chl=data%3Atext%2Fhtml%3Bcharset%3Dutf-8%2C%3C!DOCTYPE%20html%3E%3Ctitle%3EScreen%20light%3C%2Ftitle%3E%3Chtml%20onclick%3Don%3D!on%3Bthis.style.background%3Don%253F%27white%27%3A%27black%27%3E%3Cbody%20onload%3Don%3Dtrue%3E http://zxing.org/w/chart?cht=qr&chs=350x350&chld=L&choe=UTF-...
i.e. QR-coded dataURI document
data:text/html;charset=utf-8,<!DOCTYPE html><title>Screen light</title><html onclick=on=!on;this.style.background=on%3F'white':'black'><body onload=on=true>
- jahewson 8y agoMy iPhone 6s doesn’t like this QR code, it just says “No usable data found”.
- rhizome 8y agois there a "don't try to use the data" setting, so it'll just present the plain text?
- masklinn 8y agoNope. Only setting is to not scan for qrcodes at all.
- masklinn 8y agoThe built-in QR detector is very finnicky/odd, apparently it just assumes every payload is an HTTP URL, nothing else works even remotely. Other applications work much better for that, though they may or may not recognise non-http URIs e.g. here scanbot just displays the textual content and you're on the hook for copy/pasting it wherever you need.
- myfonj 8y agoYes, I had no luck even with QR reader integrated in Nightly Android [0]. Sadly, copypasting resulting URI as plaintext is most probably the only option for modern browsers, because any other way of top level frame navigation to dataURI document is blocked. (Besides existing bookmark, that is.) I keep forgetting this, sorry for hurried "in theory it must work great" shout out. [0] https://support.mozilla.org/en-US/kb/scan-qr-codes-firefox-android https://support.mozilla.org/en-US/kb/scan-qr-codes-firefox-a...
- t0astbread 8y agoThis is great! I added some text to it to make it more "user friendly" and compressed it a bit so that it fits inside a tweet: https://mobile.twitter.com/T0astBread/status/1092204337227550723 https://mobile.twitter.com/T0astBread/status/109220433722755... data:text/html,<title>Screen Light</title><html onclick=o=!o;style.background=o%3F0:'black';style.color=o%3F0:'white'><body onload=o=1><h1>Screen Light</h1><p>Turn your screen into a light source<br>Tap to toggle<p><a href=https:/news.ycombinator.com/item?id=19069487>Source
- myfonj 8y agoYes, such "offline bookmarked dataURI applications" are great, underappreciated and ancient things. Sadly, current trend in modern browsers is to suppress them in sake of security, because in the past some crooks misused them them. Currently you cannot even link to them like you could in the past; anything other than direct navigation from bookmark or URLbar results in better case in blank screen, in worse is silently blocked. For example in the past you could redirect to them, or make datauri editor that encoded itself into another datauri, or both [1], but now you can not [2]. [0] Check out for example this HTML / SVG sketchbook: https://gist.github.com/myfonj/c8ce74bf549e19600026ce9022388df8 https://gist.github.com/myfonj/c8ce74bf549e19600026ce9022388... [1] http://tinyurl.com/selcoditor http://tinyurl.com/selcoditor (see network log) [2] 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...