Can someone tell me how to use this code?
I'm not a developer, can i just enter it in the console?

Can you get the TXid? I'll get the hash for you from a block explorer and you can paste that into your wallet to import the transaction hash (I'll tell you how to do this once I get the TXid and the hashed format).
Cant get the TXid because Electrum crashes everytime i try to rightklick the transaction in history.