简书去广告

去除网页版简书在阅读时的广告弹窗

目前為 2023-04-29 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name 简书去广告
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description 去除网页版简书在阅读时的广告弹窗
  6. // @author wkstudy
  7. // @match https://www.jianshu.com/p/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=jianshu.com
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. var id = setInterval(function() {
  16.  
  17. var leftad = document.getElementById('duilian002') // 左边广告
  18. var rightad = document.getElementById('aaabbbc') // 右边广告
  19. var btmad = document.getElementById('close1'); // 右边底部广告1
  20. var note =document.getElementById('note'); // 右边底部广告2
  21.  
  22.  
  23. if( leftad || rightad || btmad || note) {
  24. leftad && leftad.parentNode.parentNode.remove();
  25. rightad && rightad.parentNode.parentNode.remove();
  26. btmad && btmad.parentNode.remove();
  27. note && note.remove()
  28. } else {
  29. console.log('success remove ads')
  30. clearInterval(id)
  31. }
  32.  
  33. }, 500)
  34. })();

QingJ © 2025

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