TheOldReader - add links & full screen

Improve TheOldReader RSS feed reader interface

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==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.3
// ==/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; display:inline-flex; }"); //change feed identifying area
GM_addStyle ( ".page-header { margin-top: 22px; }"); //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 ( ".static .page-header h1 { font-size:16px; }");      //****
GM_addStyle ( ".page-header .feedtop-buttons { padding-right:20px; }");      //****
GM_addStyle ( ".cell.sidenav-cell { top: -21px !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 ( "a.dropdown-toggle { background-color: teal; top: 60px; }");      //eliminate share buttons at the end of some articles

GM_addStyle ( ".reader.has-notice .notice.nice { padding: 0px !important; max-height: 0px !important; display:none }"); //hide notification
GM_addStyle ( "navbar navbar-default navbar-fixed-top { max-height: 0px !important }"); //hide notification
GM_addStyle ( "body.has-notice .navbar { margin-top: 0px !important }"); //hide notification

GM_addStyle ( "XXXX { YYYY }");      //****
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");
    }
}