还原一个干净的百度首页
- // ==UserScript==// @name 百度首页净化// @namespace http://tampermonkey.net/// @version 0.1// @description 还原一个干净的百度首页// @author WoShiJack// @match https://www.baidu.com/*// @grant none// ==/UserScript==(function() {'use strict';window.onload = () => {//热榜标题var title = document.getElementsByClassName("s-hotsearch-title");//热榜内容var content = document.getElementsByClassName("s-hotsearch-content");//首页左上角var top_left = document.getElementsByClassName("s-top-left");//首页左下角var bottom_left = document.getElementsByClassName("s-bottom-layer-left");//首页右下角var bottom_right = document.getElementsByClassName("s-bottom-layer-right");//首页右下角二维码var qrcode = document.getElementsByClassName("qrcode-nologin");//首页var top_right = document.getElementsByClassName("s-top-right");title[0].style.display="none";content[0].style.display="none";top_left[0].style.display="none";bottom_left[0].style.display="none";bottom_right[0].style.display="none";qrcode[0].style.display="none";top_right[0].style.display="none";};})();