Idea for an extension (that I have no idea how to build)...
-
- Posts: 29
- Joined: July 2nd, 2004, 8:53 pm
Idea for an extension (that I have no idea how to build)...
I've got no experience in this kind of thing, but I've got a pretty good idea for an extension (if somebody else would be willing to build it :)). Basically, this program would add "Restart FireFox" to the File menu for those of us that are far too busy to close and re-open it ourselves after installing themese/extensions. If possible, it could even add a "Restart Firefox" button to the Extension/Theme manager, so that way we could restart it from the same box that pops up after we've installed an extension. Whatdya think?
- Schrade
- Posts: 1187
- Joined: March 17th, 2004, 12:24 am
Yeah I think it should be a menu option as well.
I currently have this ability using Customized Toolbar Buttons. I create my own button and then put this javascript into the CTB onClick section:
Works perfectly Very handy for people like me who are editing and testing themes/extensions a lot.
I currently have this ability using Customized Toolbar Buttons. I create my own button and then put this javascript into the CTB onClick section:
Code: Select all
a=Components.interfaces.nsIAppStartup,Components.classes["@mozilla.org/toolkit/app-startup;1"].getService(a).quit(a.eRestart | a.eAttemptQuit);
Works perfectly Very handy for people like me who are editing and testing themes/extensions a lot.
"Linux is for those who hate Windows, BSD is for those who love Unix." -Some Guy
Try my themes: QuBranch and QuTrunk
Fix Firefox's Resized image scrolling speed: <b>Bug 163975</b>
Try my themes: QuBranch and QuTrunk
Fix Firefox's Resized image scrolling speed: <b>Bug 163975</b>
- Pgr
- Posts: 233
- Joined: October 28th, 2003, 10:00 am
- Location: Lisbon, Portugal
If this could save all your open tabs (at least the current URL, or their full history if possible) this would be a very interesting thing to inlcude in the main Firefox code. The current "just restart Firefox" is very inconvenient and unstylish.
If they can't get rid of restarting, then a button like this would definetively be a touch of class.
If they can't get rid of restarting, then a button like this would definetively be a touch of class.
- Schrade
- Posts: 1187
- Joined: March 17th, 2004, 12:24 am
I use SessionSaver to save all my tabs and session history and whatnot. Try it out, works great.
"Linux is for those who hate Windows, BSD is for those who love Unix." -Some Guy
Try my themes: QuBranch and QuTrunk
Fix Firefox's Resized image scrolling speed: <b>Bug 163975</b>
Try my themes: QuBranch and QuTrunk
Fix Firefox's Resized image scrolling speed: <b>Bug 163975</b>
- Recall
- Posts: 1686
- Joined: November 7th, 2004, 11:07 am
- Location: United Kingdom
Schrade wrote:Yeah I think it should be a menu option as well.
I currently have this ability using Customized Toolbar Buttons. I create my own button and then put this javascript into the CTB onClick section:Code: Select all
a=Components.interfaces.nsIAppStartup,Components.classes["@mozilla.org/toolkit/app-startup;1"].getService(a).quit(a.eRestart | a.eAttemptQuit);
Works perfectly Very handy for people like me who are editing and testing themes/extensions a lot.
Could you make an extension out of that? I would be very grateful.
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9) Gecko/2008051206 Firefox/3.0
-
- Posts: 2225
- Joined: November 9th, 2004, 6:45 pm
- Location: Jakarta, Indonesia (UTC+7)
- Contact:
Schrade wrote:Yeah I think it should be a menu option as well.
I currently have this ability using Customized Toolbar Buttons. I create my own button and then put this javascript into the CTB onClick section:Code: Select all
a=Components.interfaces.nsIAppStartup,Components.classes["@mozilla.org/toolkit/app-startup;1"].getService(a).quit(a.eRestart | a.eAttemptQuit);
Works perfectly Very handy for people like me who are editing and testing themes/extensions a lot.
I use the similar code but instead of CTB, I use MenuManipulator to add a menuitem on File menu and insert the code to 'onclick' attribute
Code: Select all
function restartFox() { a=Components.interfaces.nsIAppStartup,Components.classes["@mozilla.org/toolkit/app-startup;1"].getService(a).quit(a.eRestart | a.eAttemptQuit); } if(event.button == 0) { var restart = confirm("Restart Firefox?"); if(!restart) return; restartFox(); } else if(event.button == 1) restartFox();
-
- Posts: 0
- Joined: December 31st, 1969, 5:00 pm
Seems to work well! Now, what's the possibility of this causing FF to crash? It restarts fairly quick which is good, but is there a possibility of being so quick that it still leaves FF as a running process causing it to crash on re-start? It hasn't happened but I'm just curious about that. Nice job on the extension!
-
- Posts: 1899
- Joined: November 10th, 2002, 12:35 pm
- Location: Mexico / Boulder Co.
- Contact:
- Recall
- Posts: 1686
- Joined: November 7th, 2004, 11:07 am
- Location: United Kingdom
Works very nice mate! Restarts very quick too
If ya fancy improving it
1: Button that I can add for restart when I right click customize toolbar
2: Option to get rid of the do I want to restart.
Other than that its perfect
If ya fancy improving it
1: Button that I can add for restart when I right click customize toolbar
2: Option to get rid of the do I want to restart.
Other than that its perfect
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9) Gecko/2008051206 Firefox/3.0
- symbol
- Posts: 175
- Joined: February 6th, 2005, 12:46 am
Recall wrote:Works very nice mate! Restarts very quick too
If ya fancy improving it
1: Button that I can add for restart when I right click customize toolbar
2: Option to get rid of the do I want to restart.
This sounds like a great extension, but I'm gonna wait until Option #2 is implemented before installing.
-
- Posts: 4221
- Joined: September 25th, 2004, 11:32 pm
symbol wrote:This sounds like a great extension, but I'm gonna wait until Option #2 is implemented before installing.
http://forums.mozillazine.org/viewtopic ... 38#1752238
-
- Posts: 29
- Joined: July 2nd, 2004, 8:53 pm