您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Скрывает элементы с классом "comment__emotions" и кнопки с классом "story__emotions emotions" на пикабу
// ==UserScript== // @name Pikabu убрать эмоции // @name:en Pikabu no emoji // @namespace http://tampermonkey.net/ // @version 0.4 // @description Скрывает элементы с классом "comment__emotions" и кнопки с классом "story__emotions emotions" на пикабу // @description:en Hides elements with the "comment__emotions" class and buttons with the "story__emotions emotions" class on Pikabu // @author Xelavek // @match https://pikabu.ru/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; function hideEmotions() { var commentEmotions = document.querySelectorAll('.comment__emotions'); commentEmotions.forEach(function(element) { element.style.display = 'none'; }); var storyEmotions = document.querySelectorAll('.story__emotions.emotions'); storyEmotions.forEach(function(element) { element.style.display = 'none'; }); var storyEmotions = document.querySelectorAll('.story__emotions'); storyEmotions.forEach(function(element) { element.style.display = 'none'; }); } hideEmotions(); var observer = new MutationObserver(function(mutations) { mutations.forEach(function(mutation) { if (mutation.addedNodes.length) { hideEmotions(); } }); }); var config = { childList: true, subtree: true }; observer.observe(document.body, config); })();