您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
2025/8/11 13:52:08
// ==UserScript== // @name 去除掘金顶部的广告 // @namespace remove-juejin-ad // @match *://*.juejin.cn/* // @match *://juejin.cn/* // @grant none // @version 1.0.2 // @author liao brant // @description 2025/8/11 13:52:08 // @license MIT // ==/UserScript== const styleSheet = document.createElement('style'); styleSheet.id = 'remove-juejin-ad'; document.head.appendChild(styleSheet); const setDefaultStyle = () => { styleSheet.textContent = ` .view-container .top-banners-container { display: none !important; } .view-container .main-header.header-with-banner, .view-container .with-global-banner .view-nav, .view-container .with-global-banner .view-nav.top { top: 0 !important; } `; }; function init() { setDefaultStyle(); } init();