there is “see all previouse revisions” option

o be honest I never used it and if you haven’t saved your script it will not be there I am afraid .
But if you have saved it and then deleted it by accident - try it
also if it happens that you delete it by accident press CTRL+z this will take back the last action - but will not work after you refresh the page since it takes the info only from temporary memory.