Open Multiple Firefox Tabs from Command Line

By  on  

Now that I work on Firefox Developer Tools, I'm really starting to learn some of the tricks of building, debugging, and launching Firefox.  Once I start using Firefox at a developer level each day, the more I become amazed at how configurable and easy to work with Firefox is.p>

Since a good portion of my day is spent working on the Firefox DevTools debugger inside a browser in what we call "launchpad", I need shortcuts to make launching and setting up Firefox for development quick.  The following command allows me to launch Firefox with the multiple tabs I need:

/Applications/Firefox.app/Contents/MacOS/firefox \
    -new-tab -url https://davidwalsh.name \
    -new-tab -url https://css-tricks.com

Incorporating a command like this into a setup.shor likewise file to start my debugging makes setting up a development environment so easy.  There's nothing worse than creating tabs and typing the same URLs over and over!

Recent Features

  • By
    Write Better JavaScript with Promises

    You've probably heard the talk around the water cooler about how promises are the future. All of the cool kids are using them, but you don't see what makes them so special. Can't you just use a callback? What's the big deal? In this article, we'll...

  • By
    Creating Scrolling Parallax Effects with CSS

    Introduction For quite a long time now websites with the so called "parallax" effect have been really popular. In case you have not heard of this effect, it basically includes different layers of images that are moving in different directions or with different speed. This leads to a...

Incredible Demos

Discussion

    Wrap your code in <pre class="{language}"></pre> tags, link to a GitHub gist, JSFiddle fiddle, or CodePen pen to embed!