Greasemonkey Hacks Tips & Tools for Remixing the Web with Firefox
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 rend...
Autor principal: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Sebastopol :
O'Reilly Media
2005.
|
Edición: | 1st edition |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009626931706719 |
Tabla de Contenidos:
- Contents; 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?; Getting Started; Install a User Script; Installing from the Context Menu; Installing from the Tools Menu; Editing Greasemonkey's Configuration Files; Provide a Default Configuration; The Code; Wrapper; Name; Namespace; Description; URL Directives; Master the @include and @exclude Directives; Matching with or Without the www. Prefix
- Matching All Subdomains of a SiteMatching Different Top-Level Domains of a Site; Deciding Between * and http://*; Prevent a User Script from Executing; Disabling a User Script Without Uninstalling It; Disabling All User Scripts; Disabling a User Script by Removing All Included Pages; Disabling a User Script by Excluding All Pages; Disabling a User Script by Editing config.xml; Uninstalling a User Script; Configure a User Script; Inline; During Installation; After Installation; Editing Configuration Files; Add or Remove Content on a Page; Adding an Element; Removing an Element
- Inserting an ElementReplacing an Element; Modifying an Element's Attributes; Alter a Page's Style; Adding a Global Style; Inserting or Removing a Single Style; Modifying an Element's Style; Master XPath Expressions; Basic Syntax; Examples; Develop a User Script "Live"; Setting Up File Associations; On Mac OS X; On Windows; The "Live Editing" Development Cycle; Debug a User Script; Check Error Messages; Log Errors; Find Page Elements; Test JavaScript Code Interactively; Embed Graphics in a User Script; The Code; Running the Hack; Avoid Common Pitfalls; Security Hole #1: Source Code Leakage
- Security Hole #2: API LeakageSecurity Hole #3: Local File Access; Redesigning from the Ground Up; Going Deeper; Pitfall #1: Auto-eval Strings; Pitfall #2: Event Handlers; Pitfall #3: Named Forms and Form Elements; Pitfall #4: Custom Properties; Pitfall #5: Iterating Collections; Pitfall #6: scrollIntoView; Pitfall #7: location; Pitfall #8: Calling Remote Page Scripts; Pitfall #9: watch; Pitfall #10: style; Conclusion; Linkmania!; Turn Naked URLs into Hyperlinks; The Code; Running the Hack; Hacking the Hack; Force Offsite Links to Open in a New Window; The Code; Running the Hack
- Hacking the HackFix Broken Pop-up Links; The Code; Running the Hack; Hacking the Hack; Remove URL Redirections; The Code; Running the Hack; Warn Before Opening PDF Links; The Code; Running the Hack; Avoid the Slashdot Effect; The Code; Running the Hack; Convert UPS and FedEx Tracking Numbers to Links; The Code; Running the Hack; Follow Links Without Clicking Them; The Code; Running the Hack; Beautifying the Web; Banish the Scourge of Arial; The Code; Running the Hack; Hacking the Hack; Add Stripes to Data Tables; The Code; Running the Hack; Hacking the Hack; Straighten Smart Quotes; The Code
- Running the Hack