chrome.runtime.onInstalled.addListener(() => {
  console.log("AdsAmex AI Installed");
});

chrome.tabs.onUpdated.addListener((tabId, info, tab) => {
  if (info.status === "complete" && tab.url?.includes("market-qx.trade")) {
    chrome.scripting.executeScript({
      target: { tabId },
      files: ["inject/injector.js"]
    });
  }
});
