您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
remove/hide ads, popups, and captchas on SHEIN.
// ==UserScript== // @name SHEIN Ad, Popup and Captcha Remover // @namespace http://tampermonkey.net/ // @version 0.2 beta // @description remove/hide ads, popups, and captchas on SHEIN. // @author HYPERR // @match *://*.shein.com/* // @grant none // @license MIT // @run-at document-idle // ==/UserScript== (function() { 'use strict'; const selectorsToRemove = [ 'div[class*="modal"]', 'div[class*="popup"]', 'div[class*="dialog"]', 'div[class*="banner-ad"]', 'div[id*="ad-container"]', 'div[class*="captcha"]', 'div[id*="captcha"]', 'iframe[src*="captcha"]', 'div[class*="recaptcha"]', 'div[id*="recaptcha"]' ]; function processAndConcealTargetedNuisances() { let successfullyNeutralizedCount = 0; for (const currentSelectorString of selectorsToRemove) { try { const matchingDOMNodes = document.querySelectorAll(currentSelectorString); for (let i = 0; i < matchingDOMNodes.length; i++) { const individualElement = matchingDOMNodes[i]; const isCurrentlyVisible = !(individualElement.style.display === 'none'); if (isCurrentlyVisible) { individualElement.style.setProperty('display', 'none', 'important'); successfullyNeutralizedCount = successfullyNeutralizedCount + 1; } } } catch (errorInstance) { console.error( `[SHEIN Vanisher] Encountered an issue with selector: "${currentSelectorString}". Details:`, errorInstance ); } } if (successfullyNeutralizedCount > 0) { console.log( `[SHEIN Vanisher] Successfully vanished ${successfullyNeutralizedCount} annoyance(s) from view.` ); } } let dynamicContentObservationTimeout = null; function handleDynamicPageModifications(mutationsList, observerInstance) { if (dynamicContentObservationTimeout) clearTimeout(dynamicContentObservationTimeout); dynamicContentObservationTimeout = setTimeout(() => { processAndConcealTargetedNuisances(); dynamicContentObservationTimeout = null; }, 300); } const pageMutationWatcher = new MutationObserver(handleDynamicPageModifications); const observationConfig = { childList: true, subtree: true }; pageMutationWatcher.observe(document.documentElement, observationConfig); processAndConcealTargetedNuisances(); console.log("[SHEIN Vanisher] Script initialized and initial scan complete. Watching for dynamic content."); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址