Discord Auto Join Button Clicker

自动点击Discord加入按钮

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         Discord Auto Join Button Clicker
// @namespace    http://tampermonkey.net/
// @version      1.2
// @description  自动点击Discord加入按钮
// @author       You
// @match        https://discord.com/channels/*
// @license      MIT
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // 等待页面加载完成
    window.addEventListener('load', function() {
        // 尝试查找并点击加入按钮
        function clickJoinButton() {
            const joinButton = document.querySelector('button.joinButton__5aa3a');
            if (joinButton) {
                console.log('找到加入按钮,正在点击...');
                joinButton.click();
            } else {
                console.log('未找到加入按钮,将在1秒后重试...');
                setTimeout(clickJoinButton, 1000);
            }
        }

        // 初始尝试
        clickJoinButton();
    });
})();