Includes : Persist

By w35l3y Last update Jan 8, 2009 — Installed 1,599 times.


Script Summary: Data persistence function. This script doesn't do anything by its own.

Version: 1.0.0.0

Copyright: w35l3y 2008

License: GNU GPL

* Tested in Firefox 3.0.5 with Greasemonkey 0.8.20080609.0 *

Understanding

Persist.set(service, data, onLoadCallback, onErrorCallback);

service		url of the service
data			data to be sent
onLoadCallback		callback on load
onErrorCallback	callback on error
Persist.get(url, onLoadCallback, onErrorCallback);

url			url of the data
onLoadCallback		callback on load
onErrorCallback	callback on error

Bold parameters are required.

Implementing

// @require	   http://userscripts.org/scripts/source/40050.user.js

Examples

http://userscripts.org/topics/20121

Known scripts using Persist