Disabling Diggbar

Guillermo Esteves posted a JavaScript fix to disable use of the Diggbar on Tumblr sites. Below is a slightly modified version that uses location.replace() to prevent the Diggbar URL from appearing in your browser history:

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

(via Inky)

POWERED by FUSION

Heroes

Written and designed by Matthew Buchanan. Please give credit. Email