Github.com - Add "Watching" tab

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

Pada tanggal 08 Juli 2014. Lihat %(latest_version_link).

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==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 );