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?
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?
Share Improve this question edited Oct 27, 2017 at 14:09 Vadim Kotov 8,2848 gold badges50 silver badges63 bronze badges asked Jul 23, 2016 at 4:29 Aditya PalAditya Pal 1031 gold badge1 silver badge8 bronze badges 1- 1 stackoverflow.com/questions/6657229/… Maybe here you will find your solution :) – rogo Commented Jul 23, 2016 at 4:34
2 Answers
Reset to default 15You can only modify your variables, inject more code, change DOM etc at runtime using console.
Firefox, by version 45, doesn't offer a way for the developers to modify the source files in the debugger and persist changes to the disk like Chrome does.
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.