L-Eugene / encx_extension

WebExtension to improve en.cx and quest.ua engine.
MIT License
6 stars 4 forks source link

fix: make sure scripts are working #92

Closed OldBuddy closed 10 months ago

OldBuddy commented 10 months ago

Workaround due to migration to Manifest V3:

  1. extract all scripts from bonuses/tasks/hints/messages
  2. send all scripts to service_worker after appending the content
  3. service_worker attaches scripts to DOM on required tab using chrome.scripting API.

Firefox doesn't support world: 'MAIN' parameter, but somehow executes script inside the tab if parameter is not specified.

New permissions are added to manifest which can lead to disabling extension for users.