Twitch Emotes Killer

Stops emotes spam (Blocks chat messages that contains emotes only)

// ==UserScript==
// @name         Twitch Emotes Killer
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Stops emotes spam (Blocks chat messages that contains emotes only)
// @author       haab
// @match        https://www.twitch.tv/*
// @grant        none
// @require https://code.jquery.com/jquery-2.1.4.min.js
// ==/UserScript==

(function() {
    'use strict';

    setInterval(function() {
        $(".chat-line__message:visible:not(.tek-checked)").each(function(_, msg) {
            var m = $(msg);
            if(m.find('span[data-a-target="chat-message-text"]').length == 0) {
                m.hide();
            }
            else {
                var t = $('span[data-a-target="chat-message-text"]', m);
                if(t.filter(function() {
                    return $(this).find('span').length > 0 || $(this).text().trim() == "";
                }).length == t.length) {
                    m.hide();
                }
            }
            m.addClass('tek-checked');
        });
    }, 2);
})();

QingJ © 2025

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