您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
张鑫旭adblock专属广告太烦人了,搞了个脚本处理了这个问题.
当前为
// ==UserScript== // @name 张鑫旭广告专享清理器 // @namespace http://tampermonkey.net/ // @version 0.3 // @description 张鑫旭adblock专属广告太烦人了,搞了个脚本处理了这个问题. // @author Francis // @include https://www.zhangxinxu.com/* // @icon https://www.google.com/s2/favicons?domain=zhangxinxu.com // @grant none // @require https://unpkg.com/jquery/dist/jquery.slim.min.js // @run-at document-start // @license none // ==/UserScript== document.documentElement.style.display = 'none' $(document).ready(() => { 'use strict'; $('#sidebar, .da_title, .da_col2, .link, .ins_txt, #daITxz2, .hd_remind, .description').remove() let filters = [/^\w{4}\-\w{2}$/]; filters.forEach(pattern => { Array.prototype.slice.call(document.getElementsByTagName('*')).filter(item=>pattern.test(item.tagName)).forEach(function(item){item.remove()}); }); $('a').filter((idx,item)=> /^\w{12}$/.test($(item).attr('class'))).remove(); document.documentElement.style.display = ''; });