10 April 2009

blocking the DiggBar in Habari

Challenged by RandyWalker and inspired by John Gruber's post about blocking the DiggBar, I whipped up a quick plugin to do just that for Habari.

After all, why should all the other blog engines have all the fun?

But I'm getting ahead of myself. The DiggBar is a new feature that adds lots of great features to pages and sites linked on Digg. And to do so, it shortens the URL (to one starting with http://digg.com/) and loads the target in a frame.

In a frame?! I thought we were done with frames half a decade ago.

There are myriad reasons why this is a bad thing, and not all of them involve Digg stealing revenue, and other sites have covered it better, but in short, it's a bad thing.

So, how can you avoid it framing your Habari site?

DiggBar Blocker

You can download* it here: Current Version.

Unzip that in your /user/plugins/ directory, and activate it in your admin plugins page.

By default, it will provide a brief message ("This site does not support use of the DiggBar.") and a link to the correct page with your URL on it. I also added an option to bypass the nice message, and just reload the target outside of the bar.

If you have questions, comments, suggestions, please leave them below or submit a ticket on the Habari-extras Trac.

* Or view the source here.

one comment on blocking the DiggBar in Habari

add your comment

I can and will moderate any and all comments at my discretion. I will not ever display or reveal your email address without your permission.

your contact information
your comment