V2ex去广告

去除v2ex广告

当前为 2018-07-04 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name V2ex去广告
  3. // @description 去除v2ex广告
  4. // @copyright 2018, lhr(https://www.lhrsite.com/)
  5. // @version 1.0.0
  6. // @author lhr
  7. // @license MIT
  8. // @homepageURL https://github.com/zzlhr/tampermonkey-script/blob/master/v2ex/
  9. // @grant none
  10. // @run-at document-end
  11. // @include https://*.v2ex.com/*
  12. // @namespace https://gf.qytechs.cn/users/194548
  13. // ==/UserScript==
  14.  
  15. (function() {
  16. 'use strict';
  17. console.log('插件已加载');
  18. var sidebar_units = $('.sidebar_units');
  19. for(var i=0;i<sidebar_units.length;i++){
  20. $(sidebar_units[i]).attr('hidden','');
  21. }
  22.  
  23. var googles = $('.adsbygoogle');
  24. console.log(googles)
  25. for(i=0;i<googles.length;i++){
  26. $(googles[i]).parent().parent().attr('hidden','')
  27. }
  28. // Your code here...
  29. })();

QingJ © 2025

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