Inoreader Auto-Load Full Article

Automatically load full content when opening an article in Inoreader

  1. // ==UserScript==
  2. // @name Inoreader Auto-Load Full Article
  3. // @namespace elddc
  4. // @version 1.1
  5. // @description Automatically load full content when opening an article in Inoreader
  6. // @author Elddc
  7. // @match https://www.inoreader.com/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. //----- configure (change as desired) -----
  12. const excludedSources = ['The Associated Press']; //subscriptions to exclude from auto-load
  13. const waitTime = 200; //time in ms to wait for page load (1 sec: 1000ms)
  14. //-----------------------------------------
  15.  
  16. loadFullArticle();
  17. window.onpopstate = loadFullArticle;
  18.  
  19. function loadFullArticle() {
  20. if (window.location.pathname.includes('article/')) {
  21. setTimeout(() => {
  22. try {
  23. const source = document.querySelector('.article_subtitle_author_wrapper');
  24. const button = document.querySelector('.icon-article_topbar_mobilize_empty');
  25. if (!excludedSources.includes(source.innerHTML.trim())) {
  26. button.click();
  27. }
  28. } catch (err) {
  29. console.log('page has not loaded');
  30. }
  31. }, waitTime);
  32. }
  33. }

QingJ © 2025

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