DT Profile Page Torrent Limit Remover

By 1nfected Last update Jan 5, 2009 — Installed 26 times. Daily Installs: 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0
// ==UserScript==
// @name           DT Profile Page Torrent Limit Remover
// @namespace      http://www.desitorrents.com/
// @description    Removes the 15 torrent limit at member profile page.
// @include        http://www.desitorrents.com/forums*
// @author         1nfected
// ==/UserScript==

var uname;
var links = document.evaluate('//a[contains(@href,"member.php")]', document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);

for ( var link, i = links.snapshotLength ; link = links.snapshotItem(--i) ; ) {
		
	if(!GM_getValue('dtuname')) {
		uname = prompt("Please enter you DT username");
		GM_setValue('dtuname',uname);
	}

	uname = GM_getValue('dtuname');
	
	if(link.text == uname) {
		link.href += "&limit=-1";  // Show complete list of torrents downloaded by you.
		link.href += "&limit1=-1"; // Show complete list of torrents released by you.
	}
}