Book description
Greasemonkey Hacks is an invaluable compendium 100 ingenious hacks for power users who want to master Greasemonkey, the hot new Firefox extension that allows you to write scripts that alter the web pages you visit. With Greasemonkey, you can create scripts that make a web site more usable, fix rendering bugs that site owners can't be bothered to fix themselves, or add items to a web site's menu bar. You can alter pages so they work better with technologies that speak a web page out loud or convert it to Braille. Greasemonkey gurus can even import, combine, and alter data from different web sites to meet their own specific needs.
Greasemonkey has achieved a cult-like following in its short lifespan, but its uses are just beginning to be explored. Let's say you're shopping on an e-commerce site. You can create a script that will automatically display competitive prices for that particular product from other web sites. The possibilities are limited only by your imagination and your Greasemonkey expertise. Greasemonkey Hacks can't help you with the imagination part, but it can provide the expert hacks-complete with the sample code-you need to turn your brainstorms into reality.
More than just an essential collection of made-to-order Greasemonkey solutions, Greasemonkey Hacks is crammed with sample code, a Greasemonkey API reference, and a comprehensive list of resources, to ensure that every resource you need is available between its covers.
Some people are content to receive information from websites passively; some people want to control it. If you are one of the latter, Greasemonkey Hacks provides all the clever customizations and cutting-edge tips and tools you need to take command of any web page you view.
Publisher resources
Table of contents
-
Greasemonkey Hacks
- SPECIAL OFFER: Upgrade this ebook with O’Reilly
- A Note Regarding Supplemental Files
- Foreword
- Credits
- Preface
-
1. Getting Started
- 1.1. Hacks 1–12: Introduction
- Hack #1. Install a User Script
- Hack #2. Provide a Default Configuration
- Hack #3. Master the @include and @exclude Directives
- Hack #4. Prevent a User Script from Executing
- Hack #5. Configure a User Script
- Hack #6. Add or Remove Content on a Page
- Hack #7. Alter a Page's Style
- Hack #8. Master XPath Expressions
- Hack #9. Develop a User Script "Live"
- Hack #10. Debug a User Script
- Hack #11. Embed Graphics in a User Script
-
Hack #12. Avoid Common Pitfalls
- 1.13.1. Security Hole #1: Source Code Leakage
- 1.13.2. Security Hole #2: API Leakage
- 1.13.3. Security Hole #3: Local File Access
- 1.13.4. Redesigning from the Ground Up
- 1.13.5. Going Deeper
- 1.13.6. Pitfall #1: Auto-eval Strings
- 1.13.7. Pitfall #2: Event Handlers
- 1.13.8. Pitfall #3: Named Forms and Form Elements
- 1.13.9. Pitfall #4: Custom Properties
- 1.13.10. Pitfall #5: Iterating Collections
- 1.13.11. Pitfall #6: scrollIntoView
- 1.13.12. Pitfall #7: location
- 1.13.13. Pitfall #8: Calling Remote Page Scripts
- 1.13.14. Pitfall #9: watch
- 1.13.15. Pitfall #10: style
- 1.13.16. Conclusion
-
2. Linkmania!
- 2.1. Hacks 13–20: Introduction
- Hack #13. Turn Naked URLs into Hyperlinks
- Hack #14. Force Offsite Links to Open in a New Window
- Hack #15. Fix Broken Pop-up Links
- Hack #16. Remove URL Redirections
- Hack #17. Warn Before Opening PDF Links
- Hack #18. Avoid the Slashdot Effect
- Hack #19. Convert UPS and FedEx Tracking Numbers to Links
- Hack #20. Follow Links Without Clicking Them
-
3. Beautifying the Web
- 3.1. Hacks 21–28: Introduction
- Hack #21. Banish the Scourge of Arial
- Hack #22. Add Stripes to Data Tables
- Hack #23. Straighten Smart Quotes
- Hack #24. Convert Graphical Smileys to Text
- Hack #25. Make Amazon Product Images Larger
- Hack #26. Convert Straight Quotes
- Hack #27. Add Dynamic Highlighting to Tables
- Hack #28. Make Pop-up Titles Prettier
-
4. Web Forms
- 4.1. Hacks 29–39: Introduction
- Hack #29. Display Form Actions in a Tool Tip
- Hack #30. Show Hidden Form Fields
- Hack #31. Identify Password Fields
- Hack #32. Allow Password Remembering
- Hack #33. Confirm Before Closing Modified Pages
- Hack #34. Resize Text Input Fields with the Keyboard
- Hack #35. Enter Textile Markup in Web Forms
- Hack #36. Select Multiple Checkboxes
- Hack #37. Keep Track of Secure Site Passwords
- Hack #38. Automatically Log into Web Mail and Other Sites
- Hack #39. Build Calendar Events
-
5. Developer Tools
- 5.1. Hacks 40–46: Introduction
- Hack #40. Remove All Page Styles on Selected Sites
- Hack #41. Refresh Pages Automatically
- Hack #42. Make External Stylesheets Clickable
- Hack #43. Show Image Information
- Hack #44. Filter Code Examples on MSDN
- Hack #45. Intercept and Modify Form Submissions
- Hack #46. Trace XMLHttpRequest Activity
-
6. Search
- 6.1. Hacks 47–59: Introduction
- Hack #47. Add a Site Search
- Hack #48. Remove Spammy Domains from Search Results
- Hack #49. Find Similar Images
- Hack #50. Search Wikipedia with Google Site Search
- Hack #51. Link to Other Search Engines from Google
- Hack #52. Prefetch Yahoo! Search Results
- Hack #53. Browse the Web Through Google's Cache
- Hack #54. Add More Book Reviews to Google Print
- Hack #55. Autocomplete Search Terms as You Type
- Hack #56. Highlight Search Terms
- Hack #57. Remember Recent Google Searches
- Hack #58. Add Keyboard Shortcuts to Google Search Results
- Hack #59. Use Recent Searches and Google SearchKeys Together
-
7. Web Mail
- 7.1. Hacks 60–66: Introduction
- Hack #60. Force Gmail to Use a Secure Connection
- Hack #61. Warn Before Replying to Multiple Recipients in Gmail
- Hack #62. Warn Before Sending Gmail Messages with Missing Attachments
- Hack #63. Compose Your Mail in Gmail
- Hack #64. Add a Delete Button to Gmail
- Hack #65. Select Your Yahoo! ID from a List
- Hack #66. Add Saved Searches to Gmail
-
8. Accessibility
- 8.1. Hacks 67–76: Introduction
- Hack #67. Highlight Images Without Alternate Text
- Hack #68. Add an Access Bar with Keyboard Shortcuts
- Hack #69. Remove Conflicting Keyboard Shortcuts
- Hack #70. Make Image alt Text Visible
- Hack #71. Add a Table of Contents to Long Pages
- Hack #72. Use Real Headers on Google Web Search
- Hack #73. Add a Toolbar to Zoom Images Easily
- Hack #74. Make Apache Directory Listing Prettier
- Hack #75. Add a Text-Sizing Toolbar to Web Forms
- Hack #76. Make Google More Accessible for Low-Vision Users
-
9. Taking Back the Browser
- 9.1. Hacks 77–84: Introduction
- Hack #77. Reenable Context Menus on Sites That Disable Them
- Hack #78. Bypass Weight Watchers' Browser Checker
- Hack #79. Easily Download Embedded Movies
- Hack #80. Break Out of Frames
- Hack #81. Disable Targets for Downloads
- Hack #82. Automatically Link to Printer-Friendly Versions
- Hack #83. Restore Functionality in Google Print
- Hack #84. Bypass Annoying Site Registrations
- 10. Syndication
- 11. Site Integration
- 12. Those Not Included in This Classification
- About the Author
- Colophon
- SPECIAL OFFER: Upgrade this ebook with O’Reilly
Product information
- Title: Greasemonkey Hacks
- Author(s):
- Release date: November 2005
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596553579
You might also like
article
Use Github Copilot for Prompt Engineering
Using GitHub Copilot can feel like magic. The tool automatically fills out entire blocks of code--but …
article
Splitting Strings on Any of Multiple Delimiters
Build your knowledge of Python with this Shortcuts collection. Focusing on common problems involving text manipulation, …
article
Managing Encryption Keys
This collection of shortcuts provides a practical and concise guide to securing cloud environments. It covers …
book
Ruby by Example
There may be no better way to learn how to program than by dissecting real, representative …