Automatically executing code in browser console on key press (firefox)

爷,独闯天下 提交于 2021-02-11 14:17:42

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!