Greasemonkey for IE  
Home | Download | Contact | Screenshots | Scripts | Help

Greasemonkey for IE Help

Using Greasemonkey for IE


Installing Scripts

You can install user scripts by downloading and opening them from the internet. User scripts ends with the ".gm4ie" extension. You can also add install a script from the manager by clicking on the add button and selecting the script.





Script Configuration

Each user script will be automatically be assigned to one or more domains. You can fine-tune which domains will be affected by selecting the script name and clicking on the Edit Domain button. Specify only the top most domain name (i.e. google.com) or use "*" for all domains (multiple domains are seperated by a comma).



Writing User Scripts


You can write your very own shiny user script with just a few steps:

1. Create the file

Open a new text file in your favorite editor and throw some javascript in there. For example, you might create this simple script:

alert("Hello, world!");

2. Save the file

You can choose any name, but you need to create the gm4ie file in order to install the script.

gm4ie file has a simple INI structure with a "Script" section and 4 fields:

[Script]
Name = A descriptive name for your script
Domains = Domains the script will affect. For example: google.com
ScriptURL = The URL address where the actual JS script is located.
version = The script version number


Example:

[Script]

Name = Rewrite links to point straight to the images in Google Images
Domains = google.com
ScriptURL = http://www.gm4ie.com/scripts/GoogleImages.js
version = 1

If you want to manually install the script (without the gm4ie file) open the "extension.list" in GM4IE folder and add your script details:

For example:

[Add Multi Search Engines]
Name=Add Multi Search Engines
Domains=google.com
ScriptFileName=AddMultiSearch.js
version=1


3. Test the script

Once your script details are in the "extension.list" file (either manually or by hand), start the GM4IE manager and restart GM4IE (Press the Stop and Start buttons). The script will be loaded and affect the specified site immediately.

Important: Making changes to the script will take affect only after your restart GM4IE through the manager.

Please note: User scripts are executed only after the document was fully loaded.

Getting ideas for scripts

You can get ideas for script from the Firefox user scripts repository. You can also port many of the Firefox script to IE and publish them here.
  - Privacy Policy