Delete source code #28
Answered
by
amaitland
Mephisto090
asked this question in
Q&A
-
Hello, :) is there a way to delete a certain source code from the page? |
Beta Was this translation helpful? Give feedback.
Answered by
amaitland
Apr 21, 2022
Replies: 1 comment
-
Yes, you can use javascript to remove nodes from the DOM. var button = await DevToolsContext.QuerySelectorAsync("button");
await DevToolsContext.EvaluateFunctionAsync("button => button.remove()", button); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Mephisto090
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, you can use javascript to remove nodes from the DOM.