Skip to content

feat: Add ability to inject script to run on page load#568

Merged
OrKoN merged 6 commits intoChromeDevTools:mainfrom
gernberg:init-script
Jan 28, 2026
Merged

feat: Add ability to inject script to run on page load#568
OrKoN merged 6 commits intoChromeDevTools:mainfrom
gernberg:init-script

Conversation

@gernberg
Copy link
Contributor

Adds a parameter "initScript" to be used to inject a script into the page load before other scripts execute.
Page.evaluateOnNewDocument

See #567

@gernberg gernberg changed the title Add ability to inject script to run on page load feat: Add ability to inject script to run on page load Nov 17, 2025
Copy link
Collaborator

@OrKoN OrKoN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I think we can land it with a few tweaks. Let me know if you still have a chance to update the PR.

@OrKoN OrKoN enabled auto-merge January 28, 2026 12:19
@OrKoN OrKoN added this pull request to the merge queue Jan 28, 2026
Merged via the queue into ChromeDevTools:main with commit d845ad4 Jan 28, 2026
28 of 30 checks passed
github-merge-queue bot pushed a commit that referenced this pull request Jan 29, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.15.0](chrome-devtools-mcp-v0.14.0...chrome-devtools-mcp-v0.15.0)
(2026-01-28)


### 🎉 Features

* Add ability to inject script to run on page load
([#568](#568))
([d845ad4](d845ad4))
* enable usage statistics by default with opt-out
([#855](#855))
([7e279f1](7e279f1))
* support testing light and dark mode
([#858](#858))
([5a23a8c](5a23a8c))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants