changing url of discord linking with script

This commit is contained in:
Miodec 2021-07-09 22:23:34 +01:00
parent bec7f380ca
commit 0b12fda816
2 changed files with 6 additions and 9 deletions

View file

@ -108,7 +108,7 @@ export function swapElements(
}
export function changePage(page) {
console.log('change');
console.log("change");
if (pageTransition) {
return;
}
@ -226,6 +226,10 @@ if (window.location.hostname === "localhost") {
$("body").append(
`<div class="devIndicator tl">local</div><div class="devIndicator br">local</div>`
);
$(".pageSettings .discordIntegration .buttons a").attr(
"href",
"https://discord.com/api/oauth2/authorize?client_id=798272335035498557&redirect_uri=http%3A%2F%2Flocalhost%3A5000%2Fverify&response_type=token&scope=identify"
);
}
//stop space scrolling

View file

@ -2030,16 +2030,9 @@
might result in the bot not being able to give you a role.
</div>
<div class="buttons">
<!-- <a
class="button"
href="https://discord.com/api/oauth2/authorize?client_id=798272335035498557&redirect_uri=https%3A%2F%2Fmonkeytype.com%2Fverify&response_type=token&scope=identify"
style="text-decoration: none"
>
Link with Discord
</a> -->
<a
class="button"
href="https://discord.com/api/oauth2/authorize?client_id=798272335035498557&redirect_uri=http%3A%2F%2Flocalhost%3A5000%2Fverify&response_type=token&scope=identify"
href="https://discord.com/api/oauth2/authorize?client_id=798272335035498557&redirect_uri=https%3A%2F%2Fmonkeytype.com%2Fverify&response_type=token&scope=identify"
style="text-decoration: none"
>
Link with Discord