user280109
user280109

Reputation: 1476

How can I convert a Greasemonkey script into a restartless Firefox addon?

I need to convert a Greasemonkey script into a restartless Firefox addon.

It used to be possible to do this very easily using the Scriptify extension, but the extension has not been kept up to date with the latest changes to the Firefox browser, and no longer works.

Is there an alternate way to accomplish this?

Upvotes: 6

Views: 1745

Answers (1)

user280109
user280109

Reputation: 1476

It turns out, the developer of the Scriptify extension has updated his extension for compatibility with the newer Firefox browsers. Hooray! :)

UPDATE Now that Firefox has implemented the WebExtensions API for Firefox Extensions, it means its very easy to create restartless Firefox extensions from Greasemonkey scripts, as Firefox extensions built with the "Web Extensions" API are by default restartless, and you can include the gm script as a content script in the Firefox extension.

For an example of how to create a Firefox Extension using the new WebExtensions API, see here: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Your_first_WebExtension

Upvotes: 3

Related Questions