Greasy Fork 还支持 简体中文。

Autofull Inoreader For Safari

Automatically load full content article in Inoreader for Safari

  1. // ==UserScript==
  2. // @name Autofull Inoreader For Safari
  3. // @name:tr Safari için Otofull Inoreader
  4. // @namespace aytacesmebasi
  5. // @version 1.1
  6. // @description Automatically load full content article in Inoreader for Safari
  7. // @description:tr Safari'de açtığınız Inoreader'da tam içerikli makaleyi otomatik olarak yükleyin.
  8. // @author aytacesmebasi
  9. // @match https://www.inoreader.com/all_articles
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. //----- configure (change as desired) -----
  14. const waitTime = 200; // time in ms to wait for page load (1 sec: 1000ms)
  15. //-----------------------------------------
  16.  
  17. // Check and load full article if "article_dialog" is visible
  18. function checkAndLoadFullArticle() {
  19. try {
  20. const articleDialog = document.getElementById('article_dialog');
  21. if (articleDialog && window.getComputedStyle(articleDialog).display === 'block') {
  22. const button = document.querySelector('.icon-article_topbar_mobilize_empty');
  23. if (button) {
  24. button.click();
  25. }
  26. }
  27. } catch (err) {
  28. console.log('An error occurred:', err);
  29. }
  30. }
  31.  
  32. // Run the check on page load and at regular intervals
  33. setInterval(checkAndLoadFullArticle, waitTime);
  34. checkAndLoadFullArticle();