Remove top static bar with one line javascript code

Remove top static bar with one line javascript code

On 12.17.09, In Miscellaneous, by Steve

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
if (top !== self) top.location.href = self.location.href;

All done!!
Cheers!

Scroll to Top