I am trying to change the text in the contextMenu when right clicked, but it doesnt work. Here is what I have so far. Any ideas?
function getword(info,tab) {
chrome.contextMenus.update('contextMenuId', {
title: "New text"
});
}
chrome.contextMenus.create({
'id': 'contextMenuId',
title: "First text",
contexts:["selection"],
onclick: getword
});