need help adding hotkey to uBlock Origin

Add-ons for Pale Moon and other applications
General discussion, compatibility, contributed extensions, themes, plugins, and more.

Moderators: FranklinDM, Lootyhoof

joe04

need help adding hotkey to uBlock Origin

Unread post by joe04 » 2016-11-27, 18:33

My goal is to add a hotkey to uBlock Origin (uBO) to view the panel, so that I don't have to click the toolbar button. (I like to keep mousing to a minimum, and viewing the uBO domain list is the one browser function I regularly use that doesn't have a hotkey or menu item available.)

The first thing I did was request this to be added by gorhill, the uBO developer, but he declined citing that since Chromium already has this enabled in its extension framework then it's up to Firefox and others to add it too. That's understandable, given all the work he's done and continues to do on his wonderful cross-browser extension. But I still want it and actually already have my own modified version of the extension with some panel cosmetic enhancements.

So I've attempted to add the hotkey myself (actually, a Tools menu item since that was more readily available than a hotkey to copy from bootstrap examples) but can't get it to hook into uBO properly.

This is the uBO thread I opened yesterday (already declined by gorhill) with the details including a diff of my additions:
https://github.com/gorhill/uBlock/issues/2188

I'm a javascript novice (zero web dev experience, a bit of low-hanging-fruit greasemonkey hackery). And you can probably see from my github diff I've been monkeying around without much insight.

Can someone take a look at this and advise how to proceed? Any help is very much appreciated!

joe04

added 2 hotkeys to uBlock Origin

Unread post by joe04 » 2016-12-01, 22:50

Took a while, but thankfully I was able to figure it out and now have 2 new hotkeys in uBO!

Details and patch here:
https://github.com/gorhill/uBlock/issues/2207