Allegro.cc - Online Community

Allegro.cc Forums » Off-Topic Ordeals » Using data URL's is bad, right?

This thread is locked; no one can reply to it. rss feed Print
 1   2 
Using data URL's is bad, right?
BAF
Member #2,981
December 2002
avatar

I forgot the 'base64,' part. :P It took me a few minutes to figure it out too, and lots of copying and pasting and re-encoding it.

[edit] Wow! I spent about an hour and a half doing that. :o

kentl
Member #2,905
November 2002

It's fun indeed. Trying a small [url data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pg0K
PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRw
Oi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIg0KIHZlcnNpb249IjEuMCIgd2lkdGg9IjUyMCIgaGVp
Z2h0PSI1MjAiPg0KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4NCjwhW0NEQVRBWw0KICBwYXRoIHsN
CiAgICBmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MXB4O3N0cm9rZS1s
aW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxDQogIH0NCl1dPg0KPC9zdHlsZT4NCjxkZWZz
Pg0KICA8bGluZWFyR3JhZGllbnQgaWQ9ImRrIj4NCiAgICA8c3RvcCBzdHlsZT0ic3RvcC1jb2xv
cjpibGFjaztzdG9wLW9wYWNpdHk6MSIgb2Zmc2V0PSIwIi8+DQogICAgPHN0b3Agc3R5bGU9InN0
b3AtY29sb3I6YmxhY2s7c3RvcC1vcGFjaXR5OjAiIG9mZnNldD0iMSIvPg0KICA8L2xpbmVhckdy
YWRpZW50Pg0KICA8bGluZWFyR3JhZGllbnQgaWQ9Imx0Ij4NCiAgICA8c3RvcCBzdHlsZT0ic3Rv
cC1jb2xvcjojZmZlNjgxO3N0b3Atb3BhY2l0eToxIiBvZmZzZXQ9IjAiLz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IgeD0iMjAwIj4hPC90ZXh0Pg0KPHBh
dGggc3R5bGU9ImZpbGw6dXJsKCN0bCkiIGQ9Ik0gMjYwLDEyLjcgTCAyNjAsNzUgTCA3NSwyNjAg
TCAxMi43LDI2MCBMIDI2MCwxMi43IHoiLz4NCjxwYXRoIHN0eWxlPSJmaWxsOnVybCgjYmwpIiBk
PSJNIDI2MCw1MDcuMyBMIDI2MCw0NDUgTCA3NSwyNjAgTCAxMi43LDI2MCBMIDI2MCw1MDcuMyB6
Ii8+DQo8cGF0aCBzdHlsZT0iZmlsbDp1cmwoI2JyKSIgZD0iTSAyNjAsNTA3LjMgTCAyNjAsNDQ1
IEwgNDQ1LDI2MCBMIDUwNy4zLDI2MCBMIDI2MCw1MDcuMyB6Ii8+DQo8cGF0aCBzdHlsZT0iZmls
bDp1cmwoI3RyKSIgZD0iTSAyNjAsMTIuNyBMIDI2MCw3NSBMIDQ0NSwyNjAgTCA1MDcuMywyNjAg
TCAyNjAsMTIuNyB6Ii8+DQo8L3N2Zz4=]SVG image.[/url]

BAF
Member #2,981
December 2002
avatar

Kent - you have to get more creative and top my post. ;)

CGamesPlay
Member #2,559
July 2002
avatar

I made a wiki.

I win!

[append]
Original source attached.

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>

LennyLen
Member #5,313
December 2004
avatar

Quote:

I made a wiki.

All I get is a grey square with "Loading..." written next to it

BAF
Member #2,981
December 2002
avatar

Nice, CGames.

Lenny.. what browser are you running?

LennyLen
Member #5,313
December 2004
avatar

It doesn't seem to like Opera. The original source doesn't work either. It worked fine with both in FF.

CGamesPlay
Member #2,559
July 2002
avatar

Quote:

It doesn't seem to like Opera. The original source doesn't work either. It worked fine with both in FF.

My first guess would be the construct at the end of the file, that looks like this:

</html>
<div id="startInfo">all of the actual page data.</div>

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>

BAF
Member #2,981
December 2002
avatar

Whee, now I can host my website on tinyurl. The only downside is you have to scroll down and hit proceed to this site. The normal tinyURL link doesn't redirect in a way that (at least Firefox) works with data:.

http://preview.tinyurl.com/3xndtc

LennyLen
Member #5,313
December 2004
avatar

BAF
Member #2,981
December 2002
avatar

Interesting. Must just be a bug in Firefox's handeling of location: headers. That's awesome. ;D

LennyLen
Member #5,313
December 2004
avatar

Quote:

Interesting. Must just be a bug in Firefox's handeling of location: headers. That's awesome.

It doesn't work with Internet Exploiter either.

TeamTerradactyl
Member #7,733
September 2006
avatar

grin

I'm definitely bookmarking this thread... ;D

Billybob
Member #3,136
January 2003

:o There are so many things wrong with doing this, and yet it's so awesome.

kentl
Member #2,905
November 2002

BAF said:

Kent - you have to get more creative and top my post. ;)

I'm afraid that's about as creatuve as I get. ;) My first idea were to embed a batch file with the line <tt>dir /s c:</tt> in it. But I couldn't find a good MIME type. It should not be possible to do that anyway as it's bad for security. :)

CGamesPlay said:

I made a wiki.

That's crazy. ;D You store the Wiki in a cookie or remotely, right? I can't see how you could store it in the forum.

BAF said:

Whee, now I can host my website on tinyurl.

So the redirect works. Guess I'll be using TinyURL as my personal file storage now. ;)

BAF
Member #2,981
December 2002
avatar

Quote:

You store the Wiki in a cookie right or remotely right? I can't see how you could store it in the forum.

Right in the data URL. When you click save changes, the data URL changes. ;D

CGamesPlay
Member #2,559
July 2002
avatar

Quote:

The link is actually a link to an entirely new site that is a copy of the current one, so keep that in mind.

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>

Jonny Cook
Member #4,055
November 2003

It's an entirly new medium for goatse... :o

The face of a child can say it all, especially the mouth part of the face.

 1   2 


Go to: