sx007 / Twitch Drop Auto Claim

// ==UserScript==
// @name            Twitch Drop Auto Claim
// @name:ru         Автоматическое получение Twitch Drops
// @namespace       https://openuserjs.org/scripts/sx007/Twitch_Drop_Auto_Claim
// @version         0.1.2
// @author          sx007 (Хлибец Иван)
// @description     The script helps to automatically accept (Claim) Twitch Drop
// @description:ru  Скрипт помогает автоматически принимать (получать) Twitch Drops
// @homepage        https://openuserjs.org/scripts/sx007/
// @icon            data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAACUOSURBVHhe7X0JfBzFlXd191y6Jdvyfcm3sZFtfGCwvaAACeAPGwhxlnCEXIRAFtjlB7vsko+YEP9YFkJIIDefOTZk4wBLgsMNxgc+8Cn5Nr5t+ZIlS7I0Zx/f/1/dI8nySJoZjQZk5i8/d3d1d13v1av3qqprRAYZZJAEKiut7NWrd+UvWrRIc4K6JVTnmEGC2Lh83d+WvLGmLs835AknqFsiIwBJ4sCnJ8Su8uPCYxXOcIK6JTICkCTCAVOIiFdYoe5dhRkBSBINp/1CVTURioSdkO6JjAAkiYaGgBCWJgL+jAB8IdHYGBCWqQl/Q0YAvnDYt8/yWZYoVIRbHD1a44R2T2QEIAnUHazt17NX0WQhXOLI4SontHsiIwBJYNmyZaK+rgE2AHSAW5u4ZeXxEc6tbgfFOWYQJ5Ys3OfbfmTvW+tW7L1UNbxC84TFtfMuXtuvT1HZxK/0a3Qe6xC7N53uvXLpxq1Vh4IiYhiioLcivnL1RTOHTSjY6TySFmQEIA48dNcvz689qUyeOu2Cn69eWaHqQV+eFVKEqhi4awqYAqKod/bp0eMHVWxav/OZvMLQwZ/++q6V9tuxseiZNX03bth59MQhnYoEAiDExZdPGv+12yZtdR5JCzJdQBwYNXb0en+DtnDJ23sKgnU9wfxcoaH/V8F/zfIIPaSJqiOuvBXv751Rf8r605Gjp+92Xm0Tn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SDE++WSzRNuYK+AKXAadJcrk/A7fe1/nBifptsI6CrDHwIHj98QdejfrxaDCjz106sAnr34K4OI7EMKmisBHBt271/PsrduwBHhydA4DbI7QIY2OgyZrJLfZKNuNdbvNsVq8CRu1Sa2XYjFviUel9wmG4Gguy0280UxEPEu0B7w8Ki5oAKJoAIwPUn//9wF8CMK+z7QBH6hBPiIX/SAuw02owk0qgJYXZb0YnuyshFcDSMzioE3TBrMSPd7k6pLlNvwRClc7DZ4vtg1VgNPmfnpdVzU9gGwXnifBhIgiPRibAAeUvB7Gn7oVIkEW0/7CrhkOHa0A0G7eAOElIDsR1evdJTSsRT0SNAtIAVt7On9ZAAvQfSRrulCxtRZEaiAgWaY0HaDcLcshPwPZR+3d0aqcEAAAAAASUVORK5CYII=
// @updateURL       https://openuserjs.org/meta/sx007/Twitch_Drop_Auto_Claim.meta.js
// @downloadURL     https://openuserjs.org/install/sx007/Twitch_Drop_Auto_Claim.user.js
// @supportURL      https://openuserjs.org/scripts/sx007/Twitch_Drop_Auto_Claim/issues
// @match           https://www.twitch.tv/*
// @run-at          document-end
// @license         MIT
// @copyright       2022, sx007 (https://openuserjs.org/users/sx007)
// ==/UserScript==

const configMutat = {
    childList: true,
    subtree: true
};

let MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
if (MutationObserver) {
    console.log("MutationObserver work");
}

const onMutate = function(mutationsList, observer) {
    let dateN = new Date();
    //Если есть нижний блок оповещения чата и ссылка на инвентарь
    const blockInfo = document.querySelector('[data-test-selector="chat-private-callout-queue__callout-container"]');
    const chatTitleLink = document.querySelectorAll('div.chat-private-callout__header-segment a[href="/inventory"]');
    const listButChat = document.querySelectorAll("div.chat-private-callout__header-segment button");
    if(blockInfo) {
        if(chatTitleLink.length > 0) {
            //Нажимаем на кнопку Получить
            listButChat[0].click();
            //Закрываем уведомление о получении Drops через 3 сек
            setTimeout(() => {
                const closeButChat = document.querySelector('.chat-input-tray__open button');
                //Если кнопка имеется
                if(closeButChat != null) {
                    //Закрываем уведомление
                    closeButChat.click();
                    console.log(dateN, "Claim drop + Close alert");
                }
            }, 3000);
        }
    }
};

const observer = new MutationObserver(onMutate);
observer.observe(document.body, configMutat);