What.CD Neutral-leech Browser

Inserts a neutral-leech browse link in main menu. Groups torrents.

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 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           What.CD Neutral-leech Browser
// @namespace      https://what.cd
// @description    Inserts a neutral-leech browse link in main menu. Groups torrents.
// @include        http://what.cd/*
// @include        https://what.cd/*
// @include        https://ssl.what.cd/*
// @version        1.0
// @date           2015-1-23

// ==/UserScript==



function createLi(x,y) {
	var li = document.createElement('li');
	li.id = 'nav_' + x;
	li.appendChild(y);
	return li;
}
function createNL(x) {
	var a = document.createElement('a');

	a.innerHTML = x;
	a.href = "https://what.cd/torrents.php?freetorrent=2&order_by=time&order_way=desc&group_results=1&action=advanced&searchsubmit=1";
	return a;
}

var target = document.getElementById('menu').getElementsByTagName('ul')[0];


var neutral = createNL("Neutral");
var neutralLi = createLi("Neutral",neutral);

target.appendChild(neutralLi);