百度移动去广告

这只针对百度移动 也去除掉了底部总要打开app

  1. // ==UserScript==
  2. // @name 百度移动去广告
  3. // @namespace http://tampermonkey.net/
  4. // @version 5.4.6
  5. // @icon https://www.baidu.com/favicon.ico
  6. // @description 这只针对百度移动 也去除掉了底部总要打开app
  7. // @author xiaobao
  8. // @match *://*.baidu.com/*
  9. // @run-at document-start
  10. // @grant GM_addStyle
  11. // @grant GM_getValue
  12. // @grant GM_setValue
  13. // @require https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js
  14. // ==/UserScript==
  15. document.addEventListener('DOMContentLoaded', function () {
  16. setInterval(() => {
  17. $(".ec_wise_ad").remove()
  18. $("#page-copyright").remove()
  19. let sz = document.querySelectorAll("body>div")
  20. sz.forEach(a => {
  21. if (a.style.length > 10) {
  22. if (a.style[0] == "position"
  23. && a.style[1] == "bottom"
  24. && a.style[2] == "left"
  25. && a.style[3] == "z-index"
  26. && a.style[4] == "width"
  27. && a.style[5] == "height"
  28. && a.style[12] == "background-attachment"
  29. && a.style[20] == "display") {
  30. a.remove()
  31. }
  32. }
  33. })
  34. }, 5000);
  35. })
  36.  
  37.  

QingJ © 2025

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