TheOldReader - add links & full screen

Improve TheOldReader RSS feed reader interface

За да инсталирате този скрипт, трябва да имате инсталирано разширение като Tampermonkey, Greasemonkey или Violentmonkey.

За да инсталирате този скрипт, трябва да имате инсталирано разширение като Tampermonkey или Violentmonkey.

За да инсталирате този скрипт, трябва да имате инсталирано разширение като Tampermonkey или Violentmonkey.

За да инсталирате този скрипт, трябва да имате инсталирано разширение като Tampermonkey или Userscripts.

За да инсталирате скрипта, трябва да инсталирате разширение като Tampermonkey.

За да инсталирате този скрипт, трябва да имате инсталиран скриптов мениджър.

(Вече имам скриптов мениджър, искам да го инсталирам!)

За да инсталирате този стил, трябва да инсталирате разширение като Stylus.

За да инсталирате този стил, трябва да инсталирате разширение като Stylus.

За да инсталирате този стил, трябва да инсталирате разширение като Stylus.

За да инсталирате този стил, трябва да имате инсталиран мениджър на потребителски стилове.

За да инсталирате този стил, трябва да имате инсталиран мениджър на потребителски стилове.

За да инсталирате този стил, трябва да имате инсталиран мениджър на потребителски стилове.

(Вече имам инсталиран мениджър на стиловете, искам да го инсталирам!)

// ==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");
    }
}