您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hides the annoying bazaar descriptions
当前为
- // ==UserScript==
- // @name Hide Bazaar Banners
- // @version 1.0
- // @description Hides the annoying bazaar descriptions
- // @author Weav3r [1853324]
- // @match https://www.torn.com/bazaar.php*
- // @run-at document-start
- // @namespace https://greasyfork.org/users/1132291
- // ==/UserScript==
- (function() {
- 'use strict';
- function removeElement() {
- const element = document.querySelector('.editor-content.segment___WhZ5E.noPadding___pvSVH .description___D99uc.unreset blockquote');
- if (element) {
- element.remove();
- }
- }
- const observer = new MutationObserver((mutations) => {
- mutations.forEach(() => {
- removeElement();
- });
- });
- observer.observe(document.documentElement, {
- childList: true,
- subtree: true
- });
- removeElement();
- })();