Improved Gazelle Tracker Freeleech Browser

Inserts a freeleech 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         Improved Gazelle Tracker Freeleech Browser
// @name:zh      GTFB:Gazelle框架PT免费种子浏览
// @name:zh-CN   GTFB:Gazelle框架PT免费种子浏览
// @name:zh-TW   GTFB:Gazelle框架PT免費種子瀏覽
// @author       phracker from what.cd
// @namespace      https://greasyfork.org/zh-CN/users/284654
// @description    Inserts a freeleech link in main menu. Groups torrents.
// @description:zh      在主菜单中插入“免费种子”的选项,以便于选择。
// @description:zh-CN   在主菜单中插入“免费种子”的选项,以便于选择。
// @description:zh-TW   在主菜單中插入“免費種子”的選項,以便於選擇。
// @include        http*://*orpheus.network/*
// @include        http*://*redacted.ch/*
// @include        http*://*dicmusic.club/*
// @include        http*://*gazellegames.net/*
// @include        http*://*awesome-hd.me/*
// @include        http*://*alpharatio.cc/*
// @include        http*://*lztr.me/*
// @version        2.0
// @date           2019-06-12
// @grant          none

// ==/UserScript==



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

	a.innerHTML = x;
	a.href = "torrents.php?freetorrent=1&group_results=1&action=advanced&searchsubmit=1";
	return a;
}

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


var free = createFL("Freeleech");
var freeLi = createLi("Freeleech",free);

target.appendChild(freeLi);