Pew Pew Laser Blog

Code. Glass art. Games. Baking. Cats. From Seattle, Washington and various sundry satellite locations.

Pew Pew Laser Blog Archives — by Blog ID

The Firefox Command Line.

9.14.2015

I'm old friends with the command line. Sometimes it's a hassle to remember exactly what to type, but sometimes a command line really is the right tool for the job at hand. And it turns out that another one of my old friends - Firefox - has a command line interface. Open it up at any time with Shift F2. So here are a few nifty features of Firefox's command line that I'd like to remember for next time:

Be aware that one of the first (and highest-ranked) announcements of Firefox's command line at https://hacks.mozilla.org/2012/08/new-firefox-command-line-helps-you-develop-faster/ is pretty out-of-date. Refer to https://developer.mozilla.org/en-US/docs/Tools/GCLI instead.

Katie Katie

Eric Meyer recently wrote a bit about using Firefox's command line to make screenshots. There were a couple of useful arguments he mentioned:

  • --fullpage to screenshot the page beyond scroll range.
  • --dpr to scale up or down the resolution of the screenshot. (Currently available in FF Dev Edition or FF Nightly.)
  • --clipboard to copy the image to your clipboard

Additionally, I've discovered that if you right-click an element in Firefox's dev tools Inspector, one of the options is "Screenshot Node". I'll be using this a lot in the future, to be sure.

Permalink

Tags: firefox speaking tooling web-development

Authorized users may log-in to leave a comment.

Last Blog: Sublime Text and the Command Line.

Next Blog: Reflections.