Run script in newly opened tab
<p>I'm writing a chrome extension which will open new tab. My question is how can I get the newly opened tab? When I reach that new tab, I want to make some changes in the source code.
This; <a href="https://developer.chrome.com/extensions/tabs#method-create" rel="nofollow">https://developer.chrome.com/extensions/tabs#method-create</a> creates new tab. But I want to make some changes before user click the tab. (Change the selected value and run inside function)</p>

<p>How can I do this with method create?</p>