
|


How do these hacks stand up? Comment on a hack from the book by choosing the associated "Discuss" link below. You can also view the code from any of the hacks by clicking on the "Listing" or "Code" links. A number of hacks have been selected to be featured online in their entirety; you may view those hacks by clicking on the hack titles that are linked.
You can also download all the scripts and other files for this book here.
Getting Started
HACK
#1 |
 |
|
Install a User Script
Greasemonkey won't do anything until you start installing user scripts to customize specific web pages
[Discuss (0) | Link to this hack]
|
 |
HACK
#2 |
 |
|
Provide a Default Configuration
User scripts can be self-describing; they can contain information about what they do and where they should run by default
The Code
[Discuss (0) | Link to this hack]
|
 |
HACK
#3 |
 |
|
Master the @include and @exclude Directives
Describing exactly where you want your user script to execute can be tricky
[Discuss (0) | Link to this hack]
|
 |
HACK
#4 |
 |
|
Prevent a User Script from Executing
You can disable a user script temporarily, disable all user scripts, or uninstall a user script permanently
[Discuss (0) | Link to this hack]
|
 |
HACK
#5 |
 |
|
Configure a User Script
There's more than one way to configure Greasemonkey user scripts: before, during, and after installation
[Discuss (0) | Link to this hack]
|
 |
HACK
#8 |
 |
|
Master XPath Expressions
Tap into a powerful new way to find exactly what you're looking for on a page
[Discuss (0) | Link to this hack]
|
 | Linkmania!
Beautifying the Web
HACK
#23 |
 |
|
Straighten Smart Quotes
Convert curly quotes, apostrophes, and other fancy typographical symbols back to their ASCII equivalents
The Code
[Discuss (0) | Link to this hack]
|
 |
HACK
#24 |
 |
|
Convert Graphical Smileys to Text
Are you tired of little smiley icons infesting web pages and discussion forums? Convert them back to text
The Code
[Discuss (0) | Link to this hack]
|
 | Web Forms
Developer Tools
HACK
#40 |
 |
|
Remove All Page Styles on Selected Sites
Disable all CSS styling on sites that go out of their way to make themselves unreadable
The Code
[Discuss (0) | Link to this hack]
|
 | Search
HACK
#47 |
 |
|
Add a Site Search
Google can restrict your search to a specific site. You can take advantage of this feature to add a site search to every page you visit
The Code
[Discuss (0) | Link to this hack]
|
 |
HACK
#48 |
 |
|
Remove Spammy Domains from Search Results
Fight back against search engine spammers who register domains with multiple "hot" keywords separated by hyphens
The Code
[Discuss (0) | Link to this hack]
|
 | Web Mail
Accessibility
Taking Back the Browser
HACK
#77 |
 |
|
Reenable Context Menus on Sites That Disable Them
Tired of too-clever web developers disabling right-click on images? Reenable the full functionality of your browser
The Code
[Discuss (0) | Link to this hack]
|
 |
HACK
#82 |
 |
|
Automatically Link to Printer-Friendly Versions
Get the content without the cruft by changing selected article links to "printer-friendly" versions
The Code
[Discuss (0) | Link to this hack]
|
 |
HACK
#83 |
 |
|
Restore Functionality in Google Print
Google Print goes to extraordinary lengths to keep you from downloading images, but you don't need to go to the same extraordinary lengths to get them anyway
The Code
[Discuss (0) | Link to this hack]
|
 | Syndication
HACK
#85 |
 |
|
Automatically Display Unread Items in Bloglines
Bloglines already defines a function to display unread items. Save yourself a click and call it automatically
The Code
[Discuss (0) | Link to this hack]
|
 |
HACK
#88 |
 |
|
Automatically Collect Syndicated Feeds
Autodiscover RSS and Atom feeds as you browse, and then generate a subscriptions file you can import into any news aggregator
The Code
[Discuss (0) | Link to this hack]
|
 | Site Integration
Those Not Included in This Classification
HACK
#96 |
 |
|
Refine Your Google Search
Google might already know what keywords you should add to your search to find exactly what you're looking for
The Code
[Discuss (0) | Link to this hack]
|
 |
HACK
#97 |
 |
|
Check Whether Pages Really Validate
If someone puts a badge on her site claiming to be "Valid XHTML," run it through the W3C Validator and see if she's telling the truth
The Code
[Discuss (0) | Link to this hack]
|
 |
HACK
#99 |
 |
|
Create Greasemonkey Scripts Automatically
Meet Platypus, the graphical interface for Greasemonkey
[Discuss (0) | Link to this hack]
|
 |
|
O'Reilly Home | Privacy Policy

© 2007 O'Reilly Media, Inc.
Website:
| Customer Service:
| Book issues:
All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.
|
|
|