Avoid Common Pitfalls in Greasemonkey: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
No edit summary
m Reverted edits by Rebeca123 (Talk) to last revision by 216.251.147.178
Line 14: Line 14:
* watch
* watch
* style
* style
* [http://www.superiorpapers.com/term_paper_writing_services.php writing services]
 
You may read:
You may read:


* [http://commons.oreilly.com/wiki/index.php/Greasemonkey_Hacks/Getting_Started#Avoid_Common_Pitfalls The entire article]
* [http://commons.oreilly.com/wiki/index.php/Greasemonkey_Hacks/Getting_Started#Avoid_Common_Pitfalls The entire article]
* [http://commons.oreilly.com/wiki/index.php/Greasemonkey_Hacks/Getting_Started#Pitfall_.231:_Auto-eval_Strings Just the pitfalls]
* [http://commons.oreilly.com/wiki/index.php/Greasemonkey_Hacks/Getting_Started#Pitfall_.231:_Auto-eval_Strings Just the pitfalls]

Revision as of 20:51, 13 July 2010

Mark Pilgrim's article, Avoid Common Pitfalls in Greasemonkey, is an indispensable reference for Greasemonkey script authors. It describes ten different "pitfalls" that many script authors fall into, both things that those already familiar with Javascript might expect to work (but do not) and other changes/limitations of the Greasemonkey script environment. Readers will note the common theme of XPCNativeWrappers and their limitations.

It covers:

  • Event Handlers
  • Named Forms and Form Elements
  • Custom Properties
  • Iterating Collections
  • scrollIntoView
  • location
  • Calling Remote Page Scripts
  • watch
  • style

You may read: