בגוגל לא מתכוונים להלחם במשתמשי Greasemonkey, הרחבה המבצעת שינויים באתרים בהם הם מבקרים. להיפך, גוגל מספקת למפתחים ממשק רשמי ונוח.כידוע, GreaseMonkey היא הרחבה עבור פיירפוקס, המאפשרת למשתמשים להתקין תסריטים שונים, שמבצעים שינויים "קוסמטיים" באתרים בהם הם מבקרים. התסריטים הללו מתחקרים את מבנה מסמך ה-HTML שנחשף על ידי הדפדפן, ומבצעים מניפולציות שונות, כמו הסרת או הסתרת רכיבים שונים, על פי צורך.
מניפולציה מסוג זה אפקטיבית אמנם, אבל היא "נשברת" כאשר מבנה הדף השתנה. Gmail Greasemonkey הוא אובייקט תכנותי (ניסיוני) שגוגל מספקת למפתחים, באמצעותו נחשפים היבטים שונים של האינטראקציה של המשתמש עם השירות, בצורה יעילה ומדוייקת יותר. כך יוכלו כותבי התסריטים לבצע את השינויים המבוקשים בממשק ללא שיצטרכו לתחקר את ה-DOM, או להשתמש בפקודות XPath מסורבלות.
Greasemonkey is an integral part of the web experience for many experienced users. Google acknowledges that some people are going to change their own experience of our web applications regardless of what we do. Resistance, as they say, is futile. It would also be somewhat hypocritical. After all, a Google employee wrote Greasemonkey in the first place, another wrote these scripts to add functionality to Gmail, and a third wrote two books on the subject (and these docs).
Instead, we would like to provide a little help to make such scripts more robust. Instead of finding elements by XPath or DOM traversal, this API provides accessor methods for getting common screen elements. Instead of forcing you to monkey-patch (ahem) our internal functions, this API provides callbacks to call your functions when specific events occur.
This API is experimental. New features and code changes may still cause Greasemonkey scripts to break.ציטוט: GmailGreasemonkey10API
אובייקט זה תומך בגירסה החדשה של GMail בלבד (בטא).
מידע נוסף
לינמגזין, האבא של Greasemonkey על איך לפתח יישומי Ajax טובים יותר עם Google ...
לינמגזין, Greasemonkey לכל השאר
לינמגזין, BrowserShield: ה-Greasemonkey של מיקרוסופט
תמונה: Max´n