Eishockeyforum - Forennavigation - Dashboard

Fügt der Navigationsleiste am Dashboard die fehlenden Links und Knöpfe hinzu.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name        Eishockeyforum - Forennavigation - Dashboard
// @namespace   ehf neu
// @include     http://www.eishockeyforum.at/index.php/Dashboard/
// @version     20150727
// @description Fügt der Navigationsleiste am Dashboard die fehlenden Links und Knöpfe hinzu.
// @grant       none
// ==/UserScript==

sitemap = $("#sitemap").children("a").children(".invisible")

var links1 = "<ul class=\"navigationMenuItems\"><li><a href=\"http\:\/\/www\.eishockeyforum\.at\/index\.php\/BoardQuickSearch\/?mode=unreadPosts\"><span>";
var links2 = "<\/span><\/a><\/li><li><a href=\"http\:\/\/www\.eishockeyforum\.at\/index\.php\/BoardQuickSearch\/?mode=undoneThreads\"><span>";
var links3 = "<\/span><\/a><\/li><li><a href=\"http\:\/\/www\.eishockeyforum\.at\/index\.php\/WatchedThreadList\/\"><span>";
var links4 = "<\/span><\/a><\/li><\/ul>"

var read1 = "<li class=\"jsOnly\"><a title=\""
var read2 = "\" class=\"markAllAsReadButton jsTooltip\" onmouseup=\"javascript\:setTimeout(function(){window.location.href=\'http\:\/\/www.eishockeyforum.at\/index.php\/BoardList\/\';}, 500)\"><span class=\"icon icon16 icon-ok\"><\/span><span class=\"invisible\">"
var read3 = "<\/span><\/a><\/li>"

var readeng = "Mark All Forums Read"
var readdeu = "Alle Foren als gelesen markieren"

if (sitemap.text() === "Sitemap") {
$("nav.navigationHeader").prepend(links1 + 'Unread Posts' + links2 + 'Undone Threads' + links3 + 'Watched Threads' + links4);
$("ul.navigationIcons").append(read1 + readeng + read2 + readeng + read3);
} else if (sitemap.text() === "Schnellnavigation") {
$("nav.navigationHeader").prepend(links1 + 'Ungelesene Beiträge' + links2 + 'Unerledigte Themen' + links3 + 'Abonnierte Themen' + links4);
$("ul.navigationIcons").append(read1 + readdeu + read2 + readdeu + read3);
};

$(function() {
	new WBB.Board.MarkAllAsRead();
});