I'm scraping some websites and I would like to get rid of the Adobe Flash advertisements on the page. I assume they are "objects" so I did:

```
window.setInterval(MyFunction, 900);

function MyFunction() { 

  $('object').remove();

alert('test'); 

} 

```

I see the alert, but the "objects" are not removed. How is that possible? What else can I try?

This is how (one of) the advertisements looks:

```
<script src="http://ad.nl.doubleclick.net/adj/P4442.Nu.nl/home;sz=468x60,728x90;dcopt=ist;tile=1;kw=;tt=1000;gr=-5;rg=0;nk=0;u=m6re350ar;;ord=4884951752610505?" type="text/javascript" style="position: relative; margin: 0px; padding: 0px; width: auto; height: auto; border: none; float: left; background-image: none; background-position: initial initial; background-repeat: initial initial;"></script>

```