Greasemonkey Hacks: Tips & Tools for Remixing the Web with Firefox

Mark Pilgrim

  • 出版商: O'Reilly
  • 出版日期: 2005-11-01
  • 售價: $1,090
  • 貴賓價: 9.5$1,036
  • 語言: 英文
  • 頁數: 496
  • 裝訂: Paperback
  • ISBN: 0596101651
  • ISBN-13: 9780596101657
  • 已過版

買這商品的人也買了...

相關主題

商品描述

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.

 

Table of Contents

Foreword  

Credits  

Preface  

Chapter 1. Getting Started 

      1. Install a User Script  

      2. Provide a Default Configuration  

      3. Master the @include and @exclude Directives  

      4. Prevent a User Script from Executing  

      5. Configure a User Script  

      6. Add or Remove Content on a Page  

      7. Alter a Page's Style  

      8. Master XPath Expressions  

      9. Develop a User Script "Live"  

      10. Debug a User Script  

      11. Embed Graphics in a User Script  

      12. Avoid Common Pitfalls  

Chapter 2. Linkmania! 

      13. Turn Naked URLs into Hyperlinks  

      14. Force Offsite Links to Open in a New Window
      15. Fix Broken Pop-up Links  

      16. Remove URL Redirections  

      17. Warn Before Opening PDF Links  

      18. Avoid the Slashdot Effect  

      19. Convert UPS and FedEx Tracking Numbers to Links  

      20. Follow Links Without Clicking Them  

Chapter 3. Beautifying the Web 

      21. Banish the Scourge of Arial  

      22. Add Stripes to Data Tables  

      23. Straighten Smart Quotes  

      24. Convert Graphical Smileys to Text  

      25. Make Amazon Product Images Larger  

      26. Convert Straight Quotes  

      27. Add Dynamic Highlighting to Tables  

      28. Make Pop-up Titles Prettier  

Chapter 4. Web Forms 

      29. Display Form Actions in a Tool Tip  

      30. Show Hidden Form Fields  

      31. Identify Password Fields  

      32. Allow Password Remembering  

      33. Confirm Before Closing Modified Pages  

      34. Resize Text Input Fields with the Keyboard  

      35. Enter Textile Markup in Web Forms  

      36. Select Multiple Checkboxes  

      37. Keep Track of Secure Site Passwords  

      38. Automatically Log into Web Mail and Other Sites  

      39. Build Calendar Events  

Chapter 5. Developer Tools 

      40. Remove All Page Styles on Selected Sites  

      41. Refresh Pages Automatically  

      42. Make External Stylesheets Clickable  

      43. Show Image Information  

      44. Filter Code Examples on MSDN  

      45. Intercept and Modify Form Submissions  

      46. Trace XMLHttpRequest Activity  

Chapter 6. Search 

      47. Add a Site Search  

      48. Remove Spammy Domains from Search Results  

      49. Find Similar Images  

      50. Search Wikipedia with Google Site Search  

      51. Link to Other Search Engines from Google  

      52. Prefetch Yahoo! Search Results  

      53. Browse the Web Through Google's Cache  

      54. Add More Book Reviews to Google Print  

      55. Autocomplete Search Terms as You Type  

      56. Highlight Search Terms  

      57. Remember Recent Google Searches  

      58. Add Keyboard Shortcuts to Google Search Results  

      59. Use Recent Searches and Google SearchKeys Together  

Chapter 7. Web Mail 

      60. Force Gmail to Use a Secure Connection  

      61. Warn Before Replying to Multiple Recipients in Gmail  

      62. Warn Before Sending Gmail Messages with Missing Attachments  

      63. Compose Your Mail in Gmail  

      64. Add a Delete Button to Gmail  

      65. Select Your Yahoo! ID from a List  

      66. Add Saved Searches to Gmail  

Chapter 8. Accessibility 

      67. Highlight Images Without Alternate Text  

      68. Add an Access Bar with Keyboard Shortcuts  

      69. Remove Conflicting Keyboard Shortcuts  

      70. Make Image alt Text Visible  

      71. Add a Table of Contents to Long Pages  

      72. Use Real Headers on Google Web Search  

      73. Add a Toolbar to Zoom Images Easily  

      74. Make Apache Directory Listing Prettier  

      75. Add a Text-Sizing Toolbar to Web Forms  

      76. Make Google More Accessible for Low-Vision Users  

Chapter 9. Taking Back the Browser 

      77. Reenable Context Menus on Sites That Disable Them  

      78. Bypass Weight Watchers' Browser Checker  

      79. Easily Download Embedded Movies  

      80. Break Out of Frames  

      81. Disable Targets for Downloads  

      82. Automatically Link to Printer-Friendly Versions  

      83. Restore Functionality in Google Print  

      84. Bypass Annoying Site Registrations  

Chapter 10. Syndication 

      85. Automatically Display Unread Items in Bloglines  

      86. Zap Ugly XML Buttons  

      87. Squeeze More Feeds into the Bloglines Sidebar  

      88. Automatically Collect Syndicated Feeds  

      89. Syndicate Encrypted Content  

Chapter 11. Site Integration 

      90. Translate Any Web Page  

      91. Warn Before Buying an Album  

      92. Find Out Who's Reading What You're Reading  

      93. Add Wikipedia Links to Any Web Page  

      94. Compare Book Prices  

Chapter 12. Those Not Included in This Classification 

      95. Maximize HomestarRunner Cartoons  

      96. Refine Your Google Search  

      97. Check Whether Pages Really Validate  

      98. Animate Wikipedia History  

      99. Create Greasemonkey Scripts Automatically  

      100. Remember Everything You Read  

Index