Open johnd0e opened 5 years ago
I use GreaseMonkey on a regular basis, everything is OK
GM v4? Great.
I have to install it too, in order to resolve #51.
As step to more native support of GM, we can consider some iitc api extensions.
Eliminate window
object usage (outside of setup
).
The only thing that is absolutely needed: fair way to transfer plugin's setup
to common context (currently it's done via bootPlugins
array).
postMessage
with the same stringified wrapper.
The message should be processed then under full control of the main iitc script.Existent plugins could be make compatible with new scheme just by replacing wrapper code.
Bare minimum: window
must be defined in wrapper as private empty object, and then attached to setup as it's property.
Actual IITC api can be passed to setup
as parameter.
It is breaking change, as we need to all existent plugins. But: