So writing a javascriptlet and converting it to a Greasemonkey script wasn’t enough. I finally installed Creammonkey and ported the script to it. Just for completeness, I also ported it to Trixie.
Observations:
- Greasemonkey loads the script in a separate context, before the page loads
- Creammonkey loads the script in the same context, after the page loads
- Trixie loads the script in the same context, before the page loads
That’s 3 different behaviours for the three tools (which are supposed to be compatible with each other). On top of that is the browser incompatibilities. Cross-browser scripting sucks :(
I’ve used some crappy (but apparently working) browser detection code to enable all three versions to live in the same script. I’ve tested that this works in Safari 2.0.4/Creammonkey 0.7, Firefox 1.5.x/Greasemonkey 0.6.5.x and IE (XPSP2)/Trixie 0.2.3.
Now all I need is for someone to make a Konqmonkey…
Update 2 July 2007
As a result on an interesting phone call the links have been removed.