cba icon indicating copy to clipboard operation
cba copied to clipboard

Manifest v3

Open Manvel opened this issue 2 years ago • 1 comments

Background

In order to keep CBA functioning, it needs to be converted to MV3.

What to change

Challenge

The biggest problem is that MV3 doesn't yet support User Scripts, below are threads to follow:

  • https://github.com/w3c/webextensions/issues/279
  • https://github.com/w3c/webextensions/pull/331
  • https://bugs.chromium.org/p/chromium/issues/detail?id=1429408&q=userscript&can=2

Threads to follow

  • https://groups.google.com/a/chromium.org/g/chromium-extensions/c/bdnjlMNzQqA/m/LpNChrueAAAJ

TODO before migration

  • Test MV2->MV3 switch with old funtions and the migration introduced by https://github.com/browser-automation/cba/pull/140
  • https://github.com/browser-automation/cba-website/issues/64

Manvel avatar Dec 29 '22 10:12 Manvel

Currently it doesn't look like that new userScripts can help us with inject and cs-inject actions, currently it uses userScripts.register in order to load script to the pages matching the pattern, what we are looking for is a one time execution, something similar to scripting.executeScript, but with the possibility of specifying custom user code.

There is a Execute user scripts one time proposal, which in case implemented, may help here.

Additional links:

Manvel avatar Jan 02 '24 11:01 Manvel