Analogus,
same here "fun" and though more then 20 years in programming/reverse-engineering only some two years with kinoma-FSK and JavaScript.
Look on quisvir's code applied to main.xml.
There are some new buttons with actions like : "doAddToCollection"
The "trick" is to set your code into the right "context", which for above mentiond example is: "model.container.sandbox.OPTION_OVERLAY_PAGE.sandb ox.doAddToCollection"
(See BookManagement_x50.js)
To find the context folllow the xml-structure of your "host".
All xml-created/triggered code is executed in "sandbox"es separating it form the inner/elevated FSK or also PRS+core/addon code.
|