Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Customize when content scripts are registered, in the manifest or at runtime #471

Merged
merged 2 commits into from
Feb 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
update docs
  • Loading branch information
aklinker1 committed Feb 20, 2024
commit 7c9ee85e8fa64ef16b06ca1b216c36fe691267ae
3 changes: 3 additions & 0 deletions docs/entrypoints/content-scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ export default defineContentScript({
// Configure how CSS is injected onto the page
cssInjectionMode: undefined | "manifest" | "manual" | "ui",

// Configure how/when content script will be registered
registration: undefined | "manifest" | "runtime",

main(ctx) {
// Executed when content script is loaded
},
Expand Down
Loading