I've recently been tasked w/ researching and possibly developing a solution that loads a destination web page, loads our script, and allows our script to perform a set of actions without running into cross browser security issues. For instance, our injected
script would need the ability to call other functions declared in the page, traverse the loaded DOM, and generally interact with the page as if the destination page mounted the script.
The last big goal is to automate all of this on the server. We'd need a windows service to potentially mount IE and feed it a url we want it to load along with our script we intend to inject.
a) Is it even possible with IE to inject a 3rd party script in this way and give it the level of access we need? I'm interested in something similiar to this Chrome project:
http://developer.chrome.com/extensions/content_scripts.html
b) Is it possible to mount IE this way via a windows service potentially? I've explored Powershell automation via this MSDN article
http://msdn.microsoft.com/en-us/magazine/cc337896.aspx but I'm not sure if this gives me the ability to inject the script as described.
Any guidance or assistance would be greatly appreciated.
Thanks!
- James
Blades Don't Need Reloading...