经济学人无限制助手

让你无弹窗、无限制的阅读经济学人。

  1. // ==UserScript==
  2. // @name 经济学人无限制助手
  3. // @namespace https://github.com/esmusssein777/awesome-script
  4. // @version 1.1
  5. // @description 让你无弹窗、无限制的阅读经济学人。
  6. // @author Ligz
  7. // @match *.economist.com/*
  8. // @require https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14. console.log('the economist script run!')
  15. let ad = ['fe-blogs__top-ad-wrapper','#piano__in-line-regwall','#bottom-page-wrapper','ribbon__clickable-banner','[aria-label="Advertisement"]']
  16. setInterval(() => {
  17. ad.forEach(item => {
  18. if ($(item)) {$(item).remove();}
  19. })
  20. }, 1000)
  21. let oldContent = "";
  22. if ($('.blog-post__text')) {
  23. oldContent = $('.blog-post__text').html();
  24. setInterval (() => {
  25. let newContent = $('.blog-post__text').html();
  26. if (newContent !== oldContent) {
  27. $('.blog-post__text').html(oldContent);
  28. }
  29. }, 100)
  30. }
  31. })();

QingJ © 2025

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