Page 1 of 1

DocStartInjection.js is it for Manifest v3?

Posted: Sun Apr 30, 2023 8:02 pm
by barbaz
From viewtopic.php?p=106806#p106806 -
barbaz wrote: Fri Apr 21, 2023 10:56 pm
barbaz wrote: Thu Sep 22, 2022 3:43 pm I have some extensions that use contentScripts.register() with string code so that dynamically-set variables can be passed to a content script that's reliably run at document-start before any page script can run. What is the (Firefox) Manifest V3 way to achieve this?
bump.

I did find scripting.executeScript's "func" parameter for one-off "later" injections of this type. But still can't find any API that can do similar reliably at document_start, i.e. run in a page definitely prior to any page's code?
Is this what nscl service/DocStartInjection.js provides?