simple shim to convert userscripts to Firefox-sdk extensions.
- Install the Addon SDK.
- Clone this repository.
- Change
include: "*.example.org"
to the website your script is going to run on. More informations - Save your userscript as
userscript.user.js
in the /data folder - Build with
cfx xpi
orcfx xpi --force-mobile
- GM_setValue (using localStorage)
- GM_getValue (using localStorage)
- GM_deleteValue (using localStorage)
- GM_listValues (using localStorage)
- GM_openInTab
- GM_log
- GM_xmlhttpRequest (limited)
- GM_addStyle
- GM_setClipboard (Doesn't work on mobile Firefox)
Implemented with localStorage mean that the script can access data only on the site where it's saved. GM_xmlhttpRequest might have a race condition in case of many requests.
- GM_registerMenuCommand
- GM_info (Some hardcoded values)