Chrome Extension: webRequest Redirect to Existing Tab, Without Opening New Tab
问题 When a user opens a certain page, I want to open that page in an existing tab, before a new tab is opened. I've tried with webRequest: chrome.webRequest.onBeforeRequest.addListener( function(details) { chrome.tabs.query({ url: 'https://example.com/' },function (tabs) { chrome.tabs.update(tabs[0].id, { url: details.url, highlighted: true }); }) }, {urls: ['https://example.com/']}, ['blocking'] ); I've also tried with webNavigation: chrome.webNavigation.onBeforeNavigate.addListener(function