Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 585
user280109 Avatar asked Apr 11 '13 19:04

user280109


People also ask

How do I add a Greasemonkey script to Firefox?

Installing the Greasemonkey Extension. Click on the Firefox drop-down menu at the top left of the browser and select Add-ons. Type Greasemonkey into the add-ons search box at the top right of the browser. Find Greasemonkey in the list and click on Install.

Does Greasemonkey work on Firefox?

Greasemonkey is available for Firefox, Flock and GNOME Web (formerly called Epiphany). The Greasemonkey extension for Web is part of the Web extensions package.

How do I write an addon in Firefox?

Once you're logged in, you can see the section “My Add-ons”. Click on the Submit a New Add-on button at the bottom right. The process to submit a new add-on will then start. You'll first be asked if you'll publish the add-on on Firefox add-ons Manager or you'll distribute it on your own.


1 Answers

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

like image 51
user280109 Avatar answered Nov 01 '22 15:11

user280109