kick.com emote and pause remover

fixes kick for now (17th june 2023)

目前為 2023-06-17 提交的版本,檢視 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         kick.com emote and pause remover
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  fixes kick for now (17th june 2023)
// @author       You
// @match        https://kick.com/
// @icon         https://www.google.com/s2/favicons?sz=64&domain=kick.com
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    let observer=new MutationObserver(mutations=>{mutations.forEach(mutation=>{if(mutation.addedNodes.length>0){let elements=document.querySelectorAll('div[data-chat-entry]');elements.forEach(element=>{if(element.querySelector('[data-emote-name="emojiAngry"]')){element.remove();}});}});});observer.observe(document.body,{childList:true,subtree:true});
    const targetClass='absolute inset-x-0 bottom-2 z-50 flex flex-row justify-center rounded text-sm';const observer2=new MutationObserver(mutations=>{mutations.forEach(mutation=>{if(mutation.addedNodes.length){mutation.addedNodes.forEach(node=>{if(node.nodeType===Node.ELEMENT_NODE&&node.matches(`div.${targetClass.split(' ').join('.')}`)){node.click();}});}});});observer2.observe(document.body,{childList:true,subtree:true});
})();

QingJ © 2025

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