Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Twitter Enhancements: Retweet This

Append a retweet button to the end of each twitter entry.

This script allows users to customize the retweet message based on template (ie., the gblRetweetTemplate variable). Two special placeholder are supported now: %a for author id, and %c for the original twitter message.

The default Chinese template is: '[转] @%a: %c', while the default English one is: 'Retweeting @%a: %c'.

For some reason, twitter update API without authorization header always gets rejected ('unauthorized' error is returned). To make the script to work, twitter username/password needs to be entered and stored in GM registry (upon the first use or when Alt-/ is pressed). Such information will be removed from GM registry upon the script uninstall. Please don't install this script if you don't like this.

Two locales are provided now. Feel free to customize those labels/messages based on your locale, or simply comment out the non-used locale variable definition.

Update (05/09/08): Make the retweet button visible only when the mouse hovers above the entry to retweet.
Update (05/09/08): As a bonus, I add a simple feature which would display all tweets, which have already been read, using a customizable background color (via gblBackgroundColorForReadItems).
Update (05/09/08): No sensitive information like username/password will be stored by the script any more. This should be a relief for the users.
Update (05/20/08): Some bug fixes.
Update (07/22/08): Split the script into three: RetweetThis, MarkReadItems, and EnterToSend.
Update (09/18/08): Fix the script to work with twitter's new layout
Update (09/18/08): Cover the https twitter pages.

Contact: http://twitter.com/ziru






1 point
login to vote
Ziru script's author
Posted Jul 22, 2008

@Uzd4ce Splitted as you suggested. Please check the MarkReadItems script if you only need that feature.

1 point
login to vote
Uzd4ce user
Posted Jul 1, 2008

I don't really need to retweet, but marking read items is cool. How can this script be modified to only "mark read items"?

You could comment on this script if you were logged in.