Firefox gets 3D web page inspection
December 28th, 2011 • 2 Comments

As announced last month, Mozilla has integrated the Tilt 3D extension into the core Firefox code in the latest nightlies, adding yet another improvement to the set of web development tools currently in the pipeline.

As with the Tilt 3D extension, web developers can look at a 3D rendering of a web page and easily see how elements are nested and organized. You can drag the 3D view to rotate it, pan it with the arrow keys, and zoom in and out with the mouse wheel.

Firefox 3D page view screenshot

Lacking in the implementation so far is a legend, a virtual rotation/panning pad,  and even export capabilities found in the original extension.

To access the 3D view, from the Firefox menu, select Web Developer, then Inspect. From the Inspect view, press the 3D button in the lower right area (or press Alt + M hotkey to toggle).

Considering the 6 weeks release cycle, 3D view should become available in final form with Firefox 12, planned for late April.

To try it now, you can get a nightly, or the Tilt 3D extension from Mozilla Add-ons.

Mozilla and Google extend agreement for three more years
December 20th, 2011 • No Comments

As expected, Mozilla has announced that it has extended its commercial agreeent with Google for three years.

Details on the agreement are confidential, but it means that Google will remain as Firefox’s default search engine for the foreseeable future.

There have been a number of articles in the news for the last month about the risk Mozilla was at because of the well known expiration of this contract in last November, which amounts for as much as 80-90% of Mozilla’s revenue.

Set the page top to where you need it
November 24th, 2011 • No Comments

You’re reading an article but you need to see as much of it as possible at a time, perhaps for copying or comparing some text to another window.

Instead of manually scrolling the page to find the right spot, you can right-click on wherever you want to scroll to, and select Scroll here, courtesy of Scroll Here, a Firefox extension developed by Alex Henry.

Available at Mozilla Add-ons.

Firefox to get more powerful web development tools
November 18th, 2011 • 2 Comments

Aurora, Firefox alpha development branch, has just got some important additions to its web development tool set.

Among these, perhaps the highlighter is the single most important feature of the group. With highlighter, you enter into inspect mode, where you just need to hover web page elements to highlight them, while breadcrumbs in the lower part of the screen tell you the exact path to that element. You switch from inspect to no-inspect mode by pressing Esc. Pretty easy.

I have seen similar tools before (including the great and simple Aardvark), but Firefox’s implementation is just and plainly smooth: the transition from highlight to highlight makes it just as fun to see as it is informative. Whatever it is doing, we need the same for everything in the user interface: tab animations, location bar menu, tab groups, Firefox menu, etc.

Firefox with highlighter screenshot

For more details, press the Style button in the bottom toolbar to see the rules that are applying to the current element and the effective properties. You can edit the rules and see the changes in real time

Firefox with highlighter, HTML code and CSS view screenshot

To see the HTML code of the selected item, press the HTML button in the inspect toolbar.

Firefox with highlighter and HTML code screenshot

The web console is now more powerful thanks to additional objects now available for debugging. If you have previously used Firebug, you should recognize a few of them, like console.dir, console.time, console.group. For example, enter console.dir(window) to see all the window object properties.

Finally, a more powerful code editor is now available for Scratchpad making it easier to write scripts for the current page.

A complaint I have is styling among the several web tools. The web console looks dull. The highlighter looks on fire. So together they seem part of completely different products. Hopefully, this will get sorted out in the Aurora or Beta phases to make them look good as they work.

Don’t hold your breathe for these tools though. Aurora means we are getting all the cool stuff in Firefox 10, scheduled for release on January 31st. If you feel ready to try them, check Mozilla’s Aurora web page.

 

Restore Firefox’s original blank icon
November 17th, 2011 • 3 Comments

It may be only me, but I think the new blank icon in Firefox is just hideous. I’m talking about the tab icon you get when a web page lacks a favicon. It is as hollow as it can be and just breaks all the clean looks, specially because it is the same icon in the site button, the bookmarks menu and sidebar.

Firefox with new default blank icon screenshot

Fortunately, Firefox is also as customizable as it gets, so a quick search in userstyles.org returned this small script you can add to your userChrome.css file, located in your profile folder(*):

/* Restore blank document default favicon on New/Blank tabs and Bookmarks */

tab .tab-icon-image:not([src]) {
list-style-image: url(“chrome://global/skin/icons/folder-item.png”)!important;
-moz-image-region: rect(0px, 16px, 16px, 0px)!important;
}

#urlbar #page-proxy-favicon:not([src]) {
list-style-image: url(“chrome://global/skin/icons/folder-item.png”)!important;
-moz-image-region: rect(0px, 16px, 16px, 0px)!important;
}

toolbarbutton[class="bookmark-item"][scheme="http"]:not([src]), toolbarbutton[class="bookmark-item"][scheme="about"]:not([src]) {
list-style-image: url(“chrome://global/skin/icons/folder-item.png”)!important;
-moz-image-region: rect(0px, 16px, 16px, 0px)!important;
}

menuitem[class="menuitem-iconic bookmark-item menuitem-with-favicon"]:not([src]) {
list-style-image: url(“chrome://global/skin/icons/folder-item.png”)!important;
-moz-image-region: rect(0px, 16px, 16px, 0px)!important;
}

.sidebar-placesTreechildren::-moz-tree-image(leaf) {
list-style-image: url(“chrome://global/skin/icons/folder-item.png”)!important;
-moz-image-region: rect(0px, 16px, 16px, 0px)!important;
}

Here are the results:

Firefox with old default blank icon screenshot

For easier styling, try the Stylish extension which makes adding this and any other user style in userstyles.org a one click task.

(*): * To open your profile folder, go to about:support and push the Open Containing Folder button. If userChrome.css is not present, just copy or rename userChrome-example.css and add the lines.