Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » How do you get a data:text link?
- PoIygon
-
Scratcher
1000+ posts
How do you get a data:text link?
I saw that random purple guy with a white s share a data:text link on advanced way to rickroll people. How do I do that?
- CST1229
-
Scratcher
1000+ posts
How do you get a data:text link?
Like this post? Just take your HTML file, convert it to base64 and append "data:text/html;base64," to the start of it i think. The forum blocks data urls from being clicked i think too.
[offtopic]yess quotation mark bypass[/offtopic]
[offtopic]yess quotation mark bypass[/offtopic]
- Chiroyce
-
Scratcher
1000+ posts
How do you get a data:text link?
Yeah, but it doesn't seem to work, My browser / operating system: Windows 7, Firefox 88.0, No Flash version detected
- CST1229
-
Scratcher
1000+ posts
How do you get a data:text link?
Yeah, but it doesn't seem to work,Found out another reason for why it doesn't work, the forums seems to mess with punctuation, commas and stuff in URLs and turn them into percent codes. Which is not good if you actually want to put a comma into the path of a URL instead of a percent code representing a comma.
Last edited by CST1229 (April 28, 2021 11:57:24)
- ninjaMAR
-
Scratcher
1000+ posts
How do you get a data:text link?
A data url is a file stored in the url
You can do text and images and probobaly more
Example
HTML
Image
You can do text and images and probobaly more
Example
data:MEDIATYPE,CONTENT
data:text/html,<h1>Hello</h1>
data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==
Last edited by ninjaMAR (April 29, 2021 12:52:04)
- Socialix
-
Scratcher
1000+ posts
How do you get a data:text link?
OMG! IM MENTIONED IN AT! YAYYYYYY!
anyway, do this
the media type can be text, or if you want it to be html, type in “text/html” there are thousands of other media types, you can find a list of media types here
and then write the normal decoded data
and then use some base64 converter to convert to base64, i personally use this one i found from DDG, but here is some ios shortcut
and then paste the encoded data to “DATAHERE” afaik
edit: ninja'd due to making the ios shortcut aaaaaaaaa why did i do that
anyway, do this
data:MEDIATYPE;base64,DATAHERE
the media type can be text, or if you want it to be html, type in “text/html” there are thousands of other media types, you can find a list of media types here
and then write the normal decoded data
and then use some base64 converter to convert to base64, i personally use this one i found from DDG, but here is some ios shortcut
Ask for Input, no modify needed
Base64 Encode, "encode" with the thing gonna be encoded is "Provided Input" you can choose from magic variables
Ask for Input, set default answer to "Base64 Encoded" you can choose from magic variables, so you can copy the text
edit: ninja'd due to making the ios shortcut aaaaaaaaa why did i do that
Last edited by Socialix (April 28, 2021 12:46:10)
- Chiroyce
-
Scratcher
1000+ posts
How do you get a data:text link?
Thanks for explaining @ninjaMAR! 

nice to see a fellow iOS Shortcuts developer! how pro are you? im soo pro that i made a kid's screen monitoring system, with commands that can be sent by mail or iMessage.

and then use some base64 converter to convert to base64I use the iPadOS shortcuts app

nice to see a fellow iOS Shortcuts developer! how pro are you? im soo pro that i made a kid's screen monitoring system, with commands that can be sent by mail or iMessage.
Last edited by Chiroyce (April 28, 2021 12:48:11)
- Socialix
-
Scratcher
1000+ posts
How do you get a data:text link?
haha i will save the shortcut i made and showed to the broke android usersand then use some base64 converter to convert to base64I use the iPadOS shortcuts app

idevice users are underrated
- Chiroyce
-
Scratcher
1000+ posts
How do you get a data:text link?
haha i will save the shortcut i made and showed to the broke android userssoo true. I've had like 8 years of experience with iOS, 2 years experience with iPadOS, and 3 years experience with macOS. So basically I'm an OG Apple guy.
idevice users are underrated
- gosoccerboy5
-
Scratcher
1000+ posts
How do you get a data:text link?
You don't even need base64.
data:text/html,<html><head><title>html page</title></head><body>this is an html page with data:text without base64</body></html>
- Socialix
-
Scratcher
1000+ posts
How do you get a data:text link?
I know, but it's recommended to use it in data: links for some odd reason.snipYou don't always need base64
- Maximouse
-
Scratcher
1000+ posts
How do you get a data:text link?
Without base64, characters like : and # need to be URL encoded.I know, but it's recommended to use it in data: links for some odd reason.snipYou don't always need base64
Last edited by Maximouse (April 28, 2021 15:53:03)
- saleboat1
-
Scratcher
9 posts
How do you get a data:text link?
it works! data:text;base64,aGFoYSBmdW5ueSBkYXRhdGV4dCB1cmwgZ28gYnJycnJycnJycnJycnJycnI=
also st that are here. i want this open.
also st that are here. i want this open.
Last edited by saleboat1 (April 29, 2021 05:07:51)
- Sheep_maker
-
Scratcher
1000+ posts
How do you get a data:text link?
data URLs are also very useful for getting special characters by name. I have data:text/html;charset=UTF-8,<body contenteditable> bookmarked, so I only have to type “da” and Chrome's omnibox can autocomplete the rest for me. Then I can add something like π
and it'll come up with a page with the π character ready for me to copy
data:text/html;charset=UTF-8,<body contenteditable>π
- PoIygon
-
Scratcher
1000+ posts
How do you get a data:text link?
the page is horrible if you convert it into a data html
- Socialix
-
Scratcher
1000+ posts
How do you get a data:text link?
the page is horrible if you convert it into a data htmlIt's probably because Scratch doesn't let their main.css file to load in third-party domains (including data: and file://).
- mybearworld
-
Scratcher
1000+ posts
How do you get a data:text link?
[View post][url] tags encode text, so you have “data:image/png%3Bbase64%2C”it works! data:text;base64,aGFoYSBmdW5ueSBkYXRhdGV4dCB1cmwgZ28gYnJycnJycnJycnJycnJycnI=thats true
also st that are here. i want this open.
also i got a image in data url
- Discussion Forums
- » Advanced Topics
-
» How do you get a data:text link?









