gregersrygg/crapLoader — pull request #10 by Steffen185 (2012-10-17 11:32:37+00:00)
Title: Ignore calls to document.open/close

I have found an ad that fails to load with crapLoader. The cause is that the ad calls document.open() and document.close(). Ignoring these calls solves the problem.

Test-case:

crap-ad.js:
```javascript
document.open();
document.writeln('Write');
document.close();
```

Works (output "Test Works"):
```html

Test

```

Fails without fix (document wiped):
```html

Test

```