Termite Misdirection

I really hate how submitting or updating a bug on Bugzilla leaves you at post_bug.cgi or process_bug.cgi, rather than bouncing you back to a URL that actually identifies the bug in question. So, I wrote a Greasemonkey userscript named Termite Misdirection to detect this situation and fix the URL. If your browser supports the HTML5 history API, it should be mostly transparent; if not, then you’ll see the page being reloaded, and you’ll lose the “Changes submitted” etc. message.

I use this Chromium; I’m told it works in Firefox too. (Yes, I know I should submit a patch to Bugzilla itself to make this unnecessary, but that would be more work than 16 lines of Javascript and wouldn’t work with all the existing Bugzilla instances I use every day.)


#1 Jon on 04.05.11 at 4:21 pm

“you should submit a patch to Bugzilla itself to make this unnecessary”


thanks for sharing your solution!

#2 Will Thompson on 04.05.11 at 4:43 pm

Turns out that it will be fixed in Bugzilla 4.2: http://twitter.com/bugzilla/status/45219170454999040

Great happiness!

#3 Joshua Lock on 04.18.11 at 11:57 pm

Brilliant, brilliant, brilliant!

Just one nit, what about http (rather than https) Bugzilla installs?

#4 Will Thompson on 04.19.11 at 7:02 am

Good point. Try 2.1!