netfreak, I will look into whether some has developed any such code. As far as your second method goes, the problem is that it will block the content of the iframes only, and not the iframe itself. In other words, the iframe will display as a blank box, which is pretty ugly. (In Firefox, The adblock extension allows you to block iframes in a way that nothing appears at all.)
Sushubh, would your method not block all iframes??