/** * Options entry → Control Center Settings (single settings experience). */ (function () { const browser = typeof chrome !== 'undefined' && chrome.runtime ? chrome : typeof browser !== 'undefined' ? browser : chrome; const url = browser.runtime.getURL('dashboard.html#settings'); // Prefer replacing the options tab with the full dashboard if (browser.tabs?.create && browser.tabs?.getCurrent) { browser.tabs.getCurrent((tab) => { if (tab?.id != null && browser.tabs.update) { browser.tabs.update(tab.id, { url }); } else { location.replace(url); } }); } else { location.replace(url); } })();