百度Material Design美化

百度搜索结果页面 Material Design 美化,并去除侧边栏及广告

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         百度Material Design美化
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  百度搜索结果页面 Material Design 美化,并去除侧边栏及广告
// @author       千羽千鹤
// @match        https://www.baidu.com/*
// @grant        none

// ==/UserScript==
/* jshint -W097 */
'use strict';

// Your code here...
function change() {      
    $("#content_left > div").not(".c-container").remove();
    $("#content_right").remove();
    $(".c-container").css("box-shadow","0 2px 2px 0 rgba(0,0,0,.14)");
    $(".c-container").css("padding","16px");
    $(".c-container").css("border-radius","2px"); 
    $("#page > a").css("border-radius","3px");
    $("#page > .n").css("color","#ffffff");
    $("#page > .n").css("background","#3385ff");
    $(".c-container .m:contains('广告')").parent().parent().remove();
}
change();
var ref = "";
ref = setInterval(function(){
    change();
},1000);