From 72ec8c61129882d8bcf27ec30350c5539f96f6a5 Mon Sep 17 00:00:00 2001 From: Gameil Date: Mon, 25 Nov 2024 00:25:48 +0000 Subject: [PATCH] Update quick-promoter.js --- quick-promoter.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/quick-promoter.js b/quick-promoter.js index 45327df..0f639a5 100644 --- a/quick-promoter.js +++ b/quick-promoter.js @@ -83,14 +83,15 @@ promoBtn.addEventListener("click", async () => { console.log("Clicked Promo Button"); if (!currentBtn) { + + // Checking Dev banned status using api + const searchThreadId = document.URL.split('/')[4].split('.')[1]; + console.time('Check Dev Banned'); + devBanned = await checkDevBanned(searchThreadId, token); + console.timeEnd('Check Dev Banned'); + createBtn(); setTimeout(addBtn, 300); - - // Checking Dev banned status using api - const searchThreadId = document.URL.split('/')[4].split('.')[1]; - console.time('Check Dev Banned'); - devBanned = await checkDevBanned(searchThreadId, token); - console.timeEnd('Check Dev Banned'); } }); }