Skip to content

Instantly share code, notes, and snippets.

@corona6
Last active May 31, 2020 11:34
Show Gist options
  • Save corona6/1ded2c08fcde4bffc8cb1badc6888b13 to your computer and use it in GitHub Desktop.
Save corona6/1ded2c08fcde4bffc8cb1badc6888b13 to your computer and use it in GitHub Desktop.
my bookmarklets

Bookmarklet

save

javascript:void function%28%29%7bhref%3dlocation%2ehref%3bvar a%3ddocument%2ecreateElement%28"a"%29%3ba%2ehref%3dhref%3bvar a%3dnew Blob%28%5b%27<base href%3d"%27%2ba%2eprotocol%2b"%2f%2f"%2ba%2ehostname%2b%27">%27%2bdocument%2edocumentElement%2eouterHTML%2b"> "%2blocation%2ehref%5d%29%2ca%3d%28window%2eURL%7c%7cwindow%2ewebkitURL%29%2ecreateObjectURL%28a%29%2cb%3ddocument%2ecreateElement%28"a"%29%3bb%2edownload%3ddocument%2etitle%2b"%2ehtml"%3bb%2ehref%3da%3bb%2eclick%28%29%7d%28%29%3b

copy url as markdown

javascript:prompt("","["+document.title+"]("+document.URL+")")();

memo

data:text/html, <html contenteditable><title>memo</title><script type="text/javascript">window.onbeforeunload = function(e) { e.returnValue = "?"; }</script>

memo2

data:text/html, <html contenteditable><title>memo</title><style>body {color: #333; width: 960px; margin: 0 auto; display: block; height: 100%; font-size: 36px; padding: 20px;}</style><script type="text/javascript">window.onbeforeunload = function(e) { e.returnValue = "?"; }</script>

memo3

data:text/html, <html contenteditable><title>memo</title><style>* {height: 100%; font-size: 60px;}</style><script type="text/javascript">window.onbeforeunload = function(e) { e.returnValue = "?"; }</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment