Interfaces for Scripting: Making Greasemonkey Scripts Resilient to Website Upgrades

  • Oscar Díaz
  • Cristóbal Arellano
  • Jon Iturrioz
Conference paper

DOI: 10.1007/978-3-642-13911-6_16

Part of the Lecture Notes in Computer Science book series (LNCS, volume 6189)
Cite this paper as:
Díaz O., Arellano C., Iturrioz J. (2010) Interfaces for Scripting: Making Greasemonkey Scripts Resilient to Website Upgrades. In: Benatallah B., Casati F., Kappel G., Rossi G. (eds) Web Engineering. ICWE 2010. Lecture Notes in Computer Science, vol 6189. Springer, Berlin, Heidelberg

Abstract

Thousands of users are streamlining their Web interactions through user scripts using special weavers such as Greasemonkey. Thousands of programmers are releasing their scripts in public repositories. Millions of downloads prove the success of this approach. So far, most scripts are just a few lines long. Although the amateurism of this community can partially explain this fact, it can also stem from the doubt about whether larger efforts will pay off. The fact that scripts directly access page structure makes scripts fragile to page upgrades. This brings the nightmare of maintenance, even more daunting considering the leisure-driven characteristic of this community. On these grounds, this work introduces interfaces for scripting. Akin to the JavaScript programming model, Scripting Interfaces are event-based, but rather than being defined in terms of low-level, user-interface events, Scripting Interfaces abstract these DOM events into conceptual events. Scripts can now subscribe to or notify of conceptual events in a similar way to what they did before. So-developed scripts improve their change resilience, portability, readability and easiness to collaborative development of scripts. This is achieved with no paradigm shift: programmers keep using native JavaScript mechanisms to handle conceptual events.

Keywords

Greasemonkey JavaScript Maintenance Web2.0 
Download to read the full conference paper text

Copyright information

© Springer-Verlag Berlin Heidelberg 2010

Authors and Affiliations

  • Oscar Díaz
    • 1
  • Cristóbal Arellano
    • 1
  • Jon Iturrioz
    • 1
  1. 1.ONEKIN Research GroupUniversity of the Basque CountrySan SebastiánSpain

Personalised recommendations