0

My problem is like this one How to execute my content script on a newly opened chrome tab? but my newly tab is redirected to another URL and I need to run my script at this redirected URL.

chrome.tabs.create({
    url: url
}, function (newTab) {
    chrome.tabs.executeScript(newTab.id, {code: "alert('ok')"});
});

the problem is: the alert does not run in the newly created tab neither the redirected one.

"permissions": ["tabs", "http://*/*", "https://*/*","activeTab"]

Michael Pacheco
  • 948
  • 1
  • 17
  • 25

0 Answers0