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.

DOWNLOAD v0.2

Requirements

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

Features

  • 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.

Bugs

  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 extensions.vsc.open, 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 Responses to “View Source Choice v0.2”

  1. Deacon Nikolai 7-Jan-2006 at 19:21 #

    WHat is the difference in this and the View SOurce chooser in the Web Developer Extension?

  2. admin 8-Jan-2006 at 16:07 #

    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. Deacon Nikolai 10-Jan-2006 at 15:26 #

    Thanks Brian!

  4. James AkaXakA 11-Jan-2006 at 14:58 #

    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.

  5. brian 11-Jan-2006 at 17:45 #

    James: I didn’t test that route. Will fix it in the next release.

  6. James AkaXakA 13-Jan-2006 at 10:32 #

    Thanks Brian!

  7. James AkaXakA 22-Jan-2006 at 23:50 #

    Just remembered – ‘view selection source’ would have to be changed too – it’d really be infinitly handy to have that come up in a tab.

Trackbacks/Pingbacks

  1. Bite my bytes - 8-Jan-2006

    Few thoughs on si.blogsMeet.2006

  2. Pogovor » Some Changes Around Here - 10-Jan-2006

    [...] I’ve changed the permalink structure. With mod_rewrite available on my host box, I’ve updated it from (for example): http://brian.kingsonline.net/talk/index.php/archives/132 to http://brian.kingsonline.net/talk/archives/132 This means many broken links all over the place and possible syndication chaos for a bit, but is better in the long term. [...]

Leave a Reply