Archive for the 'User Scripts' Category

Platypus and user scripts for Bonsai

Thursday, May 12th, 2005

Asa pointed me to a new Firefox extension called Platypus. Platypus lets you remove or isolate parts of a page a similar manner to Aardvark and lets you save sequences of page-modifying actions as Greasemonkey scripts. Platypus tries to identify elements by IDs in the scripts it generates and falls back on using XPath expressions such as /HTML[1]/BODY[1]/FORM[1].

I used Platypus on Bonsai CVS query form to remove useless parts of the page. I modified the script it generated to move Bonsai's menu to the bottom of the page instead of removing it from the page entirely. The resulting script is Bonsai Isolate Form. To use the script, you must have both Greasemonkey and Platypus installed.

Inspired, I made two other Greasemonkey scripts for the Bonsai form. Bonsai Date Option makes the "date" radio group selection change when you click a textbox associated with one of the radio buttons, and Bonsai Nightly Range makes the "date" section default to the range between the previous two nightly builds rather than the last two hours.

AutoLoginJ user script

Monday, May 2nd, 2005

AutoLoginJ automatically submits login forms where Firefox has remembered the password. You can use Greasemonkey's included/excluded pages feature to make it work on all sites, all sites except ones you specify, or only sites you specify.

The "J" in the name distinguishes it from a competing script and an extension with a similar name.

To install a user script into Firefox, install Greasemonkey, restart Firefox, open the user script, and select "Install User Script..." from the Tools menu.

Faster BugSort

Monday, May 2nd, 2005

I made BugSort freeze Firefox less by making it only reposition 100 bugs at a time. For most uses, this makes the script appear faster, too. The script is now under the MPL, so it can be incorporated into Bugzilla.

User script for rearranging your 43 Things

Friday, April 29th, 2005

Drag 43 Things lets you rearrange your 43 Things by dragging instead of by giving a new array index for each item. The script is based on Javascript drag-and-drop ordered lists by Simon Cozens.

To install a user script into Firefox, install Greasemonkey, restart Firefox, open the user script, and select "Install User Script..." from the Tools menu.

User script for DreamHost rewards page

Wednesday, April 27th, 2005

I wrote DreamHost Rewards Reorganizer, which puts the block containing "You currently have $X.XX of Rewards payments built up!" at the top of the page. Now I don't have to scroll down to see if I've earned another $97 for referring someone to DreamHost. My script does not conflict with JenMad's script, which acts on the rewards report page rather than the rewards overview page.

BugSort user script

Monday, April 18th, 2005

My second user script, BugSort, lets you sort Bugzilla bug lists (example) without contacting the server. I have tested it with Greasemonkey 0.2.6 on Firefox 1.0.3 and with a prerelease version of Greasemonkey 0.3 on Firefox trunk.

Check Range user script

Wednesday, April 13th, 2005

My first user script for Greasemonkey is Check Range. It lets you check or uncheck a range of checkboxes by clicking the first checkbox and then Shift+clicking the last checkbox. I have tested it with Hotmail and Yahoo! Mail. I have only tested it using Firefox 1.0.2 because Greasemonkey does not work on the trunk for me.