I know how to inject CSS into specified URLS using this method https://stackoverflow.com/a/7619104/1157283
However, what if I only want it to be injected into these pages when a browser action is clicked? I was reading about programmatic injection http://developer.chrome.com/extensions/content_scripts.html#pi and that makes it seem that you would have to get the tabIDs of all the pages you want to inject the CSS into, and then loop over them to inject the CSS for each tabID?
Is this what's required or am I completely off the mark here? It seems like it should be more straightforward to do than what I'm suggesting. Thanks!