I'm trying to get the input by its name, then get its value, but this isn't working.
token = document.getElementsByName("__RequestVerificationToken").value
console.log(token)
The token:
<input name="__RequestVerificationToken" type="hidden" value="LXRZObY_ZLZ5pIjUd7fGgWONkAqJvXD6queBT3pod0ofwCXG2IhtEywSuaJOGVsjUIvKPyW60irAgP_fKslonLMFww41">