Share your AutoHotKeys for Firefox!

Discussion of features in Mozilla Firefox
Posts: 193
Joined: April 16th, 2014, 8:54 pm
Location: Colorado

Post Posted August 13th, 2021, 11:14 am

I've discovered AutoHotKey and am finding it very useful. I almost put this post in the "Extensions" forum because AHK can set up hotkeys specific to a particular program/window, allowing it to do things in Firefox that one would otherwise need an add-on for, and functioning similarly to the long lamented keyconfig add-on. (Not entirely, as AHK has no access to internal functions.) Here are a few examples I put together yesterday:
Code: Select all

#IfWinActive ahk_exe firefox.exe
Send !t
Sleep 30
Send o

Send ^t
Sleep 30
Send about:config{Enter}

Send +^j
Sleep 200
Send !^r
Sleep 3000
Send ^w

The first is a simple remapping that enters the hard-to-type degree symbol (°) with Ctrl-`, in any program, including Thunderbird. The rest work only in Firefox thanks to #IfWinActive.

Ctrl-Shft-O opens the Options tab by sending keys AltT, O.

RightCtrl-Shft-C opens about:config in a new tab. (LeftCtrl-Shft-C remains available to open Inspector.)

Ctrl-Shft-R restarts Firefox with the same tabs, via the Console, which it then closes again. Very useful for debugging user css.

AHK can also set up volume keys for keyboards that lack them, and virtually anything else I can think of. Please share your favorite hotkeys for Firefox! (A search here didn't turn up many.)

Return to Firefox Features

Who is online

Users browsing this forum: No registered users and 1 guest