TeamWork - Dashboard Links Mod

Change the "Dashboard" link to direct to "Today's Tasks" by default

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name       TeamWork - Dashboard Links Mod
// @namespace  http://teamworkmods.lukebutler.com
// @version    1.3
// @description  Change the "Dashboard" link to direct to "Today's Tasks" by default
// @match      https://*.teamwork.com/*
// @copyright  2015+, Luke Butler
// ==/UserScript==

var i = 0;
var dashboardButton;
while(i==0){
  dashboardButton = document.getElementById("tl_dashboard");
  if (typeof(dashboardButton) != 'undefined' && dashboardButton != null){
    var i = 1;
    var dashboardLink = dashboardButton.getElementsByClassName("ql")[0];
    dashboardLink.setAttribute("href", "dashboard?display=todaystasks");
    dashboardLink.innerHTML = "Today's Tasks";
  }
}