To try the thousands of add-ons available here, download Mozilla Firefox, a fast, free way to surf the Web!
CloseWelcome to Firefox Add-ons.
Choose from thousands of extra features and styles to make Firefox your own.
CloseReviews for Focus Regainer by Merwenus
Rated 5 out of 5 stars
Something is fishy with myfreezoo.com, just found out. Maybe can you add an option to put whitelists where not to run? :)
This review is for a previous version of the add-on (0.2.1-signed).Rated 4 out of 5 stars
How can I add a custom hotkey? Like I use F4 (simple, no ctrl, or anything else) to close tabs. Or F5 for refreshing page, can you please tell me what lines do I have to add to focusregainer.js to make it work? thanks
This review is for a previous version of the add-on (0.2.1-signed).This is not addon for custom hotkeys. Hotkeys are forwarded to browser as is.
If you want F5 then ugly way is to change first "if (event.ctrlKey) {" to "if (true) {".
For F4 you need to change also
"newEvent.initKeyEvent( "keypress", true, true, null, event.ctrlKey, event.altKey, event.shiftKey, event.metaKey, event.keyCode, event.charCode);"
to
"newEvent.initKeyEvent( "keypress", true, true, null, true, event.altKey, event.shiftKey, event.metaKey, event.keyCode, event.charCode);"
and
"} else if (VK==event.DOM_VK_Q || VK==event.DOM_VK_Q+d || VK==event.DOM_VK_W || VK==event.DOM_VK_W+d || VK==event.DOM_VK_E || VK==event.DOM_VK_E+d || VK==event.DOM_VK_R || VK==event.DOM_VK_R+d || VK==event.DOM_VK_T || VK==event.DOM_VK_T+d || (VK_>=event.DOM_VK_F1 && VK_<=event.DOM_VK_F11) || VK==event.DOM_VK_L || VK==event.DOM_VK_L+d || VK==event.DOM_VK_N || VK==event.DOM_VK_N+d) {"
to
"} else if (((VK==event.DOM_VK_Q || VK==event.DOM_VK_Q+d || VK==event.DOM_VK_W || VK==event.DOM_VK_W+d || VK==event.DOM_VK_E || VK==event.DOM_VK_E+d || VK==event.DOM_VK_R || VK==event.DOM_VK_R+d || VK==event.DOM_VK_T || VK==event.DOM_VK_T+d || VK==event.DOM_VK_L || VK==event.DOM_VK_L+d || VK==event.DOM_VK_N || VK==event.DOM_VK_N+d) && event.ctrlKey) || (VK_>=event.DOM_VK_F1 && VK_<=event.DOM_VK_F11)) {",
but this F4 will work only for flash, because see first sentence of this answer.
To create your own collections, you must have a Mozilla Add-ons account.