Tag Archive for 'mozilla'

Stylish: manage Firefox user styles to modify the appearance of website and browser UI elements

I can’t believe I’ve never stumbled across Stylish until recently. It is similar to Greasemonkey, which seems to snatch all the media attention. See this page for the differences between the two. The two features that interest me the most about Stylish:

  1. Impossible to execute malicious code in Stylish; in Greasemonkey, you could easily install a script that contains malicious code
  2. Simple updating of installed styles in Stylish; in Greasemonkey, you generally have to go back to the download page of each of your scripts and manually check for updates *yawn*

Also, the official repository of user styles for Stylish, userstyles.org, is a bit better designed that that of Greasemonkey’s, userscripts.org. userstyles.org has “most popular” and “highest rated” pages, and shows popular styles in bold. Unfortunately, both sites leave a lot to be desired. It is a major pain having to scan through tens and hundreds of unverified submissions with wildly differing code quality, tagging, presentation, etc. More advanced searching and sorting methods accompanied with stricter submission requirements (perhaps a moderated section and a free-for-all section) and better presentation would be wonderful.

If you liked this post, please subscribe to my feed. Thanks for visiting!

Zenphoto plugin: Link Prefetching Hints

printPrefetchHints is a plugin that improves Zenphoto image browsing performance by printing link prefetching hints which instruct Mozilla-based browsers to preload the next page and image in the album.

Link prefetching hints are only supported by Mozilla-based browsers. The hints are completely harmless as they are ignored by other browsers like Internet Explorer. You can test your browser to see if it supports prefetching.

Zenphoto plugin: Link Prefetching Hints

printPrefetchHints is a plugin that improves Zenphoto image browsing performance by printing link prefetching hints which instruct Mozilla-based browsers to preload the next page and image in the album.

Link prefetching hints are only supported by Mozilla-based browsers. The hints are completely harmless as they are ignored by other browsers like Internet Explorer. You can test your browser to see if it supports prefetching.

Example Usage:
Insert in the <HEAD> section of your theme’s image.php:

include_once('print_prefetch_hints.php');
printPrefetchHints();

You may pass an optional parameter to printPrefetchHints() to use an image size other than the default image size in your Zenphoto settings.

How it works:

Link prefetching is a browser mechanism, which utilizes browser idle time to download or prefetch documents that the user might visit in the near future. A web page provides a set of prefetching hints to the browser, and after the browser is finished loading the page, it begins silently prefetching specified documents and stores them in its cache. When the user visits one of the prefetched documents, it can be served up quickly out of the browser’s cache.

Please read the Link prefetching FAQ for more information on this mechanism.

Performance:
From my rudimentary profiling, this plugin generally takes less than 10 milliseconds to execute on my shared hosting service.

Download:

zenphoto_print_prefetch_hints.zip

Changelog:
November 29, 2007

  • First public release

My favorite third-party optimized Firefox build: Tete’s

My day-to-day web browser is not the officially branded and built Mozilla Firefox, but a third-party build by Tete that contains general optimizations and specific optimizations for my CPU. Tete’s build boasts improved page rendering speed and faster browser startup. YMMV, of course. These optimizations might be experimental, or situational, or have benefits and drawbacks that are not worth the official development team’s trouble to sort out.

Of all the third-party Firefox builds available out there, one would be hard pressed to find any build that’s updated as quickly as Tete’s, keeping up with Mozilla’s latest security updates. Third-party builds don’t enjoy the convenience of Mozilla’s auto-update feature, obviously. Often-times you have to wait weeks for a third-party builder to update his build, if he hasn’t abandoned his efforts. With Tete, a new build is up whenever I learn of a new Firefox release and visit his site. Furthermore, Tete’s been maintaining his build for over two years, since the days of Firefox 1.x. Many many other third-party builders have come and gone.

I highly recommend Tete’s third-party optimized build of Firefox for those of you who want to squeeze a little extra performance out of their beloved browser. Not recommended for people who are uncomfortable messing with their computers and need their software to just work.

Instructions:

  1. Install the appropriate version, probably the Visual C++ 2005 SP1 (PGO) SSE version on most modern computers.
  2. Choose the appropriate version of the custom tmemutil.dll depending on your CPU and replace the existing DLL in the folder. I’m actually using the listed beta DLL without any issues.
  3. Download and run the module binder in Tete’s Firefox folder for faster Firefox startups.