去除百家号聚合框

百度搜索时去除百家号聚合信息框

  1. // ==UserScript==
  2. // @namespace y7Greasy
  3. // @name 去除百家号聚合框
  4. // @description 百度搜索时去除百家号聚合信息框
  5. // @version 0.0.0.1
  6. // @grant none
  7. // @author y7
  8. // @license MIT
  9. // @create 2019-04-09
  10. // @connect www.baidu.com
  11. // @include *://ipv6.baidu.com/*
  12. // @include *://www.baidu.com/*
  13. // @include *://m.baidu.com/*
  14. // @include *://xueshu.baidu.com/*
  15. // ==/UserScript==
  16.  
  17. (function() {
  18. 'use strict';
  19. var divTpl = getElementByAttr("div","tpl","sp_realtime_bigpic5")[0];
  20. if(divTpl)
  21. divTpl.style.display = "none";
  22.  
  23. function getElementByAttr(tag,attr,value)
  24. {
  25. var aElements=document.getElementsByTagName(tag);
  26. var aEle=[];
  27. for(var i=0;i<aElements.length;i++)
  28. {
  29. if(aElements[i].getAttribute(attr)==value)
  30. aEle.push( aElements[i] );
  31. }
  32. return aEle;
  33. }
  34. })();

QingJ © 2025

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