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

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

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

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

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 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);