x
Please log in with password to access chatbox.
Index | Back | Reply | New Topic
Ideas
Supermode "All Done" indicator | |
2009-01-27 14:32 | bunnytowne.myminicity.com | This may have been suggested before, if so my apologies for repeating it. I manually change proxies when I notice that supermode has finished, would it be possible to have the tab title changed when all sites have been visited. This would provide a more timely indicator that it is time to switch proxy and start again.
Thanks for your consideration. Chris |
2009-01-27 15:04 | MisaMili | I'd suggest you to create a popup window which will notify you when visits are finished.
You can do this with supermode extension ( Turn ON automation, Create a .vbs script which will get executed every time Supermode finishes its run.) Example script (Will open pop-up window) Open notepad, paste this code and save as any-name.vbs : x=msgbox ("All Done" ,0+64, "Utopia.lv - Supermode.") P.S Don't forget to enter the path to script in extension options. (FF3 Go to: Tools -> Add-ons -> Supermode (click options and enter your path. example: C:\done.vbs ) Hope it helps. :) |
2009-01-27 16:02 | bunnytowne.myminicity.com | That would work on a windows system but I am using Linux. I guess a javascript function would work though. |
2009-01-27 16:42 | MisaMili | Didn't know you're on linux.
I'm not familiar with javascripts. What about bash/dialog ? You have them installed? |
2009-01-27 17:17 | utopia.lv | Supermode automation is not compatible with Linux at the moment, but I am planning to add support for it with the next Supermode version.
I don't know how to change window title from JavaScript. The following code does not work "document.title = 'done';". |
2009-04-23 07:20 | utoland.myminicity.com | Not sure if this actually works because supermode.js is difficult to read ;-)
Anyway, this code might be some help. Assuming the user had opened other tabs during supermode. Modified from https://developer.mozilla.org/en/Code_snippets/Tabbed_browser function supermodeAllDone() { var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); var browserEnumerator = wm.getEnumerator("navigator:browser"); var found = false; var url = "http://utopia.lv/exchange/?do=supermode"; while (!found && browserEnumerator.hasMoreElements()) { var browserWin = browserEnumerator.getNext(); var tabbrowser = browserWin.getBrowser(); var numTabs = tabbrowser.browsers.length; for(var index=0; index<numTabs; index++) { var currentBrowser = tabbrowser.getBrowserAtIndex(index); if (url == currentBrowser.currentURI.spec) { tabbrowser.selectedTab = tabbrowser.mTabs[index]; currentBrowser.contentDocument.title = "All Done"; browserWin.focus(); // overkill? found = true; break; } } } } Hope this helps. |
2009-04-23 22:31 | utopia.lv | Thanks for the code. I'll try to implement it with the next Supermode version. :) |