feat: Add ability to inject script to run on page load#568
Merged
OrKoN merged 6 commits intoChromeDevTools:mainfrom Jan 28, 2026
Merged
feat: Add ability to inject script to run on page load#568OrKoN merged 6 commits intoChromeDevTools:mainfrom
OrKoN merged 6 commits intoChromeDevTools:mainfrom
Conversation
OrKoN
reviewed
Nov 17, 2025
OrKoN
reviewed
Jan 12, 2026
Collaborator
OrKoN
left a comment
There was a problem hiding this comment.
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
approved these changes
Jan 28, 2026
Merged
via the queue into
ChromeDevTools:main
with commit Jan 28, 2026
d845ad4
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a parameter "initScript" to be used to inject a script into the page load before other scripts execute.
Page.evaluateOnNewDocument
See #567