简体   繁体   中英

FireGestures script to call extension function

How does one invoke a function provided by a Firefox extension, inside FireGestures User Script? For example, I frequently use deskCut 's context menu command to make desktop url shortcut files. I've downloaded the latest xpi file. Therein, in the file "deskcutOverlay.xul", section on "contentAreaContextMenu", I saw the main function referred to as

net.evelands.deskcut.create()

But simply calling it like that in the body of the User Script does nothing.

OK, now it works exactly like that. I had to change something inside deskcut code, relax the assumption that it's always called from the context menu. Now I can also call it with a mouse gesture or even via a keyboard shortcut!

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