Script Summary: Automatically replace any Tweet URL with bit.ly URL as you type or paste in a URL
A great way to save time when writing a Tweet!
This runs on the main Twitter home page, on the Update text entry box. Continuously checks for new URLs as you type. After you press space bar following a new URL, this script instantly replaces the URL with a bit.ly tiny URL. This script will act on any non bit.ly URL it finds in your Tweet.
Only 3 clicks/key strokes total: 1. select a URL, 2. copy, 3. paste it into your Tweet. Twhirl needs 5 key strokes to do the same thing.
This script does not post your Tweet, it only acts on the entry box as you type.
No need to provide anyone your Twitter password. The script runs locally on your Firefox browser.
Technical: Detects key-up events, finds URLs, makes an AJAX request to the bit.ly API, replaces text in the Update text entry box.
New to Greasemonkey? Then first add the GM extension to your Firefox browser https://addons.mozilla.org/en-US/firefox/addon/748, then come back to this page and click on the big Install button up top.
It's a bit rough and behavior may vary a little depending on typing speed. Will continue to improve it. I'd appreciate any feedback. See my other Greasemonkey scripts here: http://userscripts.org/users/5204/scripts
See this related script that auto shrinks the words in your Tweet as you type http://userscripts.org/scripts/show/39555
Updates:
- minor update to handle converting https URLs
- minor update to handle reply case from other's profile page



