New Firefox Command Line helps you develop faster

Firefox 16, now on the Beta channel, has a fantastic feature that was mentioned briefly in the Aurora 16 blog post and first introduced in a separate post by Joe Walker, the feature’s creator. We’ve devoted a sizable portion of the new Developer Toolbar to the “command line”, which you may sometimes see us call GCLI (short for Graphical Command Line Interface). The command line gives you quick keyboard control over your tools and access to features that don’t have any other user interface.

I have made a video version of this blog post so you can see the command line in action:

To get to the Developer Toolbar and the command line, you can use the shift-F2 keyboard shortcut, or select Developer Toolbar from the Web Developer menu. If you want a quicker keyboard shortcut (this is a keyboard-heavy feature, after all!), you can use the Customize Shortcuts add-on to override a shortcut that you don’t use.

This command line is designed to be quick-to-type and discoverable. It will complete commands and parameters for you, to save you typing. There’s also a lot of help built in for the commands and their options. Here’s a look at the list of commands shipped with the initial command line release:

Control Your Tools

Personally, I hate having to reach for my trackpad. Removing my hands from the keyboard just slows me down. The problem is that it’s not easy to remember all of the keyboard shortcuts and traditional keyboard navigation is sometimes not as quick as reaching for the trackpad. Let’s look at how the new command line helps with this.

Let’s say that I forgot the keyboard shortcut for the Web Console. I could reach for my trackpad and hit the Web Console button that is conveniently located on the new Developer Toolbar. Or, I can just remember the keyboard shortcut for the command line and run the command console open. Voila! The console opens. What I actually type to run that command is “con<tab>o<tab><enter>”, which is quick to type indeed.

Want to see what else you can do with the Web Console? Type help console.I’m not even sure if there’s a keyboard shortcut for the Clear button in the Web Console. It’s easier to just run the console clear command than try to remember a seldom used shortcut.

Here are the current commands that control the developer tools:

  • console – open, clear and close the Web Console
  • dbg and break – many controls for the Debugger and breakpoints
  • edit – open the Style Editor on any of the CSS files loaded in the page
  • inspect – open the Page Inspector for a part of the page
  • resize – control the Responsive Design View
  • tilt – control the 3D page view

Let’s look at a more interesting example. The current design of mozilla.org is a responsive design. I want to see how the headings will show up on a smaller screen. If I’ve been working on the page, I would likely know some of the IDs and structure used in the page, so I could enter a command like:

inspect "#home-news h3"

The “inspect” command takes as a parameter a CSS selector that is used to select a node on the page. An easy way to jump into page inspection on any page is to type inspect body, because every page will have only one. After typing inspect "#home-news h3", I’ll see something like this:

In the style panel, I can see that the font size is set to 28px on this heading. How would it look on a phone-sized screen? Many phones report their size as 320×480. Let’s give that a try by typing the following command:

resize to 320 480

That turns on the Responsive Design View and sets the size at the same time. Here’s what the result looks like:

In the Style panel, we can now see that a media query with a max-width has taken effect and the font-size on the heading has dropped to 24px. We can also scroll down and see that the three columns that were side-by-side are now stacked. You could use the resize off command to turn off the Responsive Design View, or you could just hit <esc> a couple of times to get back to normal browsing mode.

Entirely New Developer Features

We’ve also added a handful of commands giving you some new and useful powers. Let’s take a look at a few of them.

Put your hands in the cookie jar

The “cookie” command highlights why this command line is a “graphical” command line and not your old ’70s-style command line. Running cookie list on mozilla.org, I see:

The output shows me all of the cookies that I have right now for this site. If I want to remove that cookie, all I have to do is type cookie remove WT_FPC or, if I think it’s easier, I can click on the “Remove” action listed next to the cookie and that command will be entered on the command line for me. I can also give myself new cookies using the “cookie set” command.

Screenshots for fun and profit

The “screenshot” command is really handy. At mozilla.org, I ran this command:

screenshot heading.png 0 false h1

This said to make a file called “heading.png”, wait 0 seconds before taking the shot, don’t include anything outside the visible browser window and finally grab just the element selected by the “h1” CSS selector. The result, saved conveniently in my Downloads directory, looks like this:

The command line provides hints inline for each parameter. Pressing F1 gives me even more help about the current parameter.

Stop the blinking!

The “pagemod” command lets you quickly make some bulk changes to the page. If you’re looking at a page and there’s something flashing at you, you can nuke it using the “pagemod remove element” command. See how everything on the page looks without classes by typing:

pagemod remove attribute class *

Or, take a look at how a different headline looks:

pagemod replace "Out of Date News" "The New Hotness"

Here’s a fun one that’s interesting to try out on popular sites:

pagemod remove element iframe

See if you can spot the bits that go away.

More goodies: grab the HTML, reconfigure Firefox

The “export html” command opens a new tab with an HTML snapshot of the current state of the page.

The “addon” command lets you quickly enable and disable addons. This is useful for isolating an add-on that might be causing you trouble, or for keeping some add-ons that you don’t use often turned off.

The “pref” command lets you easily change one of the many configuration options that Firefox has. For example, if you’d like to do some Firefox add-on development, you may find this command handy:

pref set devtools.chrome.enabled true

After that, use the “restart” command to restart the browser, and you’ll find that tools like Scratchpad have gained some extra powers for hacking on your browser. While many add-ons these days are restartless, you’ll find that there are still some popular ones that require a restart when enabling or disabling them, and the restart command is handy for that as well.

Add Your Own

One of the best features of command lines in general is that they are a very scalable form of user interface. Adding more commands does not add visual clutter in the UI you look at all day. Expect to see more commands in future Firefox releases, plus new commands that appear in add-ons.

In a future command line article, we’ll show you how to create your own commands. It’s easier than you might expect!


107 comments

  1. Rodrigo

    O_O This command line tool is awesome!

    August 30th, 2012 at 11:21

    1. Robert Nyman

      Glad you like it!

      August 30th, 2012 at 23:56

  2. Adrian Quevedo

    I’m really excited about this new features! Well done Firefox!

    August 30th, 2012 at 12:20

    1. Robert Nyman

      Thank you!

      August 30th, 2012 at 23:56

  3. Daniel

    YESSSS I CAN NOW RESTART FIREFOX EASILY, SHIFT+F2, RESTART!!!!!

    August 30th, 2012 at 12:36

    1. Robert Nyman

      Yes, indeed. :-)

      August 30th, 2012 at 23:56

  4. Martin

    I was way more impressed by the video demo than I thought I was going to be. Great work!

    August 30th, 2012 at 13:44

    1. Robert Nyman

      Thank you, good to hear!

      August 30th, 2012 at 23:57

  5. Flaki

    Since these new “integrated” developer features first surfaced I have hard time deciding on the positioning of these new features – against the other tools, especially (the seemingly mozilla-endorsed) Firebug extension.

    I myself have tried some of these new developer features but always returned to the “good ol’ ” firebug, as some of the features (especially network & js/debug related) are essential for my daily routine (I understand that the developer extension is not aimed to satisfy needs of serious developers, at least not yet, in its current form/features), so I thought I’d ask: how exactly these new development-related features are planned/positioned in the future?

    Are these a hope-to-be-replacement-of-firebug-and-other-dev-tools for the Mozilla/Firefox platform, or simply someone had an idea for a gorgeous UI (as it _is_ gorgeous, I must admit) Firebug should have and someone else coded the backend – so anyway, what exactly is happenning here?

    Excuse me for the long, and slightly off-topic post, I just had to ask. :)

    August 30th, 2012 at 13:55

    1. Kevin Dangoor

      Great questions and nicely phrased, thanks.

      I last addressed this in May, 2011: https://blog.mozilla.org/devtools/2011/05/25/the-relationship-between-firebug-and-mozilla-developer-tools/

      A lot of work has been shipped since then. In that blog post, I mentioned “new approaches to developer tools”, and things like this command line are a part of that.

      Generally speaking, Mozilla values user choice. Firebug has more than 3 million daily users, and people have told me how much they love it. And that’s great.

      Our goal remains for Firefox to have an awesome set of built-in tools and add-ons for web developers. We want Firefox to be a great platform for web developers whether you’re building for desktop or mobile.

      Ideally, all of the common use cases for which people use Firebug will be handled well by tools that we ship with Firefox. But, the built-in tools are not a user interface clone of Firebug (obviously) and the intention is not to duplicate every tiny bit of functionality.

      So, if people prefer the way Firebug does things, they can use Firebug. Firebug benefits from the core work being done improving Firefox for developer tools (such as the new debugger backend or the mechanism that was added for locking in pseudo-classes). Likewise, Firefox benefits from the years of refinements and real-world use in Firebug.

      In short: Firefox built-in tools continue to grow and improve rapidly, and Firebug does as well. Web developers win :)

      August 31st, 2012 at 07:03

      1. Flaki

        Well that sums it up nice, thanks! I’ll be looking forward the future features, keep up the good work then.

        August 31st, 2012 at 11:23

  6. Sean Palmer

    Wow, those commands are very well made. You’ve set a high bar for extension writers :) Does this share any code with the old Ubiquity project?

    August 30th, 2012 at 13:57

    1. Girish

      No, the code is not shared with ubiquity project. The concept is also different than ubiquity. The command line is just a tool to host, provide methods to create, and run commands. commands are made separately by developers and contributor, and ofcourse add-ons.

      August 31st, 2012 at 03:34

  7. some_loser

    allow addons to contribute new commands to this and it could be very cool.

    August 30th, 2012 at 14:36

    1. Paul

      It is already the case! See this file for example: http://mxr.mozilla.org/mozilla-central/source/browser/devtools/commandline/CmdConsole.jsm

      August 31st, 2012 at 03:26

  8. Sean

    Shift+F2 doesn’t work using Nightly on my Mac.

    August 30th, 2012 at 15:19

    1. Robert Nyman

      Have you tried holding down the Fn key as well?

      August 30th, 2012 at 23:58

  9. Anonymous

    Why on Earth does Shift-F2 not close the GCLI once open? Neither does ESC, nor is there any command to close it. How are you supposed to do this other than my mousing over to the X and clicking on it (bleurgh)?

    August 30th, 2012 at 15:23

    1. Paul

      We are still trying to see what works best. A lot of people reported the same feedback. We are working on improving that.

      August 31st, 2012 at 03:25

    2. Joe Walker

      You’re right that’s annoying. What should happen, but we’re not got it nailed yet is that shift+f2 should focus the command line if it’s not got focus yet (opening it if needed) BUT if the command line already has focus, it should close it. That should land in a week or so. It’s bug 773185 if you’re interested.

      August 31st, 2012 at 03:29

  10. B. Moore

    I’ve got a BIG problem. Help Please!!!

    I pull up the new Inspector and then click to open the “Styles” panel and BAM it is now pushed off the right side of my screen. There is no way to see or close the “Styles” panel. I have to go to about:config to turn off the panel.

    Why is it being push off my screen?

    I can show you a screenshot if that would help?

    August 30th, 2012 at 21:48

    1. Robert Nyman

      Best way is probably to file a bug so the developers can follow up on it. There you can also attach screenshots.

      Thank you!

      August 31st, 2012 at 00:03

      1. B. Moore

        I was praying there was an easy fix for my problem….. i guess not :(

        August 31st, 2012 at 07:26

    2. Paul

      Yes, a screenshot would help.

      Did you try to re-click on the “style” button?

      August 31st, 2012 at 03:23

      1. B. Moore

        the “style” button gets pushed off the right side of the screen just like the “style” panel.

        August 31st, 2012 at 07:25

  11. M Klemola

    I really dig the responsive design tester.

    August 31st, 2012 at 00:50

  12. andriy

    Nice work :)
    What you doing next? Very interesting
    And maybe you include this great tool in XULRunner?
    Because very hurt working with console

    August 31st, 2012 at 00:57

  13. omissis

    Wow those tools are great! kudos guys! :)

    August 31st, 2012 at 01:20

  14. Matthew Copperwaite

    I’m curious to know if there is an actual CLI you can use in the same way. I’d always imagined a headless screenshot too that would allow me to debug page renderings across multiple machines much faster by running a command remotely on those machines. This doesn’t seem to allow for that without typing it in, or does it?

    August 31st, 2012 at 01:54

    1. Kevin Dangoor

      Neat idea, but we don’t currently have any options for headless operation.

      August 31st, 2012 at 07:21

  15. Matěj Cepl

    The first question which immediately comes to my mind: will we get some “normal browser” commands (e.g., open, new-tab) and user-contributed scripts to run? That would kill vimperator/pentadactyl and fill my grieving needs for Ubiquity in one bang.

    August 31st, 2012 at 03:01

    1. Kevin Dangoor

      We’re not planning “normal browser” commands right now, but an add-on could certainly add a bunch easily enough.

      August 31st, 2012 at 09:01

  16. Rob

    Very nice feature, but have the memory leak problems been fixed? I can’t develop on a browser that freezes every 3 seconds.

    August 31st, 2012 at 03:33

    1. Kevin Dangoor

      I have two responses for you:

      1. Firefox 15 (the new stable release) incorporates changes that help solve leaks in add-ons, which were a huge source of leaks. Firefox is really quite good when it comes to memory use
      2. Mozilla is constantly working to improve browser responsiveness, but we don’t have *all* engineers working on that. People have different skill sets and it’s not really possible to put everyone on the same problem (see Mythical Man-Month).

      August 31st, 2012 at 09:00

  17. Maurice

    Any plans to make the console scriptable?

    August 31st, 2012 at 04:15

  18. Jonathan

    Does this rely on JavaScript hooks by chance, or is it lower level than that? Obviously it’s not entirely JavaScript, but the dom manip stuff?

    August 31st, 2012 at 06:00

    1. Kevin Dangoor

      The command line code, like most of Firefox’s UI, is JavaScript and HTML (or XUL) and CSS. I should have noted in the project that this command line is available for use in your own web projects here: https://github.com/mozilla/gcli

      August 31st, 2012 at 08:57

  19. Simon Stewart

    Awesome!

    Is there a way to automate this? i.e. passing in commands to execute when invoking the aurora process?

    August 31st, 2012 at 06:50

  20. Jean Bonbeur

    With all those debug tools directly embedded in Firefox, is the Firebug addon still useful?

    August 31st, 2012 at 07:01

    1. Kevin Dangoor

      Firebug still has some features that have no built-in equivalents, and some people just happen to be used to and like Firebug.

      August 31st, 2012 at 08:55

  21. Jean-Tiare

    Wow, what a cool tool !

    Is there a command to sum up the changes ? For example, as a web developper, I often edit the styles directly with the dev tools before applying them to the real CSS file. It would be caool if a tool could say me “add style … to [selector]” and so on.

    August 31st, 2012 at 07:33

    1. Kevin Dangoor

      I agree those would be awesome commands (show changes and add style). We don’t have anything like that yet. Feel free to file bugs in bugzilla or create add-ons :)

      One thing I will note about CSS: if you’re working from files on disk, try out using the Style Editor because it is so quick and easy to make changes, see them live and then just hit save and you’re done!

      August 31st, 2012 at 07:43

  22. wica

    I miss, rm -rf /

    August 31st, 2012 at 07:46

  23. Russ

    Great, but the new debugger is screaming out for “launch in sep window”

    August 31st, 2012 at 09:32

    1. Kevin Dangoor

      This is definitely coming.

      September 1st, 2012 at 18:42

  24. jive

    Will there be a button that we can drag onto our UI so we dont have to press shift-f2?

    August 31st, 2012 at 10:21

    1. Matěj Cepl

      I am not sure what would be the point of this … this is probably for people who prefer keyboard to a rodent.

      September 1st, 2012 at 01:04

      1. Kevin Dangoor

        Yes, exactly. I personally have used the Customize Shortcuts add-on to change it to cmd-D (since I don’t use bookmarks :)

        September 1st, 2012 at 18:43

        1. Ronildo Costa

          Can you link here this addon?

          October 10th, 2012 at 07:30

  25. Toufiq

    Oh, Thats great nes for firefox user. I am using Google Chrome and Pale moon x64 bit version of Mozilla. i ill try this as soon it got relased!

    August 31st, 2012 at 11:01

  26. bob

    It would be cool if you could get the highlighted element when using the screenshot command. Maybe I am lazy but sometimes it is tedious to get the selector right.

    August 31st, 2012 at 12:09

    1. Kevin Dangoor

      That’s a good suggestion. I’ll file a bug.

      September 1st, 2012 at 18:44

  27. Marco Berrocal

    Oi, these are some GREAT features. Thanks for sharing this stuff.

    Personally I still use Firefox. I think they have contributed TONS on moving the Web forward and I don’t know all of you, but I just dislike the idea of also letting Google know much of my browsing habits via Chrome.

    This is outstanding news, specially the RWD stuff.

    Thank you!!

    btw: Captcha, really? :(

    September 1st, 2012 at 13:05

  28. mb

    some useful tricks, thank you

    September 1st, 2012 at 14:00

  29. MIKE

    Screenshots are strictly forbidden on my site.

    September 2nd, 2012 at 05:18

  30. Latrasweb.net

    Great!!. It’s an excelent idea.

    September 2nd, 2012 at 06:35

  31. NiKo

    Don’t you think it would be cool to have this command line utility merged with the awesomebar in some way? I’d love to have a single entry point for driving the browser behavior using the keyboard…

    September 3rd, 2012 at 00:03

    1. Kevin Dangoor

      It’s the “in some way” part that’s the problem ;)

      Seriously, this command line serves a different purpose from the awesome bar and trying to tie the two would likely result in neither one serving its purpose as well. We did try combining the Web Console’s JavaScript input and this command line, and that didn’t work out (though we will likely try that experiment again, but differently from the first go at it)

      September 3rd, 2012 at 06:00

      1. NiKo

        > It’s the “in some way” part that’s the problem ;)

        Just an idea, a prefix character eg. ‘ then the command line. A bit like the / command prefix for irc.

        Of course that could be just an option, and it should be disabled by default. But having the opportunity to launch command right from the awesome bar would be a great addition for devs /methinks

        September 3rd, 2012 at 06:05

        1. Kevin Dangoor

          Yeah, good point about the prefix. One very good thing about using the Awesomebar for this would be that we get a quick keyboard shortcut for free (ctrl-L)

          September 3rd, 2012 at 06:17

          1. Brett Zamir

            I agree that would be very handy. One other idea which is probably beyond the scope of the project, but while we’re discussing “everything at your fingertip” commands, how about a system command line? I worked on a prototype earlier, probably in an amateurish wasy, but never got around to finishing it, using Gecko’s ability to launch files to run a batch file accepting arguments and then funneling the output to a file which Firefox read to be able to easily copy-paste command line output as well as input.

            October 9th, 2012 at 23:36

          2. Kevin Dangoor

            You could certainly build that in an add-on for now. Giving OS command line-like features to Firefox’s command line would likely involve replicating some of the environment provided by command lines (current working directory, environment variables)

            October 10th, 2012 at 06:06

          3. Brett Zamir

            Just a quick FYI on your subsequent comment (for which there was no reply link) about building an addon for a system command line, I have built a generic addon, AsYouWish for allowing websites the ability to request add-on level privileges, and I have a demo of a web app that will, if the addon is installed (and user options configured to accept requests) allow use of the Windows command line (it should also be adaptable for other OS’): https://github.com/brettz9/asyouwish/blob/master/demos/requestPrivs-command-line-demo.html

            One caveat is that occasionally the command history is a little buggy so I will need to find a workaround, but it does work, including tracking environmental variables for that session (which could of course be made permanent with more coding) and letting you change the color in the same manner as Windows allows in the console.

            March 13th, 2013 at 10:55

  32. vishal dadwani

    We are using this for our website and it has been of tremendous help. It is far more useful than any paid software we are using for development of this website.

    September 3rd, 2012 at 14:25

  33. diwaker srivastava

    Thanks for so much informative blog i am very excited for using firefox.I am using firefox since 12.x version and it freeze after working time or you can say after one house and after that if you restart firefox then again it works normal. Is this problem solved in this version of firefox.

    One more thing i am very curious about Firefox Command Line can any one give me command glossary of Firefox Command Line.

    September 6th, 2012 at 11:24

  34. Xannax Prozaxx

    Great feature.
    I’ve been using something sort of similar since long through vimperator (single most useful FF plugin). A bit annoyed that I’ll have two command lines that work differently. I wish the new command line would include all the fantastic features vimperator already has, or that vimperator would find a way to plug into the new CLI to make use of it’s nice help system.

    September 6th, 2012 at 17:42

  35. Russ

    diwaker: I work with a huge (I mean monstrous) web app that runs cross-browser. I develop using firefox and firebug and run a test system that is almost as big as the app itself which also sits insie the same instance of firefox. My firefox browser stays up for *days* at a time with no issues. Sometimes, though rarely, I may see odd behavior from firebug but even that is rare.

    Can I suggest you create a firefox profile just for development work and throw away ALL plugins (except perhaps firebug) and see if that fixes it?

    Captcha count: 16

    September 7th, 2012 at 06:30

  36. deewaker

    thanks Russ you have saved my valuable time. Now today i run my mozilla in 6 hrs in one go.

    thanks again Russ

    September 7th, 2012 at 07:45

  37. Vaidik Kapoor

    This is so awesome!

    When do we get to know about how to create custom commands? It will be awesome to have some of the common/most-used commands of Vimperator!

    Anyways, even this is amazing!

    September 7th, 2012 at 12:36

    1. Kevin Dangoor

      My plan is to have the article about creating commands up before Firefox 16 final release is out (planned for early October). I’m looking forward to writing that article, but I’ve got some other things on my plate first.

      September 7th, 2012 at 19:42

  38. sofi

    Nice!

    Style need auto complete…

    Responsive Design View is 100% amazing !!!!

    Thank you!

    September 9th, 2012 at 03:20

  39. john

    i have few suggestions:
    command line is great, so user actions should be scripted too (like scroll down 80 lines)

    make it possilbe to launch firefox with these commands as parameters

    please make it as addon. from user’s point of view it is useless, so make it optional

    October 9th, 2012 at 10:18

    1. Kevin Dangoor

      The command line was largely intended as a means for quickly typing things… we already have a scripting language (JavaScript), though I can understand the appeal. We’ll keep that in mind, thanks for sharing your ideas!

      As for add-on vs. built-in, we have certainly considered those tradeoffs. The developer tools add a little bit of weight to the download, but that’s it. For now, we believe that the tradeoffs of having the tools ship with the product are worth that difference in download size. (I’ll note that the tools do not load until they are accessed… so there’s no cost in memory or performance).

      October 9th, 2012 at 11:13

    2. Vaidik Kapoor

      I am already working on writing some commands for basic user actions like open a new tab, close a tab, etc. Page scrolling is also a great suggestion.

      I have figured out how to write commands and its pretty simple. What I would want to have as a feature is the ability to create my aliases. I know I am talking more like a CLI geek but the truth is that I cannot write usable commands for everyone out there and vice-verse. So if it were possible to make aliases, I can easily use existing commands in other ways. Unfortunately, it does not look like there is any support for that in the GCLI project as yet.

      October 9th, 2012 at 23:49

      1. Kevin Dangoor

        It’s great that you’re having good success building commands. You could probably create an “alias” command in an add-on, though it’s reasonable to imagine having that as a built-in.

        Would you mind filing a bug on that?

        https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox&component=Developer%20Tools

        October 10th, 2012 at 06:04

        1. Vaidik Kapoor

          So, someone has filed a bug for this already at https://bugzilla.mozilla.org/show_bug.cgi?id=760819.

          There is been some progress on it as well. “alias” command exists but they don’t execute newly created aliases as I can see from the comments on the bug. This will be great whenever it lands up in a release!

          October 10th, 2012 at 10:11

  40. Frank

    It’s ok.

    October 9th, 2012 at 10:56

  41. Miron Catalin

    Hi there,

    Like it very much, especially the screenshot feature and resize window for mobile, tablets and other devices.

    Great !!!

    October 9th, 2012 at 23:50

  42. Khalid

    well done.. i really like the new tool…
    go mozilla :D

    October 10th, 2012 at 02:30

  43. Rahul

    Hello Mozilla team

    Just wanted to tell you guys

    A big THANKS for this feature

    – great time saver
    – Tweaking the preference is as simple
    – good usability, design and color of developer command line

    October 10th, 2012 at 13:05

  44. Ibecz

    Nice tool and features, but I’d liked it better as an add-on to firebug which have nice shortcuts for picking elements, close etc. Still a nice tool with some features firebug lack, like selecting an element and view the :hover css.

    October 14th, 2012 at 10:42

    1. Kevin Dangoor

      Firebug can add features to this same toolbar/commandline. I’m hoping to see more mixing of features between Firebug and built-in Firefox tools.

      October 14th, 2012 at 18:06

  45. Nick

    Hey Kevin & co.!

    Any chance of being able to scroll through previous command like bash’s history?

    Any chance of having the screenshot command default to a timestamped filename, a la OSX?

    Thanks for the hard work! I love this!

    October 15th, 2012 at 12:48

    1. Kevin Dangoor

      Hi Nick,

      You should be able to scroll through history by hitting up arrow/down arrow.

      Sometime after Firefox 16 (I forget which release exactly, might be 17), the screenshot command defaults to copying the image to the clipboard, which is also quite useful behavior.

      Glad you like the new feature!

      October 15th, 2012 at 17:55

    2. Girish Sharma

      Hi Nick, Actually, Firefox 18 (now Aurora) has a totally new screenshot command.

      If you use it without any options, the screenshot will be captured and saved to your downloads folder with the timestamped name a la OSX.

      You can also use the option ‘–clipboard’ to copy the screenshot to the clipboard.

      October 15th, 2012 at 21:43

      1. Kevin Dangoor

        D’oh! Thanks, Girish! I remembered the addition of clipboard support, but forgot that the default was set to save with a timestamped name.

        October 16th, 2012 at 05:32

  46. mark entingh

    I really wish I could use GLCI from windows command prompt. I’d be able to silently take screenshots with firefox from an app I’m developing.

    October 18th, 2012 at 16:42

    1. Vaidik Kapoor

      Hmm… I think what you need is Selenium Web Driver. Check it out here: http://seleniumhq.org/projects/webdriver/

      October 18th, 2012 at 22:11

  47. vinay

    Hi,
    I was wondering if we can change the shortcut keys Ctrl + Shift + m – Opens Responsive design.

    Or else i want to disable/remove the web developer toolbar – Is it possible and How to uninstall/remove it?

    October 19th, 2012 at 00:27

    1. Kevin Dangoor

      The built-in tools cannot be removed. However, you can use the Customizable Shortcuts add-on if you wish to change the keyboard shortcuts for a feature:

      https://addons.mozilla.org/en-us/firefox/addon/customizable-shortcuts/

      October 22nd, 2012 at 05:39

      1. Flansch

        The web developer toolbar can be removed, open ‘about:config’ and set ‘devtools.toolbar.enabled’ to false.

        October 23rd, 2012 at 14:59

        1. vinay

          Yep, i was able to disable it.. and worked.
          Thanks

          October 25th, 2012 at 03:29

  48. jeremy

    Shift+F2 is the hot key for the httpfox plugin which I use literally every day. Neither Firefox nor the httpfox plug-in has any provisions (that I can find anyway) for changing the shortcut key used to activate each.

    Issue report from code.google.com for httpfox:

    October 20th, 2012 at 22:12

    1. jeremy

      ok, since apparently hyperlinks are blocked here, let’s try this:

      code(DOT)google(DOT)com/p/httpfox/issues/detail?id=124

      obviously you should change the (DOT)s to, well, dots…

      October 20th, 2012 at 22:14

  49. warren nazareno

    Hi Firefox team.
    Can you guys make a video tutorial for using the web-console, inspector, debugger.

    Specially for starter like me.

    Thanks again in advanced.

    November 2nd, 2012 at 05:41

    1. Kevin Dangoor

      Good suggestion! I’ll think about what we can do there. Thanks!

      November 2nd, 2012 at 06:16

      1. Nick

        Can you do it entirely on a white background while wearing turtlenecks and saying “magic” a lot?

        November 2nd, 2012 at 06:34

        1. Kevin Dangoor

          Ha! Thanks for the suggestion. I had a good time picturing it.

          I’m thinking, though, that ScreenFlow 4.0 just came out with green screen support. The whole white background is so overused. I’m thinking the videos should have a background with a herd of rampaging rhinos. Just to add some extra excitement :)

          November 2nd, 2012 at 06:50

          1. Girish Sharma

            Noe Nightly has the ability to record video, WebRTC ftw. Taras even blogged about the green screen demo using that.

            November 2nd, 2012 at 06:52

          2. Girish Sharma

            Now*

            November 2nd, 2012 at 06:52

  50. thinsoldier

    Lately the console doesn’t show the autocomplete text

    November 10th, 2012 at 21:35

  51. Louis Wang

    Now if only Ubiquity could get integrated with Firefox like this…

    November 12th, 2012 at 21:32

  52. Arán non ei Catalonha

    Marvelous, but only for developers.
    Why don’t you eliminate from Firefox all those tools we, common people, don’t need, and publish them as extensions? Please, stop making FF heavier. I love Chrome because of it’s agility. Sure it doesn’t have half the functionality of FF, but that’s because nobody (except devs and some few people who cant be considered the average public) needs it!
    We want a web browser, not a web developing tool. Please, make FF a web browser, ONLY; and make extensions with all those functions that web developers will find very useful, but nobody else does.

    January 31st, 2013 at 08:50

    1. Girish Sharma

      For what its worth. Chrome has even more developer tools that Firefox (the timeline, audit tool, CSS profiler etc etc) And until you open the developer tools, they should have close to no impact on your browser to make it heavier. If you are worried about the size of the Firefox package, when you download it, then yet again, Chrome has more .

      January 31st, 2013 at 09:28

    2. Robert Nyman [Editor]

      Thanks for your comment. It has been more and more clear on how many web developers rely on tooling natively in the web browser, and that that is the best way to get the best performance for those.
      Google Chrome currently has, I would say, more developer tools built-in than Firefox has.

      But I do agree that more developer tools should not affect the performance or experience of regular users.

      January 31st, 2013 at 09:28

  53. Leon Victor

    Commands like console, dbg, break, edit, inspect, resize, tilt all are very awesome. As a developer all are very helpful to develop fast. Thank you for sharing such a great command.

    February 26th, 2013 at 02:56

  54. mspreij

    The “cookie remove foo” doesn’t work for me. It simply shows up again after I list, also after I reload the page. There is no way to set the cookie to empty string, either.
    These things work via the preferences.. I’d prefer to use the ‘CLI’ view, but it has to *work*.

    Also: the ‘+’ sign in an email address is *valid*, fix the validation.

    April 11th, 2013 at 06:12

Comments are closed for this article.