百度Material Design美化

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

  1. // ==UserScript==
  2. // @name 百度Material Design美化
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.3
  5. // @description 百度搜索结果页面 Material Design 美化,并去除侧边栏及广告
  6. // @author 千羽千鹤
  7. // @match https://www.baidu.com/*
  8. // @grant none
  9.  
  10. // ==/UserScript==
  11. /* jshint -W097 */
  12. 'use strict';
  13.  
  14. // Your code here...
  15. function change() {
  16. $("#content_left > div").not(".c-container").remove();
  17. $("#content_right").remove();
  18. $(".c-container").css("box-shadow","0 2px 2px 0 rgba(0,0,0,.14)");
  19. $(".c-container").css("padding","16px");
  20. $(".c-container").css("border-radius","2px");
  21. $("#page > a").css("border-radius","3px");
  22. $("#page > .n").css("color","#ffffff");
  23. $("#page > .n").css("background","#3385ff");
  24. $(".c-container .m:contains('广告')").parent().parent().remove();
  25. }
  26. change();
  27. var ref = "";
  28. ref = setInterval(function(){
  29. change();
  30. },1000);