From 6f84d4596083464d0ba001160e5fb6cb012cd267 Mon Sep 17 00:00:00 2001 From: Johan Kiviniemi Date: Tue, 16 Dec 2025 23:47:40 +0200 Subject: [PATCH] feat: Add `modifyScript` option to `injectScript` (#1762) Co-authored-by: Aaron --- docs/guide/essentials/content-scripts.md | 23 +++++++++++++++++++++++ packages/wxt/src/utils/inject-script.ts | 10 ++++++++++ 2 files changed, 33 insertions(+) diff --git a/docs/guide/essentials/content-scripts.md b/docs/guide/essentials/content-scripts.md index 3c0c77a9..018a83fb 100644 --- a/docs/guide/essentials/content-scripts.md +++ b/docs/guide/essentials/content-scripts.md @@ -591,6 +591,29 @@ For MV3, `injectScript` is synchronous and the injected script will be evaluated However for MV2, `injectScript` has to `fetch` the script's text content and create an inline `