Skip to content

Inject recorder at record time instead of <all_urls> content script #7

Description

@SaintPepsi

The declarative <all_urls> + document_start content script runs the rrweb bundle on every page the user ever visits, even when idle. Registering it dynamically when recording starts (chrome.scripting.registerContentScripts / executeScript with injectImmediatelyhttps://developer.chrome.com/docs/extensions/reference/api/scripting#method-registerContentScripts) means:

  • materially better Chrome Web Store review odds (the debugger + <all_urls> combo triggers in-depth review)
  • smaller install warning
  • zero overhead on non-recorded pages

activeTab + scripting are already in the manifest. The e2e suite (e2e/extension.spec.mjs) should pass unchanged — it asserts behavior, not injection mechanics.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions