Ok, so there have been some developments.
Before I go into this though, I just want to make it clear that I have very little knowledge or experience working with XUL, or writing Firefox extensions in general. I’ve dabbled, but I’m mostly ignorant. So all you Firefox aficionados out there…go easy on me.
Using this site, I created a skeleton for my extension, calling it “alertCheck”.
And then I hit a brick wall right away, trying to find the right “alert” to override.
Now, after the appcontent is loaded, I wait for the DOMContentLoaded event to fire, and then write my new alert function to here:
Phew. Big mouthful.
So, where does that leave me? Well, I was just hanging out in irc.mozilla.net in the #extdev channel. Here’s a chunk of what was said:
So maybe there’s another approach that I should be taking – I’m going to look into overriding commonDialog.xul… I’ll write more when I have it.