您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
对阮一峰博客提示的‘您使用了广告拦截器,导致本站内容无法显示。请将 www.ruanyifeng.com 加入白名单,解除广告屏蔽后,刷新页面,谢谢。’信息进行修复。
当前为
// ==UserScript== // @name 阮一峰博客广告不显示后的问题修复处理 // @version 0.2 // @description 对阮一峰博客提示的‘您使用了广告拦截器,导致本站内容无法显示。请将 www.ruanyifeng.com 加入白名单,解除广告屏蔽后,刷新页面,谢谢。’信息进行修复。 // @author // @match *://*.ruanyifeng.com/* // @grant none // @run-at document-start // @namespace https://gf.qytechs.cn/users/168722 // ==/UserScript== document.querySelector('script[src*=checker]')?.remove(); window._setTimeout = window.setTimeout; var fun = (f,t)=>{ if(f.name !== 'checker'){ window._setTimeout(f, t); } }; window.setTimeout = fun; var content = document.querySelector('#main-content').cloneNode(true); function loadjscssfile(filename) { var fileref = document.createElement("link"); fileref.setAttribute("rel", "stylesheet"); fileref.setAttribute("type", "text/css"); fileref.setAttribute("href", filename); if (typeof fileref != "undefined") document.getElementsByTagName("head")[0].appendChild(fileref) } function ruanyifeng() { document.getElementsByClassName('asset-meta')[0].nextElementSibling.style = 'display:none'; document.querySelector('article.hentry').insertBefore(content, document.querySelector('.asset-footer')); } setTimeout(ruanyifeng, 1001); loadjscssfile('/static/themes/theme_scrapbook/theme_scrapbook.css');
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址