Search code examples
javascriptgoogle-chrome-extension

Chrome-extension: Append functions to right click menu


How would I append functions to the right click menu in the browser? E.g something appended to the right click menu which does function dosomething() which is located in my extension.


Solution

  • Found out how, using the contextmenu API https://developer.chrome.com/docs/extensions/reference/contextMenus/