问题
I have a little snippet of code that I want to execute in the console: :screenshot --selector canvas.page
to make a screenshot of a specific canvas on a page. Now i was wondering if i can execute that in console when I press specific keys in Firefox. I don't know how I can accomplish that and am hoping for some help.
来源:https://stackoverflow.com/questions/65359612/automatically-executing-code-in-browser-console-on-key-press-firefox