How To: Remove top static bar with one line javascript code


If you are a regular digg user, you will find a static bar (could be frame) on top of your browser window on permalink pages. If you need to kill that static bar from the top for anonymous reason , simply add the following code of javascript just inside your head tag.

1
2
3
<script type="text/javascript">
if (top !== self) top.location.href = self.location.href;
</script>

All done!!
Cheers!



Comments

12.17.09

wow. this would be really helpful. Thanks for it.

12.17.09

And this promotes anonymity how ?