-
Notifications
You must be signed in to change notification settings - Fork 1
/
script2.js
31 lines (25 loc) · 883 Bytes
/
script2.js
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
if (localStorage.getItem('webhook')!=='') {
var spliturl = localStorage.getItem('webhook').split('/');
var getToken = spliturl[6];
document.getElementById('token').value = getToken;
}
function reveal() {
var x = document.getElementById("token");
if (x.type === "password") {
x.type = "text";
} else {
x.type = "password";
}
}
function updateHook() {
var hooktoken = document.getElementById('token').value; var channel = document.getElementById('channel').value;
var update = new XMLHttpRequest();
update.open("PATCH", hooktoken);
var upparams = {
// update params go here, coming soon(tm)
}
update.send(JSON.stringify(upparams));
}
function tip() {
alert('https://discord.com/api/webhooks/000000000000000000/charactersHereIsTheToken');
}