I can only see how to execute the script in a top-level frame or in all frames on a specific tab:
chrome.tabs.executeScript(integer tabId, object details, function callback)
Where, if details.allFrames
is true
, then it will be executed in each subframe, but if it is false, it will be executed only in the top-level frame. How can I provide a frameId
to execute a script in?
source share