Guest User

Untitled

a guest
Oct 3rd, 2021
794
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Discord Token Login
  3. // @namespace https://gist.github.com/m-Phoenix852/d63d869f16e40dac623c9aa347e8641a/
  4. // @version 1.1
  5. // @description Taking over discord's tokens!
  6. // @author Phoenix852
  7. // @match *://discord.com/login
  8. // @updateURL https://gist.github.com/m-Phoenix852/d63d869f16e40dac623c9aa347e8641a/raw/6d1ee63df17685e4ea06018bd8b47541d4261b82/index.user.js
  9. // @grant none
  10. // @iconURL https://i.imgur.com/rI8GsTz.png
  11. // @run-at document-start
  12. // ==/UserScript==
  13.  
  14.  
  15.  
  16. (function(){
  17. console.log("Dicord Token Login ready!");
  18.  
  19. function login(token) {
  20. setInterval(() => {
  21. document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.token = `"${token}"`
  22. }, 50);
  23. setTimeout(() => {
  24. location.reload();
  25. }, 2500);
  26. }
  27.  
  28. document.addEventListener('DOMContentLoaded', function () {
  29. if(!["https://discord.com/login", "http://gcstack.com/login"].includes(window.location.href)) return;
  30.  
  31. console.log("Prompting for token...");
  32. let token = prompt("Give the token");
  33.  
  34. if(!token) { console.log("No token provided. Aborting!"); return; }
  35.  
  36. login(token);
  37. }
  38.  
  39. );
  40. })();
Advertisement
Add Comment
Please, Sign In to add comment