Created
June 5, 2013 04:42
-
-
Save gaurav/5711655 to your computer and use it in GitHub Desktop.
Bookmarklet to add selection (i.e. DOI or URL) to CiteULike
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 t=window.getSelection?window.getSelection().toString():document.selection.createRange().text; window.location="http://www.citeulike.org/posturl?url="+t;})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I basically copied this off of http://arcadiamashups.blogspot.com/2009/10/get-selection-bookmarklet-pattern.html