Github.com - Add "Watching" tab

Adds a "Watching" tab beside the "News Feed", "Pull Requests" and "Issues" tabs on the Github homepage

Versione datata 08/07/2014. Vedi la nuova versione l'ultima versione.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo 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        Github.com - Add "Watching" tab
// @namespace   r-a-y/github/watching/homepage
// @description Adds a "Watching" tab beside the "News Feed", "Pull Requests" and "Issues" tabs on the Github homepage
// @include     https://github.com/
// @version     1
// @grant       none
// ==/UserScript==

var nav = document.getElementsByClassName('pagehead-nav');

var watchingLink = document.createElement('a');
watchingLink.href = '/watching';
watchingLink.setAttribute( 'class', 'pagehead-nav-item' );
watchingLink.innerHTML = '<span class="octicon octicon-eye"> </span> Watching';

nav[0].appendChild( watchingLink );