- Smart Multifunction Bookmarklet:Merge/Shorten URLs/Status
- How to Install:
- For Firefox users, just drag-n-drop above "Shorten/Merge URLs/Status" link into Bookmarks Toolbar (If Bookmarks Toolbar is not shown, enabled it by: Click on "View" Menu -> Toolbars -> Click to check "Bookmarks Toolbar").
- For Internet Explorer users, right click above "Shorten/Merge URLs/Status" link, select "Add to Favorits..."
- How to use:
- On twitter status/home page, enter your status messages and URLs, then click on the installed bookmark "Shorten/Merge URLs/Status". This will invoke processing your status message, replacing each group of adjacent URLs with just one short jarred URL, replacing each non-adjacent URL with one short jarred URL.
- On pages other than twitter status/home page, select the text you want to post (optional), then click the installed bookmark "Shorten/Merge URLs/Status" which will take you to urljar.com with the URL of original page being shortened. You can then click the "Post to Twitter" button to post the shortened URL and previously selected text, or just copy-n-paste the jarred URL for any other use.
- Request URL:
- http://urljar.com/api/shorten?format=<format>&urls=<URI component encoded URLs>
- Request Options:
- <format> can be txt, xml or json, depending on your desired response format.
- <URI component encoded URLs> can be generate such as encodeURIComponent("URL1 URL2 ... URLn"). Note, the URLs are space deliminated before applying encodeURIComponent().
- Examples:
- Request URL for response in text format:
- http://urljar.com/api/shorten?format=txt&urls=http%3A%2F%2Fwww.google.com%20http%3A%2F%2Fwww.yahoo.com%2F%20http%3A%2F%2Fyoutube.com
- Text response:
- jarredURL=http://jars.im/P2F
- longURLs=http://www.google.com http://www.yahoo.com/ http://youtube.com
- creationStatus=OK
- Request URL for response in XML format:
- http://urljar.com/api/shorten?format=xml&urls=http%3A%2F%2Fwww.google.com%20http%3A%2F%2Fwww.yahoo.com%2F%20http%3A%2F%2Fyoutube.com
- XML response:
- <urljar jarredURL="http://jars.im/P2F" longURLs="http://www.google.com http://www.yahoo.com/ http://youtube.com" creationStatus="OK"/>
- Request URL for response in JSON format:
- http://urljar.com/api/shorten?format=json&urls=http%3A%2F%2Fwww.google.com%20http%3A%2F%2Fwww.yahoo.com%2F%20http%3A%2F%2Fyoutube.com
- JSON response:
- {"jarredURL":"http://jars.im/P2F","longURLs":"http://www.google.com http://www.yahoo.com/ http://youtube.com","creationStatus"="OK"}
- Generic domain name tagging:
- jars.im: multiple URLs are encapsulated within, regardless of long URL domain names.
- jar.im: one URL of source other than ensuing listed is encapsulated within.
- Special domain name tagging (jarrred URL domain name vs containg long URL domain name):
| ggl.im: google.com | yho.im: yahoo.com |
| fbk.im: facebook.com | utb.im: youtube.com |
| liv.im: live.com | bng.im: bing.com |
| msf.im: microsoft.com | apl.im: apple.com |
| blg.im: blogger.com | wki.im: wikipedia.com |
| bdu.im: baidu.com | crg.im: craigslist.org |
| msp.im: mspace.com | tvt.im: twitter.com |
| rsh.im: rapidshare.com | wps.im: wordpress.com |
| sna.im: sina.com | eby.im: ebay.com |
| fc2.im: fc2.com | amn.im: amazon.com |
| flk.im: flickr.com | tch.im: techcrunch.com |