keyboard shortcut to restart firefox? [Mac]
49 posts
• Page 1 of 4 • 1, 2, 3, 4
I don't believe there is a built in restart keyboard shortcut, but you can use this extension to do that:
https://addons.mozilla.org/en-US/firefo ... /re-start/ The extension may no longer work in Fx 57, though. Give a man a fish, and he eats for a day. Teach a man to fish, and he eats for a lifetime.
I like poetry, long walks on the beach and poking dead things with a stick. Please do not PM me for personal support. Keep posts here in the Forums instead and we all learn. You can show a restart button in the Add-ons Manager with a css tweak in Fx 57.
http://kb.mozillazine.org/UserContent.css Edit: The header-small.png image isn't available in Fx 58. (fix below) Last edited by morat on November 20th, 2017, 11:25 pm, edited 1 time in total.
I usually have the developer toolbar visible and type 'restart' (rest: autocomplete with the tab key) to restart.
Thanks.
Out of curiosity, what function does the restart button call? Is there any way to map that function to a hotkey in macOS preferences > Keyboard > Shortcuts? The restart button calls an internal command that's only valid when the Add-ons Manger tab is selected.
Mac OS doesn't have access to internal commands. I don't know how you would politely close a process on the Mac OS. Windows OS http://nircmd.nirsoft.net/closeprocess.html http://nircmd.nirsoft.net/killprocess.html .
You could write a simple AppleScript to shut down FF and then restart it. You could then use Automator to assign that AppleScript to a keyboard shortcut. BEWARE: on Mac all keyboard shortcuts are global so what ever you select must be unique. . FF 84.0.1 - TB 78.6 - Mac OSX 10.13.6
morat: you can kill processes from terminal or activity monitor (which is sort of like task manager in Windows or whatever it's called)
RobertJ: oh ya, right. Forgot about that. Thanks. check it, I made a stupid simple applescript app tell application "firefox" to quit, delay, tell application Firefox to open. I have BetterTouchTool, created a firefox specific shortcut to open the script app with cmd-shift-q. I mean... just. Great.
Keep in mind that it can take unknown time for Firefox to close properly.
When you use builtin means to restart then it is known when Firefox has closed and Firefox is restarted properly in all cases and currently open tabs will reloaded (browser.sessionstore.resume_session_once = true). If you use an external script then you would have to guess how long you need to wait before starting Firefox. Otherwise you will get the alert dialog that Firefox is already running. On macOS, I don't think that's a problem. I've never seen a "firefox is already running" msg, or any other app for that matter. If I do, I'll increase the delay but right now it's at 1 second with no problems whatsoever. But even if I try to click on the firefox dock icon as it's quitting just nothing happens. Actually it automatically starts up again after it's quit. So I don't think it's possible to start up an app again before it's fully quit on macOS.
(
kill -9 ![]() ) Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript Hi, unfortunately morat's code no longer works on 58 beta or 59 nightly
![]() Edit: I haven't updated to 57 yet, so can't say if it still works there. It succeeds in Fx 57. It fails in Fx 58. The header-small.png image isn't available in Fx 58.
Try this:
http://dxr.mozilla.org/mozilla-release/ ... nsions.xul http://dxr.mozilla.org/mozilla-release/ ... -small.png http://dxr.mozilla.org/mozilla-release/ ... ersion.txt http://dxr.mozilla.org/mozilla-beta/sea ... nsions.xul http://dxr.mozilla.org/mozilla-beta/sea ... -small.png http://dxr.mozilla.org/mozilla-beta/sou ... ersion.txt
49 posts
Page 1 of 4 • 1, 2, 3, 4
Who is onlineUsers browsing this forum: zlaer and 7 guests |
![]() |