您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes spammy pm_editor entries from the news section on Poshmark.
// ==UserScript== // @name Poshmark pm_editor Remover // @namespace http://tampermonkey.net/ // @version 1.0 // @license MIT // @description Removes spammy pm_editor entries from the news section on Poshmark. // @author Rsmaldone // @match *://*poshmark.com/* // @grant none // ==/UserScript== (function() { 'use strict'; const removePmEditorEntries = () => { document.querySelectorAll('a[href="/closet/pm_editor"]').forEach(el => { // Navigate up to the closest news feed item container and remove it const newsFeedItem = el.closest('.news-feed__item'); if (newsFeedItem) { newsFeedItem.remove(); } }); }; // Use MutationObserver to handle dynamically loaded content const observer = new MutationObserver(mutations => { mutations.forEach(mutation => { removePmEditorEntries(); }); }); // Start observing the body for added nodes, which covers most dynamic content cases observer.observe(document.body, { childList: true, subtree: true }); // Initial removal in case the content is already there removePmEditorEntries(); })();