Slashdot Mirror


Firefox Hacks

honestpuck (Tony Williams) writes "If there is an application I run more often than my Web browser, particularly since I also use it as my email client, then I don't know what it might be. As a Firefox convert, that made the arrival of Firefox Hacks from O'Reilly a wonderful surprise." Read on for the rest of Williams' review. Firefox Hacks author Nigel McFarlane pages 368 publisher O'Reilly rating 7 reviewer Tony Williams ISBN 0596009283 summary A good, fairly technical examination of Firefox

The first of several books on the topic of Firefox hacking (two more are due from other publishers in the coming months) Firefox Hacks sets the bar quite high. The author, Nigel McFarlane, has already written a number of other books and articles on similar topics and knows his subject well. He has also enlisted the help of a number of other cognoscenti to cover the more distant corners covered in the book.

A Web browser is a much more complex piece of software than you may realize on first examination, and Firefox -- with the core Gecko engine surrounded by a large wrapper written in XUL and JavaScript -- provides a fertile ground for any number of changes and enhancements. Firefox Hacks does a good job of mapping out the boundaries of this space.

Over the course of the now-traditional 100 hacks found in the same series' other members, this book covers hacking with, on, and to almost all aspects of Firefox and the 'net. The book is broken up into nine chapters, most worth reading by almost everyone -- even the first, "Firefox Basics," taught me a couple of tricks for getting the best out of a slow (and expensive) GPRS connection. The others are "Security," "Installation," "Web Surfing Enhancements," "Power Tools for Web Developers," "Power XML for Web Pages," "Hack the Chrome Ugly," "Hack the Chrome Cleanly," and "Work More Closely With Firefox." I have to say I felt the chapter on Power XML (with 17 of the 100 hacks) was far too general on Web technologies and a little out of place; easily half the hacks in that chapter could have been dropped without any real loss to a reader's understanding of Firefox. I would have preferred more on the browser itself. No insult intended to Seth Dillingham, who wrote four of the hacks I'd throw out -- they are well written and do show how best to deal with Web technologies inside Firefox. I just felt that the space would have been better devoted to more "core" topics.

The first four chapters will be useful to everyone, covering mainly the use of Firefox. From that point, the hacks become increasingly complex as they cover Web development, then modifying the interface, before covering such arcana as creating extensions and custom builds.

I am hard pressed to think of a corner of Firefox not at least touched, though it must be said that the later hacks only touch on the topics covered without really providing a lot of depth. If you get to the last two chapters in the book, performing and expanding on the hacks, you will probably need a great deal more information and assistance to branch out on your own. McFarlane, however, points out the possibilities and gets you started. I didn't feel this was a flaw, just that a line had been drawn, as it must unless the book was going to be three times the size and price.

The book is fairly well written. The quality of writing and editing fall into that middle ground of "fairly good" that one expects from the average O'Reilly book, though not the "excellent" they can sometimes hit. The structure and flow are excellent, making the book readable in large chunks -- enough sticks that when you are back in front of the computer using Firefox you can remember a few things. (Or, sometimes, I remembered that a hint existed and was able to easily find and use the information.)

For a closer look there is a decent page at O'Reilly with links to six example hacks, the table of contents (listing all 100 hacks) and the index.

To conclude, I'm not sure I could recommend this book to everyone; it spends a little too much time a fair way along the technology curve for those who aren't ready for some programming, though for anyone who wants to get their hands dirty and perform some hardcore hacking on their favourite browser, then this is an above-average volume. For someone who is happy as "just a user," this book may be too much: wait and see what else emerges into the Firefox book market -- including O'Reilly's other offering, the soon-to-be-released Don't Click on the Blue E, which they describe as giving "non-technical users a convenient roadmap for switching to a better web browser--Firefox."

Also watch soon for a review of Prentice Hall's Firefox & Thunderbird Garage. You can purchase Firefox Hacks from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.

11 of 309 comments (clear)

  1. PDF Hack by The_Rippa · · Score: 2, Insightful

    Where is the hack that lets you view the pdf examples of the other hacks in firefox without it locking up?

  2. One hack I want by jerometremblay · · Score: 4, Insightful

    I want to turn off the damn confirmation every time i open a http: //username:password@site URL!

    1. Re:One hack I want by emilv · · Score: 2, Insightful

      That's actually a security feature due to the fact that it was widely used by scammers to write URLs such as
      http://www.google.com\@scammersite.com
      resulting in a redirect to the scammer's site.

  3. If you think the book requires too much coding ... by WillAffleckUW · · Score: 2, Insightful

    ... it spends a little too much time a fair way along the technology curve for those who aren't ready for some programming, though for anyone who wants to get their hands dirty and perform some hardcore hacking on their favourite browser, then this is an above-average volume.

    If you're not ready for some programming, then, by definition, you're not a hacker.

    Geesh, next you'll want the Flash version ...

    --
    -- Tigger warning: This post may contain tiggers! --
  4. Re:Don't click on the blue E! by creep · · Score: 5, Insightful

    I don't. Aside from putting a Firefox icon on the desktop of all my family and friends' computers that I service, I also use the IE icon and point it to Firefox just in case they happen to click on it out of habit.

  5. Re:Didn't RTFA yet by fm6 · · Score: 4, Insightful
    The sentence may be validEnglish, but it's not clear English.

    However, the suggestion that the writer isn't a native speaker is both bigoted and illogical. Only a native speaker could spawn that many subordinate clauses in such a confusing way!

  6. Re:If you think the book requires too much coding by computational+super · · Score: 2, Insightful

    Honestly - I was looking through the sample pages, and I didn't think any of it looked hacker-friendly enough. I'd like to read more about Firefox's internals (sort of like the book "How Tomcat Works", but written by somebody who can write) and extrapolate my own hacks from there. I'm sure this book has a target audience, but it's not hackers - a hacker would want some kind of a rough outline for fixing bugs and adding features to Firefox, but based on the pages on the O'Reilly site, this book is geared toward power users. Still a useful book, I'm sure, but has nothing to do with hacking or hackers.

    --
    Proud neuron in the Slashdot hivemind since 2002.
  7. Re:If you think the book requires too much coding by The+Good+Reverend · · Score: 3, Insightful

    That's nonsense. There have been hackers longer than there have been computers. Even the Jargon File gives multiple definitions, most not specific to programming. It's much more of an inclusive term than an exclusive one.

  8. Re:Good about: config explanation by Kizzle · · Score: 4, Insightful

    I hate seeing referrer spammers like in my webpage stats. You're not clever, just annoying.

  9. Re:THE BEST FIREFOX HACK by Clover_Kicker · · Score: 2, Insightful

    So make the max # of tabs a configurable setting, with a low default. Everyone happy.

  10. Why is it so slow? by nagora · · Score: 2, Insightful
    I'm using an old 400Mhz machine here and it runs Opera fine. But, I think I'd rather use Firefox or at least try it long enough to decide which is better. But Firefox is so slow that it simply isn't an option. It takes literally a second (that's 1000ms, folks) or more to draw a drop-down menu after clicking on it. Everything is like that - it's like using a computer in slow-motion.

    Is there some known issue with Firefox that can cause this? I can't believe anyone is using the browser if it's like this for them, so I assume that it's not like this for other people. Or have I just been spoilt by Opera's speed?

    TWW

    --
    "Encyclopedia" is to "Wikipedia" what "Library" is to "Some people at a bus stop"