June 8, 2009

mass editing a file release on sourceforge

Tags: ,
Filed under: General, Mozilla — DerManoMann @ 4:11 am

I think I’ve complained before about the pain of creating a file release on sourceforge. While I can understand the motivation behind the design, it’s still a big pain, especially updating the processor and file type for each plugin!

So, today I finally spend some time puttng together a small greasemonkey script to make life easier. it’s still a but crude, but works well enough for my purposes.
What it does is the following:

  1. Iterate over all select elements and pick the ones named processor_id and type_id,
  2. if not already selected select ‘Platform independent‘ and ‘.zip‘,
  3. if the dropdown was modified also modify the table row (set background to some red),
  4. and also add a target to the form to allow submitting forms to a new tab to avoid having to reload the page for each submit

Admittedly, that’s all rather specific for my needs but on the off-chance that someone might find it useful – here it is.