I know that editing Javascript code in Chrome Developer Tools is possible - but I have not found a similar option in Firefox. Is there any way to edit the Javascript on a page in Firefox?
2 Answers
As of Firefox version 128, you can actually add a local script override.
For this, open the Dev Tools (F12), go to the Debugger tab, Sources subpane, right click the required file and select Add script override. After saving the file locally you will be able to modify it with an editor.
To apply the changes reload the page with Ctrl+Shift+R.
Unfortunately, the override setting does not persist across Firefox restarts.
2 Comments
EnthusiastiC
doesn't work for me! I have the recent version of nightly and the options you said do exist but not taking affect! As if the file I download for modification isn't loaded by the debugger
Dio79
wow, it works. thanks a lot