Twitch Hide Viewer Bots

Hide bots from viewers list in Twitch (bot data from twitchinsights.net)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name Twitch Hide Viewer Bots
// @description Hide bots from viewers list in Twitch (bot data from twitchinsights.net)
// @license MIT
// @author İsmail Karslı <[email protected]> (https://ismail.karsli.net)
// @namespace https://github.com/ismailkarsli
// @homepageURL https://github.com/ismailkarsli/userscripts
// @supportURL https://github.com/ismailkarsli/userscripts/issues
// @version 1.0.0
// @match https://www.twitch.tv/*
// @grant none
// ==/UserScript==

const bots = new Set();
const MutationObserver =
	window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
const observer = new MutationObserver((e) => {
	let chatters = document.querySelectorAll(".chatter-list-item");
	chatters.forEach((chatter) => {
		const username = chatter.querySelector("button.tw-link")?.innerText;
		const isBot = bots.has(username);
		if (isBot) {
			chatter.style.display = "none";
		}
	});
});

fetch("https://api.twitchinsights.net/v1/bots/online")
	.then((res) => res.json())
	.then((data) => {
		data?.bots?.forEach((bot) => bot?.[0] && bots.add(bot[0]));
		if (bots.size) {
			observer.observe(document.body, {
				childList: true,
				subtree: true,
			});
		}
	})
	.catch((error) => console.warn("Twitch Hide Viewer Bots", "Bot list couldn't fetched", error));

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址