~robcee/ more than just sandwiches

Posts Tagged Code

WebConsole’s $() convenience function: querySelector

tl;dr If you’re used to using $(“id”) in the WebConsole to lookup nodes with a given id, prepare to get used to doing it with $(“#id”). There was a short discussion in the #firebug channel in IRC this week about the usefulness (or lack thereof) of the $() convenience function in the Console (Firebug’s, Firefox’ [...]


DevTools Hackday June 26, 2012

We’re having a DevTools Hackday tomorrow, June 26th to create some commands for the newly-landed Global Command Line Interface. (Joe blogged about it here). It’s still new and waiting for you to write some excellent new commands for it. Got a thing you’d like Firefox to do? Feel like hacking a little Browser JS? This [...]


Bookmarks Deiconizer, userChrome edition

A couple of years ago, I made a simple addon to remove the icons from bookmarks in the bookmarks toolbar in Firefox. It was a fun hack, but I knew then that it wasn’t the right way to do this. Nevertheless, easy is the enemy of perfect (or something) so I kept on using it, [...]


Scratchpad to get Current Visible Tabs

If you use Panorama (aka, TabView) in Firefox (6 and up) and want to get a list of the currently visible tabs (i.e., the tabs in your currently-selected group), here’s the code to run in a Scratchpad (set to Environment:Browser*): let group = gBrowser.visibleTabs; // current group group.map(function (c) c.linkedBrowser.currentURI.spec).join(“\n”); Just select these two lines, [...]


Workspace [fixed-in-devtools][l10n?]

Good news, everyone! This morning we landed the Workspace feature in our devtools project repository. This is exciting stuff for practitioners of JavaScript and we’ll have more to write about it very soon. hint, it’s probably a lot simpler and more powerful than you think it is. Many thanks to Mihai Sucan for taking the [...]


Workspace 0.5.3 + Bookmarks Deiconizer Approved

Workspace 0.5.3 is released on AMO! One gotcha: If you’re running Firefox Beta 11 or under, you might want to wait for Beta 12 to come out before upgrading (which should be tagged for building today or tomorrow). If you’re on a nightly, you’ll want to upgrade right away. The reason for the fix is [...]


Workspace 0.4.4

Just a quick note to let people know that I’ve updated the Workspace extension recently. Added support for saving and loading files as well as a hotkey (F4) to open it from the browser. Many thanks to Erik Vold for some nice fixes and improvements! Install it here: http://antennasoft.net/addons/workspace.xpi.


Oh no, Pinchy!

Sometime early this week, we disabled the pinch-zoom controls on trackpads in OS X (and maybe elsewhere, I’m unclear on how well-supported these gestures are on other platforms, but certainly present on mobile). You can read the gory details over in bug 613909. I use pinch-zoom All the Time. It’s a feature I can’t live [...]


Workspace 0.3

This weekend, I did a bit more work on the Workspace to get it closer to a releasable state. I also had some help in the form of some community contribution via the prolific Erik Vold on github. Download: workspace.xpi * added the relevant .htaccess bits so you can install directly from the link. Just [...]


JavaScript Workspaces

One feature I wanted in Firefox 4 was a JavaScript Workspace. I know I’ve talked about it to a bunch of people. Most of the time, people looked at me like I had a chicken on my head. The concept is so simple yet hard to really convey how useful it is. Conversations inevitably go [...]


← Before