百度热点搜索屏蔽

百度热点搜索栏目屏蔽

目前为 2017-07-21 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Block Baidu Hot List
  3. // @name:zh-CN 百度热点搜索屏蔽
  4. // @namespace h
  5. // @version 0.04
  6. // @description Just Block Baidu Hot List
  7. // @description:zh-CN 百度热点搜索栏目屏蔽
  8. // @author hoothin
  9. // @include http*://www.baidu.com/*
  10. // @include http*://m.baidu.com/*
  11. // @grant none
  12. // @run-at document-start
  13. // @license MIT License
  14. // @compatible chrome 测试通过
  15. // @compatible firefox 未测试
  16. // @compatible opera 未测试
  17. // @compatible safari 未测试
  18. // @contributionURL null
  19. // @contributionAmount 1
  20. // ==/UserScript==
  21.  
  22. (function() {
  23. 'use strict';
  24.  
  25.  
  26.  
  27. function addLoadEvent(func) {
  28. var oldonload = window.onload;
  29. if (typeof window.onload != 'function') {
  30. window.onload = func;
  31. } else {
  32. window.onload = function() {
  33. oldonload();
  34. func();
  35. };
  36. }
  37. }
  38.  
  39.  
  40.  
  41. function t(){
  42. $(".opr-toplist-table").remove();
  43. $(".opr-recommends-merge-panel").remove();
  44. $(".opr-recommends-merge-mbGap").remove();
  45. console.log(" hot list table removed !");
  46. }
  47.  
  48. if('undefined' === typeof window.jQuery){
  49. addLoadEvent(t);
  50. }else{
  51. t();
  52. console.log("biu~");
  53. }
  54.  
  55. // if ('undefined' == typeof window.jQuery) { alert("1") } else { alert("0") }
  56.  
  57.  
  58. })();