首页 > 其他分享 >油猴代码

油猴代码

时间:2023-09-09 14:22:58浏览次数:34  
标签:adv bing none 代码 屏蔽 热榜 油猴 百度

屏蔽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>';
})();

 

标签:adv,bing,none,代码,屏蔽,热榜,油猴,百度
From: https://www.cnblogs.com/mingruifeng/p/17689424.html

相关文章

  • Visual Studio Code:代码编辑与开发的全能工具
    在现代软件开发中,一个高效且强大的代码编辑工具是不可或缺的。VisualStudioCode(简称VSCode)作为一款免费开源的代码编辑器,以其丰富的功能和活跃的社区受到了广大开发者的喜爱。本文将介绍VSCode的基本用法和主要特点,帮助您更好地使用这个强大的开发工具。VisualStudioCode简介......
  • java下载文件代码
    privatevoiddownload2(HttpServletResponseresponse,StringzipFilePath,Stringfilename)throwsIOException{//设置响应的内容类型为ZIP文件response.setContentType("application/zip");response.setHeader("Content-Disposition&q......
  • 学习笔记1 代码
    学习所用代码test.c#include<stdio.h>intmain(){printf("hello");return0;}hello.h#ifndef_HELLO_H#define_HELLO_H/***fuction:printhellostring.*parm:void*returnvalue:void*/voidsay_hello()......
  • 代码随想录算法训练营第三天| 203.移除链表元素 707.设计链表 206.反转链表
    203.移除链表元素链表定义structListNode{intval;ListNode*next;ListNode():val(0),next(NULL){};ListNode(intx):val(x),next(NULL){};ListNode(intx,ListNode*next):val(x),next(next){};}1.在原链表上移除链表元素classSolut......
  • SGM重要代码摘抄
    Census变换1//逐像素计算census值2for(sint32i=2;i<height-2;i++){3for(sint32j=2;j<width-2;j++){45//中心像素值6constuint8gray_center=source[i*width+j];7......
  • Python给你一个字符串,你怎么判断是不是ipv4地址?手写这段代码,并写出测试用例【杭州多测
    ipv4地址的格式:(1~255).(0 ~255).(0 ~255).(0 ~255)1.正则表达式importredefcheck_ip(one_str):compile_ip=re.compile('^(([1-9]|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])\.){3}(\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])$')ifcompile_ip.match(one_str......
  • [代码随想录]Day40-动态规划part08
    题目:139.单词拆分思路:单词就是物品,字符串s就是背包,单词能否组成字符串s,就是问物品能不能把背包装满。拆分时可以重复使用字典中的单词,说明就是一个完全背包!动规五部曲分析如下:确定dp数组以及下标的含义:dp[i]:字符串长度为i的话,dp[i]为true,表示可以拆分为一个或多个在字......
  • 用matplotlib迭代画图,在plt.show()执行后代码暂停
    https://tieba.baidu.com/p/4778495824幸好刚刚找到答案了,对于题主来说可能是帮不上忙了,但是对于碰巧搜到这里的同萌们可能会方便很多,最简实现如下(Python3.6.2):importmatplotlib.pyplotaspltimportnumpyasnpplt.ion()#开启interactivemodex=np.linspace(0,50,1000)pl......
  • 百度开源网关BFE源代码阅读
    BFE是一个非常强大的七层负载均衡,与其他负载均衡存在一些显著的差异(Product,GSLB等概念),也因为这些差异所以对于没有阅读其代码的用户在入门阶段非常的不友好,再者就是官方文档仅是一个查阅文档,这个查阅文档会的看得懂,不会的看不懂,对于教会用户怎么用实在是没有太多的帮助,所以笔......
  • R语言混合图形模型MGM的网络可预测性分析|附代码数据
    原文链接:http://tecdat.cn/?p=18279 最近我们被客户要求撰写关于混合图形模型MGM的研究报告,包括一些图形和统计输出。网络模型已经成为抽象复杂系统,是深入了解许多科学领域中观测变量之间的关系模式的流行方法。这些应用程序大多数集中于分析网络的结构。但是,如果不是直接观察......