TheOldReader - add links & full screen

Improve TheOldReader RSS feed reader interface

As of 2018-02-04. See the latest version.

// ==UserScript==
// @name TheOldReader - add links & full screen
// @description Improve TheOldReader RSS feed reader interface
// @namespace https://greasyfork.org/ro/scripts/37253
// @include *theoldreader.com*
// @include https://theoldreader.com/feeds/*
// @grant GM_addStyle
// @version 1.1
// ==/UserScript==

// Changes to interface
// =============================================================

GM_addStyle ( ".navbar-fixed-top { top: -55px !important}"); // hide header
GM_addStyle ( ".reader .body-fixed-top { top: 10px !important; }");   //lift article reading area
GM_addStyle ( ".static .page-header { margin-bottom: 2px; }"); //change feed identifying area
GM_addStyle ( ".page-header { margin-top: -2px; }"); //change feed identifying area
GM_addStyle ( ".reader .floating { background: #dcdcdc;  padding: 3px 0 5px 0; }"); //change feed identifying area
GM_addStyle ( ".floating { padding-left: 10px !important; padding-right: 10px !important; }");  // add some space
GM_addStyle ( ".cell.sidenav-cell { top: -6px !important;  }"); //lift feed summary area from the left
GM_addStyle ( ".sidebar .nano { 106% !important; }");      //not working

GM_addStyle ( ".well { background:none; }");      //eliminate grey background
GM_addStyle ( ".post .btns { display:none; }");      //eliminate share buttons at the end of some articles


GM_addStyle ( "XXXX { YYYY }");      //****



// Add links
// =============================================================

document.getElementById("refresh-btn").addEventListener("click", myFunction);

myFunction();

var elemente = document.getElementsByTagName('strong');
for (var j = 0; j < elemente.length; j++) {
    elemente[j].addEventListener("click",myFunction_cover );
}

function myFunction_cover() {
    var titlu=document.getElementsByTagName("h1")[0].innerHTML;
    for(k=0;k<10;k++) {
        setTimeout(function(){
            var t=document.getElementsByTagName("h1")[0].innerHTML;
            if (t !== titlu) {
                //alert(k + ' / ' + titlu + ' // ' + t);
                myFunction();
            }
        } , 2000);
    }
}

function myFunction() {
    var a, links;
    links = document.getElementsByClassName('well clearfix post listview');
    for (var i = 0; i < links.length; i++) {
        a = links[i];
        a.innerHTML=a.innerHTML.replace(/(<strong>)([^<]*?)(<\/strong>[\S\s]*?<h3 dir="ltr">)([\S\s]*?)(<\/h3>)/g , "$1$4$3$4$5");
    }
}