Forum AutoIt FR

Un clic sur le lien d'un sujet permet d'aller au premier message non lu.

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        Forum AutoIt FR
// @namespace   http://www.autoitscript.fr/forum/
// @include     http://www.autoitscript.fr/forum/*
// @version     1
// @grant       none
// @description Un clic sur le lien d'un sujet permet d'aller au premier message non lu.
// ==/UserScript==

var nodesTopictitle = document.evaluate("//*[@id='page-body']//a[@class='topictitle'][preceding-sibling::node()[contains(@href, '#unread')]]",
                                        document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);

for (var i = 0; i < nodesTopictitle.snapshotLength; i++) {
    nodesTopictitle.snapshotItem(i).href += '&view=unread#unread';
}