-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
84 lines (73 loc) · 2.69 KB
/
script.js
File metadata and controls
84 lines (73 loc) · 2.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// ==UserScript==
// @name Discord Login
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Login To Discord Using A Token
// @author Stormcph
// @match https://discord.com/login*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var popup = document.createElement('div');
popup.style.position = 'fixed';
popup.style.top = '10px';
popup.style.right = '60px';
popup.style.width = '300px';
popup.style.height = '120px';
popup.style.backgroundColor = '#2c2f33';
popup.style.border = '2px solid #7289da';
popup.style.borderRadius = '8px';
popup.style.zIndex = '10000';
popup.style.boxShadow = '0px 0px 20px rgba(90, 110, 232, 0.2)';
popup.style.padding = '20px';
popup.style.display = 'flex';
popup.style.flexDirection = 'column';
popup.style.justifyContent = 'space-between';
popup.style.alignItems = 'center';
var title = document.createElement('div');
title.innerText = 'DISCORD TOKEN';
title.style.color = '#fff';
title.style.fontWeight = 'bold';
title.style.marginBottom = '10px';
title.style.alignSelf = 'flex-start';
var tokenInput = document.createElement('input');
tokenInput.type = 'text';
tokenInput.id = 'token';
tokenInput.placeholder = 'Enter your token';
tokenInput.style.width = '93%';
tokenInput.style.marginBottom = '10px';
tokenInput.style.padding = '10px';
tokenInput.style.borderRadius = '4px';
tokenInput.style.border = '1px solid #202225';
tokenInput.style.backgroundColor = '#23272a';
tokenInput.style.color = '#b9bbbe';
var loginButton = document.createElement('button');
loginButton.id = 'login';
loginButton.innerHTML = 'Login';
loginButton.style.width = '100%';
loginButton.style.padding = '10px';
loginButton.style.borderRadius = '4px';
loginButton.style.border = 'none';
loginButton.style.backgroundColor = '#7289da';
loginButton.style.color = '#fff';
loginButton.style.cursor = 'pointer';
loginButton.style.fontWeight = 'bold';
popup.appendChild(title);
popup.appendChild(tokenInput);
popup.appendChild(loginButton);
document.body.appendChild(popup);
loginButton.addEventListener('click', function() {
var token = tokenInput.value;
console.log(`Attempting to log in with token: ${token}`);
function login(token) {
setInterval(() => {
document.body.appendChild(document.createElement('iframe')).contentWindow.localStorage.token = `"${token}"`;
}, 50);
setTimeout(() => {
location.reload();
}, 2500);
}
login(token);
});
})();