Bookmarklet: copy a link for Twitter and editors
Update 2011-09-27: Automatically remove parts of the title, add a Twitter name, add a hashtag.
Problem: You have found an interesting web page and would like to copy its link, for use with Twitter or an editor. That means you need to perform several steps: First, you copy the URL. Second, you go back to copy the title (which might be tricky to get at). Third, you construct the link from the copied pieces.
Note that Twitter provides a bookmarklet for publishing a link, but it relies on the Twitter web application which does not handle multiple accounts well. The solution shown here can be used with Twitter desktop applications.
The bookmarklet presented in this post has the following features:
Installation and usage
- Try it out: Click the link below right now, if you want to see how the bookmarklet works.
- Install: Drag this link to your bookmarks.
- Tip: use a keyword for quick access.
- Go to an interesting page.
- Optional: select text that you want to copy together with the link.
- Invoke the bookmark.
You can download the source code
- Bookmarklets: simple plugins for your browser