Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×
Mozilla Books Media The Internet Book Reviews

Firefox Hacks 309

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.
This discussion has been archived. No new comments can be posted.

Firefox Hacks

Comments Filter:
  • Re:One hack I want (Score:5, Interesting)

    by th1ckasabr1ck ( 752151 ) on Wednesday March 30, 2005 @06:28PM (#12094292)
    This isn't funny - I have the same problem logging into my company intranet page. It requires a username and password. Under IE these stored passwords are sent immediately. With Firefox I have to click the confirmation each time. It's enough of a hassle that I redirected my Firefox home page away from the intranet.
  • by fm6 ( 162816 ) on Wednesday March 30, 2005 @06:44PM (#12094457) Homepage Journal
    Why is XML not a "core topic"? Serving web pages as XML is the Next Big Thing, in my opinion. In any case, XML is a lot more relevent to most people's needs than hacking the browser as a game platform!

    Not that anything was really excluded. They seem to have had a little trouble coming up with 100 hacks. Some I see on the list are interesting, but not strictly about Firefox (CSS, Bugzilla). Some are pretty lame ("Identify and Use Toolbar Icons"). Some are not even hacks (a list of customized prebuilt versions).

    Some hacks do look interesting -- integrating Firefox with other apps, making chromes and extensions, and (as I said) XML support. Maybe these are good enough to justify the price of the book. Though a book about these specific topics might be money better spent.

  • by standon ( 546762 ) on Wednesday March 30, 2005 @06:51PM (#12094549)
    I own several O'Reilly books, many of them relating to Hacks - whether it be for Postfix, OS X, et cetera. It's funny (or perhaps just interesting, depending on your sense of humor) how the term "hack" has evolved [bachue.com] over time. Am I a hacker if I utilize a book to balance a shaky table? Of course I'm being a bit facetious with that example!

    I understand this might be (mistakenly) modded offtopic, but hopefully the powers that be acknowledge the relevance.
  • by irc.goatse.cx troll ( 593289 ) on Wednesday March 30, 2005 @07:07PM (#12094712) Journal
    He's not a hacker, he's a spammer. He's posting here to help his pagerank, and throwing it in useragent gets him linked on random public web stats pages. It's all about pagerank.
  • Session Saver (Score:4, Interesting)

    by roman_mir ( 125474 ) on Wednesday March 30, 2005 @07:59PM (#12095240) Homepage Journal
    By the way if you open a link like that and you have Session Saver extension you are out of luck :)

    What you have to do then is kill FF, then go into the directory where /chrome/sessionsaver.jar file is located, open the jar file, extract sessionsaver.js, modify the onLoad function in the Session Saver by commenting out the piece of code that runs loops for openning new tabs/windows. Then substitute the new sessionsaver.js into the jar file and restart FF. Now the loading portion of SS is disabled. You can uninstall session saver, or you can go into about:config and modify sessionsaver.windows.session1 value by replacing all bad links with whatever other sites (even invalid ones).

  • Re:extension link (Score:5, Interesting)

    by The Wicked Priest ( 632846 ) on Wednesday March 30, 2005 @09:02PM (#12095851)
    More seriously, I've changed my extensions link to point to http://www.extensionsmirror.nl/ [extensionsmirror.nl] . (You can change it via extensions.getMoreExtensionsURL in about:config.) It's far more complete and up-to-date than the official site.
  • by Anonymous Coward on Wednesday March 30, 2005 @09:08PM (#12095917)
    Heh, i always make sure my user-agent contains lotsa quotes, brackets and gibberish - all to mess up the hosts badly written perl/sed/awk tracking scripts.
  • by The Wicked Priest ( 632846 ) on Wednesday March 30, 2005 @09:29PM (#12096062)
    My first thought was "Ew", but my second thought was "You know, there's probably an extension for that". And here's what I found with a cursory search:
    Feed Me Links Toolbar [extensionsmirror.nl] - The Feed Me Links extension for Firefox/Mozilla shares and manages your links via any computer or browser. Tag links to classify them, share tags and links via email or comment discussions, browser your friends' links, etc.

    Firefox Bookmark Share [extensionsmirror.nl] - Firefox Bookmark Share allows you to store your Firefox bookmarks, upload and download from your browser and share them with your friends and much more. All you need to do is sign up for an account, download the plugin and you're all set. The extension will create a folder in your bookmarks named "Firefox BM Share for [username]". This folder will be uploaded and downloaded.

    If these aren't precisely what you wanted, check again tomorrow.
  • Re:One hack I want (Score:2, Interesting)

    by darinf ( 544413 ) on Thursday March 31, 2005 @01:00AM (#12097299)
    Try "http://somecompany.com" (without the "*") If it doesn't work, please let us know! ;-)
  • by Avishalom ( 648759 ) <vish@cs.hujiCOFFEE.ac.il minus caffeine> on Thursday March 31, 2005 @06:43AM (#12098497) Homepage Journal
    I have to wonder what random stuff they're getting out of people's clipboards .
    every once in a while you'll get a password that looks like
    R5tR3e7Ptr
    many sites, will send you the password in case you forgot it.
    now do you transcribe it? , or Cut & paste ?
  • Re:Download Manager (Score:3, Interesting)

    by Reziac ( 43301 ) * on Thursday March 31, 2005 @11:08AM (#12099831) Homepage Journal
    I had no luck getting Mozilla (also with an annoying dl manager) and Getright (which I love) to play nice together either. However, I let Getright monitor the clipboard. So when I want to download something in Moz, I rightclick the link and pick "Copy Link Location", and most of the time Getright will pick it up, and I can then download it with Getright without any extra steps.

    Worst case, I might have to open GR's status window and paste the URL as a new download.

Two can Live as Cheaply as One for Half as Long. -- Howard Kandel

Working...