Comments (2)
Try these:
func:openAddonsMgr
window.openAddonsMgr();
You can use the func shorthand with tbkeys and tbkeys-lite. Use the func shorthand for calling a function on the window object without an argument. For example, "func:MsgNewMessage" is the same as "window.MsgNewMessage();".
You can use the following code to easily extract a command using the error console. The trick does not work for all user interface elements.
function getCommand(event) {
window.removeEventListener("command", getCommand, true);
event.preventDefault();
event.stopPropagation();
alert(event.originalTarget.getAttribute("oncommand") ||
event.originalTarget.getAttribute("onclick"));
}
window.addEventListener("command", getCommand, true);
How to extract the "Add-ons and Themes" command:
- run code in error console
- open "Tools" menu
- left click "Add-ons and Themes" menu item
You can use the following code to show the elements for a given label attribute using the error console.
window.document.getElementsByAttribute("label", "Add-ons and Themes");
from tbkeys.
Great thx, it works, also I have a solution how to extract commands when I will need it, thank you 👍
from tbkeys.
Related Issues (20)
- Run stateful commands HOT 2
- plain key should not trigger main key bindings inside quick filter search and global search HOT 3
- Shortcuts not mapped on quick search box HOT 5
- MsgMoveMessage in V115 HOT 1
- Focus the message pane in V115 HOT 5
- [Question] Realize a shortcut, when there's no "cmd_***"? Example: HTML format "paragraph". HOT 16
- `func:MsgSortThreaded` results in `TypeError: win[cmdBody] is not a function` HOT 2
- vim visual line mode-like selection navigation HOT 5
- Allow a macro (i.e. sequence of commands) bound to a single key combination in tbkeys-lite
- Migrate settings HOT 3
- Is this repo still maintened yet? HOT 1
- Keys do not work on open email window HOT 5
- How to trigger fullscreen? HOT 3
- Unset "m" causes menu accelerator to fail HOT 3
- How to remove default tbkeys-lite keybindings HOT 6
- A command of a contextual menu item HOT 6
- The add-on is disabled on TB 128.0esr HOT 3
- TB v.128 HOT 2
- tbkeys captures the keyboard input in the quick filter fields in TB128.0esr
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tbkeys.