Thursday, February 14, 2008

Speeding up Firefox "Tab Effect"

There's the great plugin for Firefox called "Tab Effect" which does 3D rotation on a cube when you change tabs. No important use, yet great animation. For Windows-Users who want Linux XGLX or MacOS feeling. Unfortunately, the switching takes time ... but there is a speedup patch:

"How to make it faster!

by aquanautmonkey on December 17, 2007 (rated 7)

Nice effect! To make it faster, do the following:

  1. Open the tab_effect-1.1-fx.xpi file in a zip archive editor (7zip, etc.)
  2. Navigate to content/javascript.js
  3. About 3/4 down the file there is this line:
    TabEffect.xpcomObj.translateToNextTab(back, 24);
  4. Set the number which is originally 24, to be something less. I put 10 and it works much faster and looks better!
  5. Install the edited add-on like you usually would.

Editing after installation

There is also a simple way to edit it after installation:

  • Go into extensions\{0784CD66-62FE-4cef-ABF4-F8ED9B654ACC}\content (if the GUID is different, search for ITabEffect.xpt in the extensions dir, and go into ..\content
  • Edit javascript.js, TabEffect.xpcomObj.translateToNextTab(back, 8); (8 instead of the default 24)
  • Restart firefox
  • enjoy!
If the graphics card is the slowing factor in your setup, this won't help you, of course ...

No comments: