Swiper广告去除

去除Swiper广告。

  1. // ==UserScript==
  2. // @name Swiper广告去除
  3. // @description 去除Swiper广告。
  4. // @version 1.0.0
  5. // @namespace Swiper广告去除
  6. // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
  7. // @author 会说话的鱼
  8. // @include *//www.swiper.com.cn/*
  9. // @require https://cdn.bootcdn.net/ajax/libs/jquery/1.9.1/jquery.min.js
  10. // @run-at document-start
  11. // @grant none
  12. // @rewritten_script_code javascript
  13. // @license GPLv3
  14. // ==/UserScript==
  15.  
  16. (function () {
  17. 'use strict';
  18. $(function () {
  19. init();
  20. });
  21.  
  22. var fun = setInterval(function() {
  23. var obj = $('.adsbygoogle');
  24.  
  25. if(obj.length) {
  26. // console.log(obj);
  27. obj.remove();
  28. }else {
  29. clearInterval(fun);
  30. }
  31. }, 1000);
  32. })();
  33.  
  34. function init() {
  35. $(window).on('scroll', function(){
  36. if($('.adsbygoogle').length) {
  37. $('.adsbygoogle').remove();
  38. }
  39. });
  40. }

QingJ © 2025

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