Kick Auto Reject Raid

Automatically reject incoming raids on Kick.com レイドを自動的に拒否します

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         Kick Auto Reject Raid
// @namespace    kick-auto-reject
// @version      1.0
// @description  Automatically reject incoming raids on Kick.com レイドを自動的に拒否します
// @match        https://kick.com/*
// @grant        none
// @license      MIT
// ==/UserScript==

(function () {
    'use strict';

    function rejectRaid() {
        // ボタン候補を広めに探索(UI変更対策)
        const buttons = Array.from(document.querySelectorAll('button'));

        for (const btn of buttons) {
            const text = btn.innerText?.toLowerCase();

            if (!text) continue;

            // 「reject」「decline」などを検知
            if (
                text.includes('拒否') ||
                text.includes('decline') ||
                text.includes('reject')
            ) {
                console.log('[Kick Auto Reject] Raid rejected');
                btn.click();
                return;
            }
        }
    }

    // モーダル出現を検知するための監視
    const observer = new MutationObserver(() => {
        rejectRaid();
    });

    observer.observe(document.body, {
        childList: true,
        subtree: true
    });

    // 念のため定期チェック
    setInterval(rejectRaid, 2000);
})();