Add-ons Mirror: userChrome.js 0.8 [FX] - Add-ons Mirror

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

userChrome.js 0.8 [FX] Dynamic customization for when an extension would be overkill

#1 User is offline   Seamaiden Icon

  • AMI Founder
  • Icon
  • Group: Admin
  • Posts: 2,343
  • Joined: 22-February 06
  • Gender:Female
  • Location:Fresno, California
  • Interests:INTERESTS: Computer Security; Freeware; Testing extensions & themes; Sci-Fi; Oceans, Forests,, Saving the Planet; Writing.
    DREAM: To live in a place where the forest meets the sea.
  • Platform: Windows XP

Posted 21 July 2007 - 03:25 PM

Name: userChrome.js
GUID: {1280606b-2510-4fe0-97ef-9b5a22eafe64}
Author: zeniko
Version: 0.8
Size: 2KB
Date: 2007-06-07
Compatibility: [fx09] 1.5.0.7 - 3.0+ [tb07] 1.5.0.7 - 3.0+ [sm] 2.0a1 - 2.0+ XULRunner Toolkit 1.8.0.7 - 1.9+
Platforms: [win] [mac] [lin]
:home24: Homepage

Version 0.8: :mzf16: mozillaZine | :ami16: Discussion
Version 0.7: :mzf16: mozillaZine | :ami16: Discussion

userChrome.js allows to easily customize Firefox through Javascript.

Posted Image

What userChrome.css is for CSS customization, userChrome.js is for Javascript. Simply edit the file userChrome.js (in the same place as userChrome.css) and its content will be run whenever a new chrome window is opened (onload).

Read more about it at AMI :ami16: here, at MozillaZine :mzf16: here and 4 posts below.

:note16: NOTES
- SeaMonkey is indeed unofficially supported starting with version 2.0a1pre (AKA SuiteRunner).

:warn16: KNOWN ISSUES
  • Known Issues with ChromEdit Plus: Version 0.7 of this extension is included in ChromEdit Plus. Should you wish to try ChromEdit Plus, you MUST uninstall userChrome.js extension and restart Firefox before installing ChromEdit Plus. If ChromEdit Plus is already installed, do not install this later version of userChrome.js. They will conflict if you install them both.

  • Known Issues when updating from version 0.7:
    If you're updating from version 0.7, please add the following line to the top of your userChrome.js before restarting Firefox or else your code will be run in places you might not expect:
    if (location != "chrome://browser/content/browser.xul") throw "stop";

    (obviously you'll want to replace that URL for applications other than Firefox)

    Non-Firefox users should be clever enough to figure out where to use these.
    chrome://messenger/content/messenger.xul 
    -or-
    chrome://navigator/content/navigator.xul
    -or-
    chrome://editor/content/editor.xul

:option16: SNIPPET COLLECTIONS
# The original userChrome.js snippet collection
# A growing collection of snippets by the author of the ScrapBook extension
# Snippet collection from the MozillaZine Knowledge Base
# Snippets collected from this thread by Pirlouy

:bell: REVISIONS
~~ 0.8 ~~~~
# userChrome.js is now run for every chrome window, not just the main one
# Suggested for inclusion into one of the next Firefox versions (see )
~~ 0.7 ~~~~
# Added support for most current Gecko applications
~~ 0.6 ~~~~
# The file userChrome.js is automatically created
~~ 0.5 ~~~~
# Initial release (2006-01-24)

:user16: Reported by: LouCypher

:bell: MODIFICATION NOTES
The modded versions were modified by Jane Ocean (Seamaiden). The only things changed were applications and versions in install.rdf and the addition of contributor lines and disclaimer. Please note that not all versions of all applications were tested in these builds, and some may not work. They are for testing and development purposes only and may not be supported by the original authors and contributors.

Original Compatibility: [fx09] 1.5.0.7 - 3.0+ [tb07] 1.5.0.7 - 3.0+ [sm] 2.0a1 - 2.0+
XULRunner Toolkit 1.8.0.7 - 1.9+
Modified Compatibility: [fx09] 1.5.0.7 - 3.0+ [tb07] 1.5.0.7 - 3.0+ [sm] 2.0a1 - 2.0+ [fl] 0.8 - 1.5+ [ns] 9.0b1 - 9.1+
XULRunner Toolkit 1.8.0.7 - 1.9+

:install: Install | :download: Download Original
:install: Install | :download: Download Modified


:ext16: PREVIOUS VERSIONS
For Nvu or older applications, please use userChrome.js 0.7.

Original Compatibility: [fx09] 1.0 - 3.0+ [tb07] 1.0 - 3.0+ [mz] 1.7 - 1.7+ [sb] 0.2 - 0.2+ [nv] 1.0 - 1.0+
Modified Compatibility: [fx09] 1.0 - 3.0+ [tb07] 1.0 - 3.0+ [mz] 1.7 - 1.8+ [sm] 1.0 - 2.0+ [ns] 8.0 - 9.1+ [fl] 0.5 - 1.5+
[nv] 0.7 - 1.1+ [sb] 0.2 - 0.6+

:install: Install | :download: Download Original
:install: Install | :download: Download Modified

:user16: AUTHOR NOTE
zeniko is aware of this AMI listing. He does not mind us mirroring his work, but he did not give us approval to do so (though, he does not deny it, either). However, zeniko did request that one thing be clarified. There have been no contributions to either the original extension or its mods by either Lou Cypher or pile0nades. What they have done is written code snippets to be used with the extension and would thus be good candidates for extension supporters.
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users