chrome.browserAction.onClicked.addListener(function(tab) { chrome.tabs.create({ url: 'chrome://flags/#enable-force-dark' }); });