TheOldReader - add links

Improve TheOldReader RSS feed reader interface

اعتبارا من 11-01-2018. شاهد أحدث إصدار.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

// ==UserScript==
// @name TheOldReader - add links
// @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.0.1
// ==/UserScript==

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