** I DIDNT WRITE THIS, ALL CREDIT GOES TO NOVIK **
anyways, i'd like to share it because it's been of great use to me.
this only works with svn versions of rutorrent. It should also work on 2.8 when it drops.
go to your rutorrent files, in the plugin dir and make a new dir called new_tab
Code:
mkdir new_tab
Code:
cd new_tab
vi init.js
now add this to the init.js file
Code:
utWebUI.addNewTabWithURL = function( tabName, tabURL )
{
var frame = document.createElement("IFRAME");
frame.src = tabURL;
frame.id = "new_url";
frame.style.width = "100%";
frame.style.height = "100%";
frame.style.border = "0";
var plugin = new rPlugin("new_tab");
plugin.attachPageToTabs(frame,tabName);
}
utWebUI.addNewTabWithURL( "Google", "http://www.google.us" );
you can add multiple tabs in this way, just make a new_tab2 dir and add a new init.js with this info
Code:
utWebUI.addNewTab2WithURL = function( tabName, tabURL )
{
var frame = document.createElement("IFRAME");
frame.src = tabURL;
frame.id = "new_url2";
frame.style.width = "100%";
frame.style.height = "100%";
frame.style.border = "0";
var plugin = new rPlugin("new_tab2");
plugin.attachPageToTabs(frame,tabName);
}
utWebUI.addNewTab2WithURL( "Forums", "http://forums.rutorrent.org" );
anyways, i'd like to share it because it's been of great use to me.
this only works with svn versions of rutorrent. It should also work on 2.8 when it drops.
go to your rutorrent files, in the plugin dir and make a new dir called new_tab
Code:
mkdir new_tab
Code:
cd new_tab
vi init.js
now add this to the init.js file
Code:
utWebUI.addNewTabWithURL = function( tabName, tabURL )
{
var frame = document.createElement("IFRAME");
frame.src = tabURL;
frame.id = "new_url";
frame.style.width = "100%";
frame.style.height = "100%";
frame.style.border = "0";
var plugin = new rPlugin("new_tab");
plugin.attachPageToTabs(frame,tabName);
}
utWebUI.addNewTabWithURL( "Google", "http://www.google.us" );
you can add multiple tabs in this way, just make a new_tab2 dir and add a new init.js with this info
Code:
utWebUI.addNewTab2WithURL = function( tabName, tabURL )
{
var frame = document.createElement("IFRAME");
frame.src = tabURL;
frame.id = "new_url2";
frame.style.width = "100%";
frame.style.height = "100%";
frame.style.border = "0";
var plugin = new rPlugin("new_tab2");
plugin.attachPageToTabs(frame,tabName);
}
utWebUI.addNewTab2WithURL( "Forums", "http://forums.rutorrent.org" );
Last edited: