If you aren’t too happy with Digg adding a frame to your web pages, here’s a simple Javascript that you may add to your page HTML and it will prevent digg from adding a frame (aka DiggBar) to your web pages.

Just put this code anywhere inside the <head> tag – no PHP or server side coding required.

  1: <script type="text/javascript">
  2:  if (top !== self &&
  3:        document.referrer.match(/digg\.com\/\w{1,8}/))
  4:   top.location.replace(self.location.href);
  5:  </script> 

Credit: Faruk Ate

If you are visiting Digg, here are step-by-step instructions on how to disable the Diggbar.

You may also like:

  1. Yay! Digg is Permanently Removing the Diggbar for all but Digg Users
  2. Digg Finally Drops the DiggBar and Applies a 301 Redirect
  3. Turn Off the Digg Toolbar Forever
  4. Fight the forces of Social Media with Digg Attack
  5. How to Secretly Access Digg Without Letting Anyone Know