Greasemonkey Hacks. Tips & Tools for Remixing the Web with Firefox - Helion
ISBN: 978-05-965-5357-9
stron: 496, Format: ebook
Data wydania: 2005-11-15
Księgarnia: Helion
Cena książki: 89,90 zł
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.
Osoby które kupowały "Greasemonkey Hacks. Tips & Tools for Remixing the Web with Firefox", wybierały także:
- Mastering MEAN Stack 88,72 zł, (67,43 zł -24%)
- Psychology of UX Design 88,72 zł, (67,43 zł -24%)
- Time Is Money. The Business Value of Web Performance 74,99 zł, (63,74 zł -15%)
- SVG Text Layout. Words as Art 94,98 zł, (80,73 zł -15%)
- Discussing Design. Improving Communication and Collaboration through Critique 94,98 zł, (80,73 zł -15%)
Spis treści
Greasemonkey Hacks. Tips & Tools for Remixing the Web with Firefox eBook -- spis treści
- Greasemonkey Hacks
- SPECIAL OFFER: Upgrade this ebook with OReilly
- A Note Regarding Supplemental Files
- Foreword
- Credits
- About the Author
- Contributors
- Acknowledgments
- Preface
- Why Greasemonkey Hacks?
- How This Book Is Organized
- Conventions Used in This Book
- Using Code Examples
- Safari Enabled
- How to Contact Us
- Got a Hack?
- 1. Getting Started
- 1.1. Hacks 112: Introduction
- Hack #1. Install a User Script
- 1.2.1. Installing from the Context Menu
- 1.2.2. Installing from the Tools Menu
- 1.2.3. Editing Greasemonkeys Configuration Files
- Hack #2. Provide a Default Configuration
- 1.3.1. The Code
- 1.3.2. Wrapper
- 1.3.3. Name
- 1.3.4. Namespace
- 1.3.5. Description
- 1.3.6. URL Directives
- Hack #3. Master the @include and @exclude Directives
- 1.4.1. Matching with or Without the www. Prefix
- 1.4.2. Matching All Subdomains of a Site
- 1.4.3. Matching Different Top-Level Domains of a Site
- 1.4.4. Deciding Between * and http://*
- Hack #4. Prevent a User Script from Executing
- 1.5.1. Disabling a User Script Without Uninstalling It
- 1.5.2. Disabling All User Scripts
- 1.5.3. Disabling a User Script by Removing All Included Pages
- 1.5.4. Disabling a User Script by Excluding All Pages
- 1.5.5. Disabling a User Script by Editing config.xml
- 1.5.6. Uninstalling a User Script
- Hack #5. Configure a User Script
- 1.6.1. Inline
- 1.6.2. During Installation
- 1.6.3. After Installation
- 1.6.4. Editing Configuration Files
- Hack #6. Add or Remove Content on a Page
- 1.7.1. Adding an Element
- 1.7.2. Removing an Element
- 1.7.3. Inserting an Element
- 1.7.4. Replacing an Element
- 1.7.5. Modifying an Element's Attributes
- Hack #7. Alter a Page's Style
- 1.8.1. Adding a Global Style
- 1.8.2. Inserting or Removing a Single Style
- 1.8.3. Modifying an Element's Style
- Hack #8. Master XPath Expressions
- 1.9.1. Basic Syntax
- 1.9.2. Examples
- Hack #9. Develop a User Script "Live"
- 1.10.1. Setting Up File Associations
- 1.10.1.1. On Mac OS X.
- 1.10.1.2. On Windows.
- 1.10.2. The "Live Editing" Development Cycle
- 1.10.1. Setting Up File Associations
- Hack #10. Debug a User Script
- 1.11.1. Check Error Messages
- 1.11.2. Log Errors
- 1.11.3. Find Page Elements
- 1.11.4. Test JavaScript Code Interactively
- Hack #11. Embed Graphics in a User Script
- 1.12.1. The Code
- 1.12.2. Running the Hack
- 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 1320: Introduction
- Hack #13. Turn Naked URLs into Hyperlinks
- 2.2.1. The Code
- 2.2.2. Running the Hack
- 2.2.3. Hacking the Hack
- Hack #14. Force Offsite Links to Open in a New Window
- 2.3.1. The Code
- 2.3.2. Running the Hack
- 2.3.3. Hacking the Hack
- Hack #15. Fix Broken Pop-up Links
- 2.4.1. The Code
- 2.4.2. Running the Hack
- 2.4.3. Hacking the Hack
- Hack #16. Remove URL Redirections
- 2.5.1. The Code
- 2.5.2. Running the Hack
- Hack #17. Warn Before Opening PDF Links
- 2.6.1. The Code
- 2.6.2. Running the Hack
- Hack #18. Avoid the Slashdot Effect
- 2.7.1. The Code
- 2.7.2. Running the Hack
- Hack #19. Convert UPS and FedEx Tracking Numbers to Links
- 2.8.1. The Code
- 2.8.2. Running the Hack
- Hack #20. Follow Links Without Clicking Them
- 2.9.1. The Code
- 2.9.2. Running the Hack
- 3. Beautifying the Web
- 3.1. Hacks 2128: Introduction
- Hack #21. Banish the Scourge of Arial
- 3.2.1. The Code
- 3.2.2. Running the Hack
- 3.2.3. Hacking the Hack
- Hack #22. Add Stripes to Data Tables
- 3.3.1. The Code
- 3.3.2. Running the Hack
- 3.3.3. Hacking the Hack
- Hack #23. Straighten Smart Quotes
- 3.4.1. The Code
- 3.4.2. Running the Hack
- Hack #24. Convert Graphical Smileys to Text
- 3.5.1. The Code
- 3.5.2. Running the Hack
- 3.5.3. Hacking the Hack
- Hack #25. Make Amazon Product Images Larger
- 3.6.1. The Code
- 3.6.2. Running the Hack
- 3.6.3. Hacking the Hack
- Hack #26. Convert Straight Quotes
- 3.7.1. The Code
- 3.7.2. Running the Hack
- Hack #27. Add Dynamic Highlighting to Tables
- 3.8.1. The Code
- 3.8.2. Running the Hack
- 3.8.3. Hacking the Hack
- Hack #28. Make Pop-up Titles Prettier
- 3.9.1. The Code
- 3.9.2. Running the Hack
- 3.9.3. Hacking the Hack
- 4. Web Forms
- 4.1. Hacks 2939: Introduction
- Hack #29. Display Form Actions in a Tool Tip
- 4.2.1. The Code
- 4.2.2. Running the Hack
- 4.2.3. Hacking the Hack
- Hack #30. Show Hidden Form Fields
- 4.3.1. The Code
- 4.3.2. Running the Hack
- Hack #31. Identify Password Fields
- 4.4.1. The Code
- 4.4.2. Running the Hack
- 4.4.3. Hacking the Hack
- Hack #32. Allow Password Remembering
- 4.5.1. The Code
- 4.5.2. Running the Hack
- Hack #33. Confirm Before Closing Modified Pages
- 4.6.1. The Code
- 4.6.2. Running the Hack
- 4.6.3. Hacking the Hack
- Hack #34. Resize Text Input Fields with the Keyboard
- 4.7.1. The Code
- 4.7.2. Running the Hack
- Hack #35. Enter Textile Markup in Web Forms
- 4.8.1. The Code
- 4.8.2. Running the Hack
- 4.8.3. Hacking the Hack
- Hack #36. Select Multiple Checkboxes
- 4.9.1. The Code
- 4.9.2. Running the Hack
- Hack #37. Keep Track of Secure Site Passwords
- 4.10.1. The Code
- 4.10.2. Running the Hack
- Hack #38. Automatically Log into Web Mail and Other Sites
- 4.11.1. The Code
- 4.11.2. Running the Hack
- Hack #39. Build Calendar Events
- 4.12.1. The Code
- 4.12.2. Running the Hack
- 5. Developer Tools
- 5.1. Hacks 4046: Introduction
- Hack #40. Remove All Page Styles on Selected Sites
- 5.2.1. The Code
- 5.2.2. Running the Hack
- 5.2.3. Hacking the Hack
- Hack #41. Refresh Pages Automatically
- 5.3.1. The Code
- 5.3.2. Running the Hack
- Hack #42. Make External Stylesheets Clickable
- 5.4.1. The Code
- 5.4.2. Running the Hack
- 5.4.3. Hacking the Hack
- Hack #43. Show Image Information
- 5.5.1. The Code
- 5.5.2. Running the Hack
- Hack #44. Filter Code Examples on MSDN
- 5.6.1. The Code
- 5.6.2. Running the Hack
- Hack #45. Intercept and Modify Form Submissions
- 5.7.1. The Code
- 5.7.2. Running the Hack
- Hack #46. Trace XMLHttpRequest Activity
- 5.8.1. The Code
- 5.8.2. Running the Hack
- 6. Search
- 6.1. Hacks 4759: Introduction
- Hack #47. Add a Site Search
- 6.2.1. The Code
- 6.2.2. Running the Hack
- 6.2.3. Hacking the Hack
- Hack #48. Remove Spammy Domains from Search Results
- 6.3.1. The Code
- 6.3.2. Running the Hack
- 6.3.3. Hacking the Hack
- Hack #49. Find Similar Images
- 6.4.1. The Code
- 6.4.2. Running the Hack
- Hack #50. Search Wikipedia with Google Site Search
- 6.5.1. The Code
- 6.5.2. Running the Hack
- Hack #51. Link to Other Search Engines from Google
- 6.6.1. The Code
- 6.6.2. Running the Hack
- 6.6.3. Hacking the Hack
- Hack #52. Prefetch Yahoo! Search Results
- 6.7.1. The Code
- 6.7.2. Running the Hack
- 6.7.3. Hacking the Hack
- Hack #53. Browse the Web Through Google's Cache
- 6.8.1. The Code
- 6.8.2. Running the Hack
- Hack #54. Add More Book Reviews to Google Print
- 6.9.1. The Code
- 6.9.2. Running the Hack
- 6.9.3. Hacking the Hack
- Hack #55. Autocomplete Search Terms as You Type
- 6.10.1. The Code
- 6.10.2. Running the Hack
- Hack #56. Highlight Search Terms
- 6.11.1. The Code
- 6.11.2. Running the Hack
- 6.11.3. Hacking the Hack
- Hack #57. Remember Recent Google Searches
- 6.12.1. The Code
- 6.12.2. Running the Hack
- 6.12.3. Hacking the Hack
- Hack #58. Add Keyboard Shortcuts to Google Search Results
- 6.13.1. The Code
- 6.13.2. Running the Hack
- 6.13.3. Hacking the Hack
- Hack #59. Use Recent Searches and Google SearchKeys Together
- 6.14.1. The Code
- 6.14.2. Running the Hack
- 7. Web Mail
- 7.1. Hacks 6066: Introduction
- Hack #60. Force Gmail to Use a Secure Connection
- 7.2.1. The Code
- 7.2.2. Running the Hack
- 7.2.3. Hacking the Hack
- Hack #61. Warn Before Replying to Multiple Recipients in Gmail
- 7.3.1. The Code
- 7.3.2. Running the Hack
- Hack #62. Warn Before Sending Gmail Messages with Missing Attachments
- 7.4.1. The Code
- 7.4.2. Running the Hack
- Hack #63. Compose Your Mail in Gmail
- 7.5.1. The Code
- 7.5.2. Running the Hack
- 7.5.3. Hacking the Hack
- Hack #64. Add a Delete Button to Gmail
- 7.6.1. The Code
- 7.6.2. Running the Hack
- Hack #65. Select Your Yahoo! ID from a List
- 7.7.1. The Code
- 7.7.2. Running the Hack
- 7.7.3. Hacking the Hack
- Hack #66. Add Saved Searches to Gmail
- 7.8.1. The Code
- 7.8.2. Running the Hack
- 8. Accessibility
- 8.1. Hacks 6776: Introduction
- Hack #67. Highlight Images Without Alternate Text
- 8.2.1. The Code
- 8.2.2. Running the Hack
- 8.2.3. Hacking the Hack
- Hack #68. Add an Access Bar with Keyboard Shortcuts
- 8.3.1. The Code
- 8.3.2. Running the Hack
- Hack #69. Remove Conflicting Keyboard Shortcuts
- 8.4.1. The Code
- 8.4.2. Running the Hack
- Hack #70. Make Image alt Text Visible
- 8.5.1. The Code
- 8.5.2. Running the Hack
- 8.5.3. Hacking the Hack
- Hack #71. Add a Table of Contents to Long Pages
- 8.6.1. The Code
- 8.6.2. Running the Hack
- Hack #72. Use Real Headers on Google Web Search
- 8.7.1. The Code
- 8.7.2. Running the Hack
- Hack #73. Add a Toolbar to Zoom Images Easily
- 8.8.1. The Code
- 8.8.2. Running the Hack
- 8.8.3. Hacking the Hack
- Hack #74. Make Apache Directory Listing Prettier
- 8.9.1. The Code
- 8.9.2. Running the Hack
- Hack #75. Add a Text-Sizing Toolbar to Web Forms
- 8.10.1. The Code
- 8.10.2. Running the Hack
- Hack #76. Make Google More Accessible for Low-Vision Users
- 8.11.1. The Code
- 8.11.2. Running the Hack
- 9. Taking Back the Browser
- 9.1. Hacks 7784: Introduction
- Hack #77. Reenable Context Menus on Sites That Disable Them
- 9.2.1. The Code
- 9.2.2. Running the Hack
- Hack #78. Bypass Weight Watchers' Browser Checker
- 9.3.1. The Code
- 9.3.2. Running the Hack
- Hack #79. Easily Download Embedded Movies
- 9.4.1. The Code
- 9.4.2. Running the Hack
- Hack #80. Break Out of Frames
- 9.5.1. The Code
- 9.5.2. Running the Hack
- Hack #81. Disable Targets for Downloads
- 9.6.1. The Code
- 9.6.2. Running the Hack
- 9.6.3. Hacking the Hack
- Hack #82. Automatically Link to Printer-Friendly Versions
- 9.7.1. The Code
- 9.7.2. Running the Hack
- Hack #83. Restore Functionality in Google Print
- 9.8.1. The Code
- 9.8.2. Running the Hack
- Hack #84. Bypass Annoying Site Registrations
- 9.9.1. The Code
- 9.9.2. Running the Hack
- 10. Syndication
- 10.1. Hacks 8589: Introduction
- Hack #85. Automatically Display Unread Items in Bloglines
- 10.2.1. The Code
- 10.2.2. Running the Hack
- Hack #86. Zap Ugly XML Buttons
- 10.3.1. The Code
- 10.3.2. Running the Hack
- 10.3.3. Hacking the Hack
- Hack #87. Squeeze More Feeds into the Bloglines Sidebar
- 10.4.1. The Code
- 10.4.2. Running the Hack
- Hack #88. Automatically Collect Syndicated Feeds
- 10.5.1. The Code
- 10.5.2. Running the Hack
- Hack #89. Syndicate Encrypted Content
- 10.6.1. The Code
- 10.6.2. Running the Hack
- 11. Site Integration
- 11.1. Hacks 9094: Introduction
- Hack #90. Translate Any Web Page
- 11.2.1. The Code
- 11.2.2. Running the Hack
- Hack #91. Warn Before Buying an Album
- 11.3.1. The Code
- 11.3.2. Running the Hack
- Hack #91. Find Out Who's Reading What You're Reading
- 11.4.1. The Code
- 11.4.2. Running the Hack
- Hack #93. Add Wikipedia Links to Any Web Page
- 11.5.1. The Code
- 11.5.2. Running the Hack
- Hack #94. Compare Book Prices
- 11.6.1. The Code
- 11.6.2. Running the Hack
- 12. Those Not Included in This Classification
- 12.1. Hacks 95100: Introduction
- Hack #95. Maximize HomestarRunner Cartoons
- 12.2.1. The Code
- 12.2.2. Running the Hack
- Hack #96. Refine Your Google Search
- 12.3.1. The Code
- 12.3.2. Running the Hack
- Hack #97. Check Whether Pages Really Validate
- 12.4.1. The Code
- 12.4.2. Running the Hack
- Hack #98. Animate Wikipedia History
- 12.5.1. The Code
- 12.5.2. Running the Hack
- Hack #99. Create Greasemonkey Scripts Automatically
- 12.6.1. Running the Hack
- Hack #100. Remember Everything You Read
- 12.7.1. The Code
- 12.7.2. Running the Hack
- About the Author
- Colophon
- SPECIAL OFFER: Upgrade this ebook with OReilly