简体   繁体   中英

How to override a method in the script of a XUL in another add-on?

I would like to change the behavior/extend some of the functionality in another add-on. The answer in Is it possible to modify a firefox addon written using XUL with an addon written using the Addon SDK says

There are certain ways to monkey-patch code in Javascript code modules, if you really have to...

but the code I want to modify is the js script for a xul overlay

Is it possible to override some functions in that script? And if so, how? It looks like overlaying the xul with my own to run code in its context would work, as suggested in Overriding/Overlaying a XUL method , but is there a way to do this with the add-on sdk? (Jetpack)

Thanks.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM