Jump to content

I'm writing a WebUI-like firefox extension


hiddenriver

Recommended Posts

I don't know how or why, but when I have this uTorrent WebUI Add-On install and enabled in Firefox 1.5 or Firefox 2.0, it creates the following issue:

I have the "Warn before closing multiple tabs" option enabled. So when I receive the dialog to either "Continue" or "Cancel" when closing out a window that has multiple tabs open, it doesn't matter whether I hit continue or cancel, it will still close the window.

Disabling or Uninstalling the utorrent webui add-on resolves this issue.

Link to comment
Share on other sites

  • Replies 173
  • Created
  • Last Reply

I have a strange problem which (I think) is related to the webui extension.

If I have both Firebug and this extension installed a lot of "AJAX"- websites stop working..

Google reader for instance doesn't work anymore..

If I remove this extension everything else works.. But also if I keep this extension and delete firebug everything else works.

I also posted this to the firebug forums.

Link to comment
Share on other sites

  • 4 weeks later...
  • 2 weeks later...
  • 2 weeks later...
  • 2 weeks later...
  • 1 month later...

Would it be possible to allow the plugin to connect to a https (SSL) address? Maybe just a checkbox in the options dialog? I've tried tried setting my address and the SSL port but it doesn't work...

!!!YES!!!

Modified extension now available at: http://www.phunkyfish.com/article/10/utorrenthttps

Ok, I delved into the plugin myself for a quick fix. Turns out modifying firefox extensions is not too bad so I made all the changes required and it works perfectly!

If whoever is in charge of the extension wants to add the mods into the actual extension that would be great...

The checkbox in the Options dialog has a number of dots after you click on it. Have no idea why!

Changes: Added a "UseHTTPS" checkbox to the options dialog.

Added a new function "gUTorrentPrefs.getConnectionType()" which returns "http" or "https" depending on whether or not the the checkbox is ticked.

Here are changes I made:

uTorrentStatus.js
-----------------

request.open("GET", "http://" + gUTorrentPrefs.serverAddress() + ":" + gUTorrentPrefs.serverPort() +
"/gui/?list=1", true, gUTorrentPrefs.adminUsername(), gUTorrentPrefs.adminPassword());

to

request.open("GET", gUTorrentPrefs.getConnectionType() + "://" + gUTorrentPrefs.serverAddress() + ":" + gUTorrentPrefs.serverPort() +
"/gui/?list=1", true, gUTorrentPrefs.adminUsername(), gUTorrentPrefs.adminPassword());

dragObserver.js
---------------

request.open("POST", "http://" + gUTorrentPrefs.serverAddress() + ":" + gUTorrentPrefs.serverPort() +
"/gui/?action=add-file", true, gUTorrentPrefs.adminUsername(), gUTorrentPrefs.adminPassword());

to

request.open("POST", gUTorrentPrefs.getConnectionType() + "://" + gUTorrentPrefs.serverAddress() + ":" + gUTorrentPrefs.serverPort() +
"/gui/?action=add-file", true, gUTorrentPrefs.adminUsername(), gUTorrentPrefs.adminPassword());


uTorrentSidebar.xul
-------------------

var uri = "http://" + gUTorrentPrefs.serverAddress() + ":" + gUTorrentPrefs.serverPort() + "/gui/";

to

var uri = gUTorrentPrefs.getConnectionType() + "://" + gUTorrentPrefs.serverAddress() + ":" + gUTorrentPrefs.serverPort() + "/gui/";

prefs.js
-------

serverPort: function() { return this.prefs.getIntPref("uTorrent.serverPort"); },

added the following below the above line

useHTTPS: function() { return this.prefs.getBoolPref("uTorrent.useHTTPS"); },
getConnectionType: function() { return (this.prefs.getBoolPref("uTorrent.useHTTPS")) ? "https" : "http"; },

options.xul
----------

<preference id="serverPort" name="uTorrent.serverPort" type="int"/>

added the following below the above line

<preference id="useHTTPS" name="uTorrent.useHTTPS" type="bool"/>

AND

<row>
<label value="Server port" control="txtServerPort"/>
<textbox id="txtServerPort" flex="1" type="number" preference="serverPort"/>
</row>

added the following lines below the lines above

<row>
<label value="Use HTTPS" control="boolUseHTTPS"/>
<checkbox id="boolUseHTTPS" flex="1" preference="useHTTPS"/>
</row>

Link to comment
Share on other sites

  • 3 weeks later...

I tried this extension (both SSL-enabled and original) and I encountered an odd bug. My Session Saver (part of Tab Mix Plus) no longer functioned at all, and my bookmarks all disappeared. The 214 KB bookmarks.html file was still there, and upon disabling the extensions, everything went back to normal.

I'm running Firefox 2.0.0.4 on Windows Vista Business with a bunch of extensions:

Adblock 0.5.3.043
Adblock Filterset.G Updater 0.3.0.5
CountdownClock 1.4.2
CustomizeGoogle 0.60
CuteMenus - Crystal SVG 1.8.2.1
DOM Inspector 1.8.1.4
Download Statusbar 0.9.4.6
DownThemAll! 0.9.9.10
Firefly 0.2.2
FireFTP 0.96.4
Flashblock 1.5.3.1
FoxyProxy 2.5.3
Fullerscreen 2.01
Gmail Notifier 0.5.6.5
Gmail Space 0.5.6
Greasemonkey 0.6.9.20070507.0
History Submenus 1.01
Homeland Security Threat Level 0.52
IE Tab 1.3.3.20070528
Image Zoom 0.3
Leet Key 1.3.5
McAfee SiteAdvisor 26.3
Menu Editor 1.2.3.3
Nightly Tester Tools 1.2.1
OperaView 0.6
Organize Status Bar 0.5.2
PlainOldFavorites 1.0
QuickJava 0.4.2.1
Stealther 0.98
Stop Autoplay 0.5
SubmitToTab 0.3.5
User Agent Switcher 0.6.9
wmlbrowser 0.7.13
XHTML Mobile Profile 0.3.7
XHTML Ruby Support 1.4.2006100801
µTorrent 0.1.5 (DISABLED)
Torrent with HTTPS 0.1.5 (DISABLED)

(I used BBCode's code to put it in a scrollable box, as there are a lot of extensions.)

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...

it is possible to assign the *.torrent file and let IE tab to add it onto utorrent GUI. Probably a right click shortcut on IE tab?

Apparently some torrent site only can be display via IE, so i use the firefox extension IE tab to display it.

Link to comment
Share on other sites

Hello,

i have used the program for more than 6 months, i was very happy with it, cos its very helpful and everything works fine without any problems.

But now after i have formated the system, and reinstalled everything , i get the same error like spacelord ( post #89 )

I can see the up/dl speed of the torrents into the statusbar but the sidebar stays empty??

Hmm.. hope any of u guys can help us.

Greetz Speakerz

BTW: Sorry for my english, its not my native language;)

Link to comment
Share on other sites

  • 5 weeks later...

Love the extension and have been using it for a few months.

Is there anyway we could display the webui in an overlay like the Tab Catalog extension by clicking on the status bar or a keyboard shortcut? I think this would be more useful and better suited to the webui than the statusbar, which is much to small for the webui. Just an idea, to improve a great FF extension.

Link to comment
Share on other sites

  • 5 months later...

There's a new version of the WebUI firefox extension (0.1.6) here:

http://thinkpond.org/downloads.html

The only change was to incorporate Phunkyfish' support for HTTPS / SSL. If you're using Phunkyfish' version already there's no reason to upgrade. If you don't know what HTTPS / SSL means there's no reason to upgrade either!

Link to comment
Share on other sites

  • 3 weeks later...

I can see the statusbar,but when i click to see the sidebar i get this

XML Parsing Error: not found file

Location: chrome://utorrent/content/uTorrentSidebar.xul

Line Number 1, Column 1:

any1 knows whats going on?

edit:

Problem fixed without doing anything.:/

Link to comment
Share on other sites

  • 2 weeks later...

Does anyone know if anything's being done to get this extension to work with Firefox 3? I know it's still in beta and all but I'm gonna see if the extension will work just by changing the version numbers in the install.rdf. That seems to work for lots of extensions so hopefully it will for this one too

UPDATE: I checked the error console and the error had to do with line 9 in prefs.js which has to do with HTTPS/SSL. I figured I'd try to use version 0.1.5 which doesn't have the HTTPS/SSL stuff in it. I changed the install.rdf to work for version 3 and it works now!

Of course it involves changing the WebUI installed on the host machine to a version compatible with Firefox 3 such as this one: http://www.blazingwolf.com/webui.zip

If someone a little more familiar with JavaScript and the extension want to figure out what's going on with this error I'm sure it's nothing huge. This site: http://developer.mozilla.org/en/docs/Firefox_3_for_developers has resources for changing extensions to be compatible with Firefox 3. I couldn't figure out what was wrong.

Link to comment
Share on other sites

  • 1 month later...

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...