[quote=“freaktechnik, post:12, topic:13144”]
What declarativeContent lets you do is attach a content script based on conditions you define at run-time, which is what you are asking for, essentially.[/quote]OK. It wasn’t clear from the link that you could use it to inject a content script - indeed it says it allows you do things ‘without needing to … inject a page script’. My misunderstanding. Never mind - I have a method that should work.
Thanks for the link to Embedded webextensions There is no mention there of Android compatibility but I assume it’s not available for Android yet.
My sdk addon currently runs on Android and I would like to make a transitional version of my addon (that stores the simple prefs, in preparation for conversion to a webextension) but I’d like it to work on Android too. Is it possible to code it so that it will not fail on Android while embedded webextensions are not available, but will use the feature once it’s released?
I want to avoid a plethora of versions:
- android without transition features
- desktop with transition features
- desktop and android both with transition features
- desktop webextension (by Fx 57)
- both as webextension (by Fx ??)
Do you see what I mean?