Avoid Common Pitfalls in Greasemonkey: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
m Reverted edits by 95.81.86.150 (Talk) to last revision by 70.56.207.123
No edit summary
Line 1: Line 1:
Mark Pilgrim's article, <i>Avoid Common Pitfalls in Greasemonkey</i>, is an indispensable reference for Greasemonkey script authors.
Mark Pilgrim's article , <i>Avoid Common Pitfalls in Greasemonkey</i>, 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.
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.
Readers will note the common theme of [[XPCNativeWrappers]] and their limitations.

Revision as of 22:39, 23 January 2011

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: