Hack #1. Install a User Script
Greasemonkey won't do anything until you start installing user scripts to customize specific web pages.
A Greasemonkey user script is a single file, written in JavaScript, that customizes one or more web pages. So, before Greasemonkey can start working for you, you need to install a user script.
Tip
Many user scripts are available at the Greasemonkey script repository: http://userscripts.org.
This hack shows three ways to install user scripts. The first user script I ever wrote was called Butler. It adds functionality to Google search results.
Installing from the Context Menu
Here's how to install Butler from the context menu:
Visit the Butler home page (http://diveintomark.org/projects/butler/) to see a brief description of the functionality that Butler offers.
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).
From the context menu, select Install User Script….
A 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. All of this information is taken from the script itself [Hack #2] .
Click OK to install the user script.
If all went well, Greasemonkey will display the following alert: "Success! Refresh page to see changes."
Now, search for something in Google. In the search results page, there is a line at the top ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access