Clean_Baidu

干掉百度个人认为多余的内容,让百度看起来像一个搜索引擎该有的样子。

目前为 2020-02-25 提交的版本。查看 最新版本

// ==UserScript==
// @name         Clean_Baidu
// @namespace    None
// @version      0.0.1
// @description  干掉百度个人认为多余的内容,让百度看起来像一个搜索引擎该有的样子。
// @author       XenoAmess
// @match        http://www.baidu.com/*
// @match        https://www.baidu.com/*
// @match        http://m.baidu.com/*
// @match        https://m.baidu.com/*
// @run-at       document-end
// @grant        none
// @supportURL   https://github.com/XenoAmess/EnablePIP.git
// ==/UserScript==
var STRING_SELECTORS = [];
STRING_SELECTORS[0] = "div#s_wrap > div#s_main > div#s_mancard_main";
STRING_SELECTORS[1] = "div.blank-frame > div.center-content";
STRING_SELECTORS[2] = "div.ad-block";
STRING_SELECTORS[3] = "div.cr-content > div.FYB_RD";

function doIt() {
    for (var i = 0; i < STRING_SELECTORS.length; i++) {
        $(STRING_SELECTORS[i]).remove();
    }
}

(function () {
    'use strict';
    if (!window.jQuery) {
        var oScript = document.createElement('script');
        oScript.type = "text/javascript";
        oScript.src = "//s1.hdslb.com/bfs/static/jinkela/long/js/jquery/jquery1.7.2.min.js";
        document.head.appendChild(oScript);
    }
    doIt();
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址