Created
March 13, 2014 03:43
-
-
Save bnb/9521581 to your computer and use it in GitHub Desktop.
Better working but still not functional cupcake URL share bookmarklet.
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
javascript:(function() { | |
var title = encodeURIComponent(location.title); | |
var url = encodeURIComponent(location.href); | |
location.href='http://micro.cupcake.io/'; | |
document.querySelector('textarea[name="text"]').textContent = '[' + title + ']' + '(' + url + ')'; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment