View Source Choice v0.2

Following the positive response to v0.1, here is the next iteration of this extension. New in this version is the ability to override the ‘View->Page Source’ menu item (Ctrl+U). It doesn’t override the key or the menu item, but rather the page source command. So it should still work if you have customised those items using an extension like keyconfig or menueditor. Another new feature is to open the source in the View Source window.



  • Firefox 1.5. I will not support earlier versions, but will later versions when the time comes.


  • Handle View Source requests that come in through the view-source: protocol.
  • Optional override of ‘View->Page Source’ (Ctrl+U) – *NEW*
  • Turn extension on and off in Options
  • Redirect View Source to current window (current default in Firefox), new tab, new window, or View Source window.


  1. The Options window does not size correctly, when launched from the Extension Manager. There is no other way to launch it currently. The bottom part is cut off obscuring one option, and that is to open source in the View Source Window. You can get around this by opening about:config, searching for the pref, and setting it to 3.

Planned Features

(v0.3 and beyond)

  • Load Source in Sidebar. You can see this in action in the excellent All-In-One Sidebar extension.
  • Load Source in external application. The ViewSourceWith extension has this functionality.
  • Add sub-menu to browser context menu with full list of choices to load Source.

9 Replies to “View Source Choice v0.2”

  1. Pingback: Bite my bytes
  2. Deacon, as far as I can see View Source Choice has more choices for viewing source. You can see it in current window, new tab, new window, or Page Source window. Web Developer only has new tab or Page Source Window.

    It really depends on what your needs are. For example, if you just want to view the source in a new tab and already have Web Developer installed, then you are better off sticking with that.

  3. Thanks for this great extention!

    The ctrl-U override really makes it worthwhile having, but I have run into a bug. When I select view source from my context menu, I still get the source in a new window, not in the tab where I want it. I’ve used menueditor to edit the submenu. Note that ctrl-u and tools->view source do work as intended though.

Leave a Reply

Your email address will not be published.