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
    7 Essential JavaScript Functions

    I remember the early days of JavaScript where you needed a simple function for just about everything because the browser vendors implemented features differently, and not just edge features, basic features, like addEventListener and attachEvent.  Times have changed but there are still a few functions each developer should...

  • By
    5 HTML5 APIs You Didn’t Know Existed

    When you say or read "HTML5", you half expect exotic dancers and unicorns to walk into the room to the tune of "I'm Sexy and I Know It."  Can you blame us though?  We watched the fundamental APIs stagnate for so long that a basic feature...

Incredible Demos

Discussion

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