chrome.runtime.onInstalled.addListener(()=>{chrome.contextMenus.create({id:"clip-to-mindos",title:"Save to MindOS",contexts:["page","selection"]})});chrome.contextMenus.onClicked.addListener((e,n)=>{e.menuItemId!=="clip-to-mindos"||!n?.id||chrome.action.openPopup().catch(()=>{})});chrome.commands.onCommand.addListener(e=>{e==="clip-page"&&chrome.action.openPopup().catch(()=>{})});
