您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes the risk warning and additional overlays from hoobuy.com
// ==UserScript== // @name Remove Hoobuy Overlays // @namespace http://tampermonkey.net/ // @version 1.0 // @description Removes the risk warning and additional overlays from hoobuy.com // @author Nawid Wafa // @match *://*.hoobuy.com/* // @grant none // ==/UserScript== (function() { 'use strict'; // Function to remove the overlays function removeOverlays() { const riskOverlay = document.querySelector('div.risk-warning-wrapper.hoobuy-dialog-wrapper'); const additionalOverlay = document.querySelector('div.el-overlay[style*="z-index: 2004;"]'); if (riskOverlay) { riskOverlay.remove(); } if (additionalOverlay) { additionalOverlay.remove(); } } // Remove the overlays once the DOM is fully loaded document.addEventListener('DOMContentLoaded', removeOverlays); // Also try to remove the overlays every 500ms in case they load after DOMContentLoaded const intervalId = setInterval(removeOverlays, 500); // Stop trying to remove the overlays after 10 seconds setTimeout(() => clearInterval(intervalId), 10000); })();