Keep Digging

John Gru­ber has called atten­tion to Digg’s sha­me­ful revi­val of site fra­ming, and I share his dis­gust. Though I’ve no expec­ta­tion of Digg traf­fic to my little blog, on prin­ci­ple I feel com­pe­lled to par­ti­ci­pate and block the Digg­Barr from obs­cu­ring my URLs.

Phil Nel­son and Shawn Medero’s Digg­Ba­rred hand­les this nicely for Word­press, using ser­ver scrip­ting to pre­sent a dif­fe­rent page to brow­sers loa­ding into a Digg­Bar frame. But to be polite to my little ser­ver slice, I like to use WP Super Cache in “full on” mode, which prec­lu­des con­sis­tent per-​​request pro­ces­sing by plugins.

I could use Apache mod_​rewrite rules to simi­lar affect, but that’s another layer of con­fi­gu­ra­tion I want to avoid and is, like PHP solu­tions, Digg-​​specific.

So I’d like to use client scrip­ting. Faruk Ateş has offe­red Digg­Bar killer JavaSc­ript, which is still Digg-​​specific and too nice.

Perhaps we should refine the typi­cal frame-​​busting approach (detect when the page is fra­med and reload the win­dow directly to the page) and take a frame-​​embracing stance (reload the page with their frame):

<script>
if (top !== self) {
  self.location.replace(document.referrer);
}
</script>

I’ve put that code here for tes­ting, which can be seen by vie­wing this post’s Digg URL: http://digg.com/u1mst.

  • Thomas M
    Actually, when I click the Digg URL to this post I get a window that constantly reloads adding another DiggBar to the top each time in a never-ending loop.
blog comments powered by Disqus
Aether Child Theme by altamente decorativo & bendler.tv | built on Thematic Framework