DocStartInjection.js is it for Manifest v3?

General discussion on the NoScript Commons Library. For bug reports or RFEs please use the issue tracker at https://github.com/hackademix/nscl
Post Reply
barbaz
Senior Member
Posts: 10949
Joined: Sat Aug 03, 2013 5:45 pm

DocStartInjection.js is it for Manifest v3?

Post 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?
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0
Post Reply