668
edits
| Line 4: | Line 4: | ||
== Architecture == | == Architecture == | ||
A WebMod | A WebMod extends a well-targeted piece of browser functionality with HTML and JavaScript. WebMods have no standalone abilities to modify the user agent; they only respond to API calls from the user agent. A WebMod is made available by a provider, e.g. Twitter for link-sharing, as HTML and JavaScript served from the provider's domain. It is advertised by a Web-accessible manifest, and it can be "installed" into a user agent that supports this functionality. | ||
The user agent and | The user agent and WebMods communicate over postMessage(). Effectively, a WebMod is a mechanism for a web site to expose an API to the user agent over postMessage(). | ||
[[Image:Webmod-howto.png]] | [[Image:Webmod-howto.png]] | ||
edits