油猴代码

屏蔽bing热榜

// ==UserScript==
// @name 屏蔽bing热榜
// @namespace http://tampermonkey.net/
// @version 0.1
// @description 屏蔽bing搜索的热榜
// @author You
// @match *://cn.bing.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=taodudu.cc
// @grant none
// ==/UserScript==

(function() {
'use strict';
// ==UserScript==
// @name 自定义的屏蔽bing热榜
// @namespace http://tampermonkey.net/
// @version 0.1
// @description 屏蔽bing的热榜
// @author mizuhokaga
// @match *://cn.bing.com/*
// @grant none
//1.原生js写法//
//let adv=document.getElementById("con-ceiling-wrapper");if(adv!=null){adv.style.display="none";}
let adv2=document.getElementById("tob_rail_container");if(adv2!=null){adv2.remove();}
//2.jQuery写法,油猴现在已经支持jQuery了
//$('#tob_rail_container').hide();
//document.head.innerHTML+= '<style>#content_right{display: none !important}</style>';
})();

 屏蔽百度搜索的百度热榜

// ==UserScript==
// @name         屏蔽百度搜索的百度热榜
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  屏蔽百度搜索的百度热榜
// @author       You
// @match        *://www.baidu.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=taodudu.cc
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
// ==UserScript==
// @name        自定义的屏蔽百度搜索结果中右侧百度热榜
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  屏蔽百度搜索的百度热榜
// @author        mizuhokaga
// @match        *://www.baidu.com/*
// @grant        none
    //1.原生js写法//
    //let adv=document.getElementById("con-ceiling-wrapper");if(adv!=null){adv.style.display="none";}
    let adv=document.getElementById("con-ceiling-wrapper");if(adv!=null){adv.remove();}
    //2.jQuery写法,油猴现在已经支持jQuery了
    //$('#con-ceiling-wrapper').hide();
    //document.head.innerHTML+= '<style>#content_right{display: none !important}</style>';
})();

 

posted @ 2023-09-09 14:13  MING5135  阅读(69)  评论(0编辑  收藏  举报