toolgood

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
// ==UserScript==
// @name         屏蔽CSDN
// @namespace    http://tampermonkey.net/
// @version      2024-06-05
// @description  try to take over the world!
// @author       You
// @match        https://www.baidu.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=baidu.com
// @grant        none
// @require         http://cdn.bootcss.com/jquery/1.8.3/jquery.min.js
// ==/UserScript==

(function() {
    'use strict';
    $(".result .c-color-gray").each(function(){
        if($(this).html()=="CSDN博客"){
            var p=$(this).parent();
            while(p.hasClass("result")==false && p.hasClass("c-container")==false){
                p=p.parent();
            }
            p.hide();
        }
    })

})();
posted on 2024-06-05 08:59  ToolGood  阅读(8)  评论(0编辑  收藏  举报