reddirect: selectively disable reddit toolbar

Update 2:

This is not for Chrome extension “Reddit companion”, but rather for the old iframe-based reddit toolbar still used in short URLs.


Release 0.2 is available.  Chrome’s auto-update should handle it, but if it fails, please try installing again from the new link.

It fixes an issue that allowed blank lines in the Options page, which matches everything.  It will now trim and remove blank lines upon save.

Chrome extension for automatically turning off the reddit toolbar.  Weekend project that took several hours.

Warning: I only tested on my machine – 9.0.597.45 beta, Ubuntu 10.10.  You can see all the source code – it doesn’t do much so not much can go wrong, but use it at your own risk.

Google Code page is here.

Download it here.

Reddit toolbar is nice and all, but some sites don’t like being nested in a frame, which is the method that reddit toolbar uses to overlay the toolbar over target web pages.

For example, reddit toolbar doesn’t work with Twitter, StackOverflow, Flickr, and lately YouTube – when YouTube started to not work, I got a bit frustrated with manually clicking on [x] button to view the video.

Uses reddit JSON API to fetch the target URL before anything loads on*.  I tried doing it by going through DOM to get the target URL and doing a redirect, but this method ran into problems with JavaScript embedded in the target URL tried to do its own redirection.  Flickr was the worst offender.

I provide a default set, but you can configure the whitelist / blacklist in extension options.  Go to Chrome’s Options (wrench icon) -> Tools -> Extensions -> reddirect Options.

If you want to test it, go to the following URLs and click on some links:


  • optionally show the reddit submission title and provide a link to the comments page (like what the toolbar is supposed to do)
  • allow regex matching instead of just substring matching (indexOf)
  • prettier UI for the settings page.
  • try to work around that annoying alert() dialog displayed by StackOverflow. grrr…
  • icon.