Skip to content

Instantly share code, notes, and snippets.

@m-Phoenix852
Created August 26, 2020 07:45
Show Gist options
  • Select an option

  • Save m-Phoenix852/b47fffb0fd579bc210420cedbda30b61 to your computer and use it in GitHub Desktop.

Select an option

Save m-Phoenix852/b47fffb0fd579bc210420cedbda30b61 to your computer and use it in GitHub Desktop.
Simple script to log in to discord account using token.
let token = "your token";
function login(token) {
setInterval(() => {
document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.token = `"${token}"`
}, 50);
setTimeout(() => {
location.reload();
}, 2500);
}
login(token);
@celunah
Copy link
Copy Markdown

celunah commented Dec 31, 2025

Hjhj

That's an... interesting comment. Not sure what it adds to the topic though.

@vuhai2938-maker
Copy link
Copy Markdown

Token

@nhanhuu434-pixel
Copy link
Copy Markdown

hihi

@nhanhuu434-pixel
Copy link
Copy Markdown

token

@nhanhuu434-pixel
Copy link
Copy Markdown

.

@lenkabkhirmilenmalenkabku-dev
Copy link
Copy Markdown

javascript:(function () {location.reload();var i = document.createElement('iframe');document.body.appendChild(i);prompt('Here is your token', i.contentWindow.localStorage.token.replace(/'/g, ''));})();

@AnticheatCreator-roblox
Copy link
Copy Markdown

@lenkabkhirmilenmalenkabku-dev for some reason it still just redirects me back to the login page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment