- #USERSCRIPT DI GOOGLE BOOK DOWNLOADER INSTALL#
- #USERSCRIPT DI GOOGLE BOOK DOWNLOADER SERIES#
- #USERSCRIPT DI GOOGLE BOOK DOWNLOADER WINDOWS#
You can even uninstall the script by deleting the entire element. You can change the enabled attribute to false to disable the script. You can add, remove, or edit the and elements to change where the script runs.
You can make any changes you like to the config.xml file.
(See “Install a User Script” for the location.) The graphical dialogs Greasemonkey provides are just friendly ways of editing config.xml without knowing it.Įach installed user script is represented by a element, as shown in the following example: The last way to reconfigure a user script is to manually edit the config.xml file, which is located within your Firefox profile directory. If you want the script to execute only on actual remote web pages “out there” on the Internet, you should specify the line differently, like this: This means that the user script will execute only on remote web sites, whose address starts with This will not include secure web sites, such as your bank’s online bill payment site, because that address starts with If you want the script to run on both secure and standard web sites, you’ll need to explicitly specify both, like so: Editing Configuration Files If you open a blank new window, the script will execute (since technically the “location” of a blank window is about:blank). If you open an HTML file from your local hard drive, the script will execute. If you visit a secure site (one with an address), the script will execute. If you visit a web site, the script will execute. This means that the user script should execute absolutely everywhere. If you’re writing a user script that applies to all pages, there are two subtly different ways to do that. If neither is specified, Greasemonkey will execute your user script on all sites (as if you had specified *).ĭeciding Between * and One final note, before we put the and issue to bed. You can specify as many included and excluded URLs as you like, but you must specify each on its own line. The URL matches the * (all sites), but it would be excluded because it also matches and are optional. Excludes take precedence over includes, so if you went to, the user script would not run. In this case, we are telling Greasemonkey to execute the Hello World script on all sites except and. They can be a URL, a URL with the * character as a simple wildcard for part of the domain name or path, or simply the * wildcard character by itself. The and directives share the same syntax.
#USERSCRIPT DI GOOGLE BOOK DOWNLOADER SERIES#
The and directives give a series of URLs and wildcards that tell Greasemonkey where to run this user script: // * The next three lines are the most important items (from Greasemonkey’s perspective).
#USERSCRIPT DI GOOGLE BOOK DOWNLOADER INSTALL#
įor example, to manually install the Butler user script, copy the file into your scripts directory, and then add this XML snippet to config.xml, just before : Within the element you can have multiple and elements, as defined in “Provide a Default Configuration”. The element has five attributes: filename, name, namespace, description, and enabled. To install a new script, simply copy it to this scripts directory and add a entry like the other ones in config.xml. This final scripts directory contains all your installed user scripts, as well as a configuration file named config.xml. Within that is a series of subdirectories: extensions//chrome/greasemonkey/content/scripts/. Within your Firefox directory is your Profiles directory, and within that is a randomly named directory (for security reasons).
#USERSCRIPT DI GOOGLE BOOK DOWNLOADER WINDOWS#
There is also a banner along the top that says “Enhanced by Butler.” All of these options were added by the Butler user script.Ĭ:\Windows\Application Data\Mozilla\Firefox Multiuser Windows 95/98/MEĬ:\Windows\ Profiles\%USERNAME%\Application Data\Mozilla\Firefox Windows NT 4.xĬ:\Winnt\Profiles\%USERNAME%\Application Data\Mozilla\Firefox Windows 2000 and XPĬ:\Documents and Settings\%USERNAME%\Application Data\Mozilla\Firefox Unix and Linux In the search results page, there is a line at the top of the results that says “Try your search on: Yahoo, Ask Jeeves, AlltheWeb…” as shown in Figure 1-4. If all went well, Greasemonkey will display the following alert: “Success! Refresh page to see changes.” All of this information is taken from the script itself. Right-click (Control-click on a Mac) the link titled “Download version…” (at the time of this writing, Version 0.3 is the latest release).įrom the context menu, select Install User Script….Ī dialog titled Install User Script will pop up, displaying the name of the script you are about to install (Butler, in this case), a brief description of what the script does, and a list of included and excluded pages. Visit the Butler home page ( ) to see a brief description of the functionality that Butler offers.