TheOldReader - add links & full screen

Improve TheOldReader RSS feed reader interface

  1. // ==UserScript==
  2. // @name TheOldReader - add links & full screen
  3. // @description Improve TheOldReader RSS feed reader interface
  4. // @namespace https://greasyfork.org/ro/scripts/37253
  5. // @include *theoldreader.com*
  6. // @include https://theoldreader.com/feeds/*
  7. // @grant GM_addStyle
  8. // @version 1.3
  9. // ==/UserScript==
  10.  
  11. // Changes to interface
  12. // =============================================================
  13.  
  14. GM_addStyle ( ".navbar-fixed-top { top: -55px !important}"); // hide header
  15. GM_addStyle ( ".reader .body-fixed-top { top: -10px !important; }"); //lift article reading area
  16. GM_addStyle ( ".static .page-header { margin-bottom: 2px; display:inline-flex; }"); //change feed identifying area
  17. GM_addStyle ( ".page-header { margin-top: 22px; }"); //change feed identifying area
  18. GM_addStyle ( ".reader .floating { background: #dcdcdc; padding: 3px 0 5px 0; }"); //change feed identifying area
  19. GM_addStyle ( ".floating { padding-left: 10px !important; padding-right: 10px !important; }"); // add some space
  20. GM_addStyle ( ".static .page-header h1 { font-size:16px; }"); //****
  21. GM_addStyle ( ".page-header .feedtop-buttons { padding-right:20px; }"); //****
  22. GM_addStyle ( ".cell.sidenav-cell { top: -21px !important; }"); //lift feed summary area from the left
  23. GM_addStyle ( ".sidebar .nano { 106% !important; }"); //not working
  24.  
  25. GM_addStyle ( ".well { background:none; }"); //eliminate grey background
  26. GM_addStyle ( ".post .btns { display:none; }"); //eliminate share buttons at the end of some articles
  27.  
  28. //GM_addStyle ( "a.dropdown-toggle { background-color: teal; top: 60px; }"); //eliminate share buttons at the end of some articles
  29.  
  30. GM_addStyle ( ".reader.has-notice .notice.nice { padding: 0px !important; max-height: 0px !important; display:none }"); //hide notification
  31. GM_addStyle ( "navbar navbar-default navbar-fixed-top { max-height: 0px !important }"); //hide notification
  32. GM_addStyle ( "body.has-notice .navbar { margin-top: 0px !important }"); //hide notification
  33.  
  34. GM_addStyle ( "XXXX { YYYY }"); //****
  35. GM_addStyle ( "XXXX { YYYY }"); //****
  36.  
  37.  
  38.  
  39. // Add links
  40. // =============================================================
  41.  
  42. document.getElementById("refresh-btn").addEventListener("click", myFunction);
  43.  
  44. myFunction();
  45.  
  46. var elemente = document.getElementsByTagName('strong');
  47. for (var j = 0; j < elemente.length; j++) {
  48. elemente[j].addEventListener("click",myFunction_cover );
  49. }
  50.  
  51. function myFunction_cover() {
  52. var titlu=document.getElementsByTagName("h1")[0].innerHTML;
  53. for(k=0;k<10;k++) {
  54. setTimeout(function(){
  55. var t=document.getElementsByTagName("h1")[0].innerHTML;
  56. if (t !== titlu) {
  57. //alert(k + ' / ' + titlu + ' // ' + t);
  58. myFunction();
  59. }
  60. } , 2000);
  61. }
  62. }
  63.  
  64. function myFunction() {
  65. var a, links;
  66. links = document.getElementsByClassName('well clearfix post listview');
  67. for (var i = 0; i < links.length; i++) {
  68. a = links[i];
  69. a.innerHTML=a.innerHTML.replace(/(<strong>)([^<]*?)(<\/strong>[\S\s]*?<h3 dir="ltr">)([\S\s]*?)(<\/h3>)/g , "$1$4$3$4$5");
  70. }
  71. }
  72.  
  73.  
  74.