Get Custom script code after delete

Hello Everyone,

An error occurred while amending a code inside a custom script, and I was able to access the versions and copied the code from the basic value, but the code is not arranged at all and does not work anymore.
Is it possible to arrange the code to make it work again? or reformate it?
Note that the source code is about 1305 lines on code.

To reformat the JS code, you can use the online beautifier
https://beautifier.io/

I tried to use this, but No benefit.

Try running the below snippet in your developer console.

JSON.parse(cur_frm.doc.data).changed[0][1]

this would work if the custom script file still exist,
but in my case, the only thing that still available is the code copied in my notepad.

Post the code you have on https://pastebin.com/ and share the link here