rtGui Grease-monkey Script.

8 views
Skip to first unread message

Jeremy

unread,
May 12, 2009, 11:42:31 AM5/12/09
to rtGui
Hey,

I hacked together a script for greasemonkey so you can 1 click add
torrents to rtGui. It makes a very small change to control.php.

The script is located here: http://userscripts.org/scripts/show/48830

The modification to config.php is to search for /Add torrent URL and
replace the if statement with :

// Add torrent URL...
if (isset($r_addurl)) {
if (isset($r_feedback)){ // hacked in for rtgui greasemonkey
script
$load_start = true; // Start the torrent download as soon as
we have it.
}
if ($load_start) {
$response = do_xmlrpc(xmlrpc_encode_request("load_start",array
("$r_addurl")));
die("Torrent added correctly");
}
else
$response = do_xmlrpc(xmlrpc_encode_request("load",array
("$r_addurl")));

}
//End

Then install the script, go to about:config in your browser (firefox)
and filter for rtGui change the fqdn to the location of your rtgui
install and off you go!

When you load a page with a torrent you will see a small icon beside
it, click this icon to add a torrent and automatically start it.

Hope you enjoy!

Simon

unread,
May 12, 2009, 3:24:30 PM5/12/09
to rt...@googlegroups.com
You can also set up a 'watch' directory, and just set your browser to
automatically download .torrent files to that dir. - Another '1 click
torrent add' solution :)

-Simon

2009/5/12 Jeremy <jer...@tirrell.ca>:
Reply all
Reply to author
Forward
0 new messages