How to get current recordId from the url

I write script befor and after the code, now I cant’t see him anymore, but it still doesn’t work :frowning: