(function(){var _ref;globalThis.window||(globalThis.window=globalThis,globalThis.global=globalThis),window.UglifyJS_NoUnsafeEval=!0,globalThis.zeroDetectModeCB=null,globalThis.startupCheck=void 0,function(){if(chrome.contextMenus)chrome.contextMenus.removeAll(),chrome.contextMenus.create({id:"enableQuickSwitch",title:chrome.i18n.getMessage("contextMenu_enableQuickSwitch"),type:"checkbox",checked:!1,contexts:["action"]}),chrome.contextMenus.create({id:"network",title:"Network monitor",contexts:["action"]}),chrome.contextMenus.create({id:"tempRulesManager",title:"Temp Rules Manager",contexts:["action"]}),chrome.contextMenus.create({id:"reportIssue",title:chrome.i18n.getMessage("popup_reportIssues"),contexts:["action"]}),chrome.contextMenus.create({id:"reload",title:chrome.i18n.getMessage("popup_Reload"),contexts:["action"]}),globalThis.localStorage&&chrome.contextMenus.create({id:"options",title:chrome.i18n.getMessage("popup_showOptions"),contexts:["action"]})}(),null!=(_ref=chrome.contextMenus)&&_ref.onClicked.addListener((function(info,tab){var url;switch(info.menuItemId){case"network":return url=chrome.runtime.getURL("popup/network/index.html?tabId=")+tab.id,chrome.tabs.create({url:url});case"tempRulesManager":return url=chrome.runtime.getURL("popup/temp_rules/index.html"),chrome.tabs.query({url:url},(function(tabs){var props;return tabs.length>0?(props={active:!0},chrome.tabs.update(tabs[0].id,props)):chrome.tabs.create({url:url})}));case"options":return browser.runtime.openOptionsPage();case"reload":return chrome.runtime.reload();case"reportIssue":return OmegaDebug.reportIssue()}}))}).call(this);