Currently, I am embarking on my first endeavor to create a Chrome extension. My goal is to develop a feature where users can select text within a text field on a website using their mouse and have the ability to modify it by clicking on a context menu.
Below is the snippet from eventPage.js:
chrome.contextMenus.onClicked.addListener(function(clickData) {
if (clickData.menuItemId === "change" && clickData.selectionText) {
}
});
And here's an excerpt from the manifest.json:
"background": {
"scripts": ["eventPage.js"],
"persistent": false
},
"permissions": ["contextMenus"]
I'm seeking guidance on what steps I should take next in order to accomplish this task. Any advice or tips would be greatly appreciated!