Can the behavior of the Firefox FIND be changed or augmented through an add-on?

35 Views Asked by At

Can the behavior of the Firefox FIND (Ctrl + f) be changed or augmented through an add-on?

If it can not be changed, how can an add-on insert elements into the Find-bar so that it is activated at the same time as FIND with (Ctrl + f)?

1

There are 1 best solutions below

0
On

It absolutely can be changed. You can hijack and edit the find jsm module.

Here's the module:

http://mxr.mozilla.org/mozilla-release/source/toolkit/modules/Finder.jsm#225

I'm not sure exactly how to edit a jsm already inserted though. Maybe unload it than re import it.