Created
May 19, 2015 16:58
-
-
Save scraperdragon/7e2a4bd4f548f7c9659a to your computer and use it in GitHub Desktop.
writtenkitten.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script type="text/javascript" src="https://www.dropbox.com/static/api/2/dropins.js" id="dropboxjs" data-app-key="w7qbnscwwlxgtz0"></script> | |
<script type="text/javascript" src="https://cdn.rawgit.com/Nijikokun/5192472/raw/4c80b2c2688841ffb086f8c2b3f57520b0bd817d/base64-utf8.module.js"></script> | |
</head> | |
<body> | |
<a href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA | |
AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO | |
9TXL0Y4OHwAAAABJRU5ErkJggg==" data-filename="reddot.png" alt="Red dot" id=save class="dropbox-saver" onclick='save.href="data:text/text;base64,"+base64.encode(foo.value);save.dataset.filename = "mytext"'></a> | |
<input type='text' value='foo' id='foo'></input> | |
MANY PROTOTYPE, MUCH INSECURE, SO BUG. WOW.<br> | |
<ul> | |
<li> fix use of rawgit | |
<li> fix being able to save precisely once | |
<li> check limitations of data:url | |
<li> check text/text mimetype | |
<li> don't save random red dot | |
<li> don't use that key (won't work on most domains) | |
<li> needs Infinity% more cats | |
</ul> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment