https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/scripting/getRegisteredContentScripts
scripting.getRegisteredContentScripts() - Mozilla | MDN
Returns all the content scripts registered with scripting.registerContentScripts() or a subset of the registered scripts when using a filter.
scriptingmozillamdn