Rider Harrison
Rider Harrison

Reputation: 571

How can I edit live JavaScript within Edge (Chromium)

I have a web page I am developing that is loaded in my QA environment and want to change a hard coded date to pass an if condition for testing and demonstration purposes.

When I edit the elements on the page it does not impact the JavaScript within any elements, instead only using what was initially sent from the server. See images below, script in elements gets edited, script in sources remains unchanged after saving.

Edited script in the elements tab

Unchanged script in the sources tab

Upvotes: 0

Views: 1439

Answers (1)

Rider Harrison
Rider Harrison

Reputation: 571

Using the Overrides function within Edge's development tools I was able to save the web page locally and override the JavaScript with my local changes upon page load. enter image description here

Upvotes: 2

Related Questions