XUL adding to JavaScript

Can a XUL extension in Firefox add extra JavaScript functions or objects that ordinary HTML pages can use? Say I wanted to add a getElementsByClassName method to the document object so my pages could use it directly as long as the extension was installed in my browser: is that possible?
Yes, I know it wouldn’t work for everyone else. There is a point here. :)

More in the discussion (powered by webmentions)

  • (no mentions, yet.)