AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
![]() First, go to chrome://extensions and refresh the extension. Standard commands are defined in the following format: Instead, in MV3 they trigger, and in MV2 they trigger or .Ĭommands are defined in an extension's manifest.json under the commands key. ![]() Action commands do not trigger the event. Action commands can have access to the current tab and can execute a script on the current page. Standard commands trigger the event, and you can listen to it in your background script or service worker.Īction commands map the shortcuts to your extension's action (if MV3) or browser action or page action (if MV2). A standard command runs in the background script or service worker and has no access to the current page or tab opened. A standard command and an action command. An extension can have at most 4 commands. Once done, the extension will be added to your Chrome browser.Ĭhrome commands allow an extension to register commands, or keyboard shortcuts, to provide ease of use for the users of that extension to perform certain actions through those shortcuts. Then, go to chrome://extensions/ on your Chrome browser, enable Developer Mode if you haven't from the top right, click on "Load unpacked" and choose the folder that you created for your extension. Also, make sure to download the icons from the GitHub repository first, or add your own icons.
0 Comments
Read More
Leave a Reply. |