Twitch掉宝自动领取/全自动领取/Twitch全自动掉宝/Twitch Claim/SUZIE/长期可用/有问题及时反馈!

自动领取掉宝库存页面奖励(此脚本由其他作者开源)

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Twitch掉宝自动领取/全自动领取/Twitch全自动掉宝/Twitch Claim/SUZIE/长期可用/有问题及时反馈!
// @version      1.3.2
// @description  自动领取掉宝库存页面奖励(此脚本由其他作者开源)
// @author       小黑盒:SUZIE 抖音:SUZIE 企鹅1群:901830179 企鹅2群:558768230
// @match        https://www.twitch.tv/drops/inventory*
// @icon         https://imgheybox.max-c.com/avatar/2021/11/09/f93babd9c2e98dadd71849435f90cb51.jpeg
// @run-at       document-end
// @namespace    https://xiaoheihe.cn/community/7216/list/83188884
// ==/UserScript==

const claimButton = '[class="ScCoreButton-sc-ocjdkq-0 ScCoreButtonPrimary-sc-ocjdkq-1 caieTg eHSNkH"]';
var onMutate = function(mutationsList) {
	mutationsList.forEach(mutation => {
		if(document.querySelector(claimButton)) document.querySelector(claimButton).click();
	})
}
var observer = new MutationObserver(onMutate);
observer.observe(document.body, {childList: true, subtree: true});

setInterval(function() {
                  window.location.reload();
                }, 1*60000);