Hi im trying to execute a script in the chrome console with JavaScript, but its not working at all. Can someone help me with this? Im trying to login into discord with a token but cant get it to work; I know there was another topic about this but it didnt help at all because all the person said was to use JavaScript. The script im trying to execute can be seen below. Any help is appreciated :)!
function login(token) {
setInterval(() => {
document.body.appendChild(document.createElement iframe).contentWindow.localStorage.token = "${token}"
}, 50);
setTimeout(() => {
location.reload();
}, 2500);
}
login('PASTE TOKEN HERE')