chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) => { if (changeInfo.status === 'complete' && tab.url.includes('accela.com')) { chrome.scripting.executeScript({ target: {tabId: tabId}, files: ['content.js'] }); } });