您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes specified elements from Torn.com
// ==UserScript== // @name Remove Torn Items and Images // @namespace Phantom Scripting // @version 0.1 // @description Removes specified elements from Torn.com // @author ErrorNullTag // @match https://www.torn.com/item.php // @grant none // @license GPU AGPLv3 // ==/UserScript== (function() { 'use strict'; function removeElementsByClassWithinDiv(divId, className) { const parentDiv = document.getElementById(divId); if (!parentDiv) { return; } const elements = parentDiv.getElementsByClassName(className); while (elements.length > 0) { elements[0].parentNode.removeChild(elements[0]); } } function removeImageWrapWithinTitleWrap() { const titleWraps = document.querySelectorAll('.title-wrap'); titleWraps.forEach(function(titleWrap) { const imageWraps = titleWrap.getElementsByClassName('image-wrap'); while (imageWraps.length > 0) { imageWraps[0].parentNode.removeChild(imageWraps[0]); } }); } setInterval(function() { removeElementsByClassWithinDiv('category-wrap', 'torn-item medium'); removeImageWrapWithinTitleWrap(); }, 1000); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址