I have a link that gets embedded dynamically by a script I run on a site. Let's say for arguments sake that the link looks like:
<a href="http://foo/bar.php" target="_blank">some stuff</a>
Is it possible to set a CSS Selector that will set display:none on all links containing http://foo/? Am I going to have to write a JavaScript event handler that checks for the injection into the DOM and then hide it through that?
What's the best way to handle this? If it's with JavaScript, can I see an example in jQuery?