mobileread.com forum - goto first unread redirect

mobileread.com forum - goes to first unread post.

Stan na 20-07-2020. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name       mobileread.com forum - goto first unread redirect
// @namespace  http://www.fmbv.nu/
// @version    0.4
// @description  mobileread.com forum - goes to first unread post.
// @match      http://www.mobileread.com/forums*
// @match      https://www.mobileread.com/forums*
// @copyright  2015, Jan Karjalainen
// @grant       none
// ==/UserScript==


(function() {

    try {

        var textLink="Jump to new";

        var nPage=-1;

	// opens 1.st such a link in tab

        for( var i=0; i < document.links.length; i++ ) {

            if( document.links[ i ].innerHTML.match( textLink )) {

                window.location.href=document.links[i].href
            }
        }
    }

    catch (e) {

        GM_log( 'mobileread.com forum - goto first unread Redirect - script exception: ' + e );
        alert ( 'mobileread.com - goto first unread Redirect - script exception: ' + e );

    }

}

)();