Skip to content

Instantly share code, notes, and snippets.

View notjosh's full-sized avatar

Joshua May notjosh

View GitHub Profile
@notjosh
notjosh / x
Created November 7, 2008 07:14
CmdUtils.CreateCommand({
name: 'tabs',
description: 'Count the number of tabs and windows you have open',
icon: 'https://addons.mozilla.org/img/app-icons/firefox.png',
author: { name: 'Joshua May', email: '[email protected]'},
homepage: 'http://notjosh.com/',
execute: function()
{
var wm = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(Components.interfaces.nsIWindowMediator);
var counts = this._count(wm);