您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Namecheap - removes any real-estate-chomping spam banners along the top of the site's every page
// ==UserScript== // @name Namecheap - remove spam banners along top of site // @namespace Violentmonkey Scripts // @match *://*.namecheap.com/* // @version 1.4 // @author jez9999 // @description Namecheap - removes any real-estate-chomping spam banners along the top of the site's every page // @require https://code.jquery.com/jquery-3.6.0.min.js // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // ******************** // Reminder: set the following in Violentmonkey advanced settings for Editor: // "tabSize": 4, // "indentUnit": 4, // "autoCloseBrackets": false, // ******************** // Allow strings for HTML/CSS/etc. trusted injections if (window.trustedTypes && window.trustedTypes.createPolicy && !window.trustedTypes.defaultPolicy) { window.trustedTypes.createPolicy('default', { createHTML: string => string, createScriptURL: string => string, createScript: string => string }); } // Add CSS var sheet = document.createElement('style'); sheet.innerHTML = ` header:has(* nav) > * > div:not(:has(nav)):not(:has(button)) { display: none !important; } .gb-stand-with-ukraine-banner { display: none !important; } `; document.head.appendChild(sheet); })();