...
Code Block |
---|
|
document.body.innerHTML = '<h1>A heading</h1><div class="BLOCKone">Block</div>'; |
...
We can clear that out using:
Code Block |
---|
|
document.head.innerHTML = '' |
One is still left with any Javascript code which is present. Haven’t thought of an easy way to clear that yet.
Here’s the lot in one easy code fragment to copy paste into the Javascript console:
Code Block |
---|
|
document.body = document.createElement('body');
document.body.innerHTML = '<h1>A heading</h1><div class="BLOCKone">Block</div>';
document.head.innerHTML = '' |