Martii / greasemonkey forked from greasemonkey/greasemonkey

Home | Edit | New

Script Order

Script order is:

  • The order in which scripts are installed.
  • The order in which scripts are executed.
  • The order in which scripts are shown in the script manager.

This order is stored in the config.xml file, which also stores script metadata and custom include and exclude rules.

When a script is installed or reinstalled, it is placed at the end of the script order. When a script is modified in place, it is not reordered.

Reordering scripts

There are two ways to modify the order that scripts run in.

  • Open the Greasemonkey Script Manager and edit the order on the left-hand side. You can reorder the scripts via drag & drop with the mouse, Alt+Up and Alt+Down.

The lower down the script is on this list, the later it is executed.

  • Alternatively, you can edit the config.xml file. This is an XML file that contains a block starting with <Script> and ending with </Script> for each script that you currently have installed.
    The order in which the scripts are shown in this file also determines which order scripts are executed.

Warning: Be sure to make a backup copy of the file before editing config.xml

Last edited by Martii, Mon Oct 26 15:52:51 -0700 2009
Home | Edit | New
Versions: