您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
2024/10/11 13:56:20
// ==UserScript== // @name jsoncn去广告 // @namespace Violentmonkey Scripts // @match https://www.json.cn/* // @grant none // @license MIT // @version 1.0.0 // @author ss548 // @description 2024/10/11 13:56:20 // ==/UserScript== (function() { 'use strict'; function removeAds() { const adEls = document.getElementsByClassName('show-hide-adv'); const googleAds = document.getElementsByTagName('ins')[3]; for(const el of adEls) { el.style.cssText = 'display:none !important;height:0 !important;'; } googleAds.style.cssText = 'display:none !important;height:0 !important;'; } window.onload = removeAds })();