Add a confirmation dialog to the "Reset Changes" button in the Script editor.