Discuss Scratch
- Sheep_maker
-
Scratcher
1000+ posts
The Data:Text Topic!
How so? Non-base64 data URLs are relied upon by many websites for inline SVGs in CSS (as it's more compact), so it's unlikely that browser support for them will go any time soon.…Eh, that will break soon
- mybearworld
-
Scratcher
1000+ posts
The Data:Text Topic!
[View post]Ah, I didn't mean “soon” like that xDHow so? Non-base64 data URLs are relied upon by many websites for inline SVGs in CSS (as it's more compact), so it's unlikely that browser support for them will go any time soon.…Eh, that will break soon
I meant it like “when you continue programming it”, if you use, say, /
- Sheep_maker
-
Scratcher
1000+ posts
The Data:Text Topic!
Well, the code sample I gave uses /, and it works fine.…Ah, I didn't mean “soon” like that xD
I meant it like “when you continue programming it”, if you use, say, /
It does break if you use non-ASCII characters, which is why I usually set the character encoding to UTF-8:
data:text/html;charset=UTF-8,<style>:root { color-scheme: dark }</style><h1><a href="%23"><ruby>羊<rt>yáng</rt></ruby></a></h1><input type="text" placeholder="lol">
Among the characters that won't work are #, but that mostly occurs in CSS or URLs, and I can just insert %23 instead of using a base64 encoder whilst still maintaining general readability
Last edited by Sheep_maker (May 7, 2021 18:12:24)
- hello_smile
-
Scratcher
1000+ posts
The Data:Text Topic!
Oh, the built-in iOS IDE. I wrote the beginnings of a web-based JavaScript OS in the URL bar. Really. On iOS 12.
- Ciyob86
-
Scratcher
500+ posts
The Data:Text Topic!
I made a scratch project that automatically makes base64 encoded data url's
- hello_smile
-
Scratcher
1000+ posts
The Data:Text Topic!
I made a scratch project that automatically makes base64 encoded data url'sAutomatically? Your grammar sounds a bit off.
- DifferentDance8
-
Scratcher
1000+ posts
The Data:Text Topic!
Your grammar sounds a bit off.WARNING: That url will log you out of your Microsoft account without asking!
- PoIygon
-
Scratcher
1000+ posts
The Data:Text Topic!
Forgot this even existedYour grammar sounds a bit off.WARNING: That url will log you out of your Microsoft account without asking!
- silvxrcat
-
Scratcher
500+ posts
The Data:Text Topic!
:troll:I made a scratch project that automatically makes base64 encoded data url'sAutomatically? Your grammar sounds a bit off.
I do want to see that project though, it sounds cool!
- MagicCrayon9342
-
Scratcher
1000+ posts
The Data:Text Topic!
does it log me out or steal my password? i clicked itYour grammar sounds a bit off.WARNING: That url will log you out of your Microsoft account without asking!
- mybearworld
-
Scratcher
1000+ posts
The Data:Text Topic!
does it log me out or steal my password? i clicked itIt… couldn't be more obvious. The link literally says https://login.microsoftonline.com/auth/logout#dontask
Last edited by mybearworld (Sept. 6, 2022 04:24:30)
- ZZC12345
-
Scratcher
500+ posts
The Data:Text Topic!
Aka, log me out from Microsoft Online and don't ask me about it.does it log me out or steal my password? i clicked itIt… couldn't be more obvious. The link literally says https://login.microsoftonline.com/auth/logout#dontask
- DifferentDance8
-
Scratcher
1000+ posts
The Data:Text Topic!
I suppose it would be possible to embed a sort-of rickroll or another bait and switch using data:text, but it all get's super weird and stuff, so 









