Home / Technology / FireMonkey uses Firefox’s official API for userscripts and userstyles

FireMonkey uses Firefox’s official API for userscripts and userstyles

FireMonkey is a brand new browser extension for the Firefox internet browser that allows customers to handle userscripts and userstyles utilizing the userscripts API that Mozilla launched in Firefox not too long ago.

The extension affords related performance to established userscript extensions corresponding to GreaseMonkey, TamperMonkey or ViolentMonkey in addition to userstyle extensions corresponding to Stylus on first look. One of the core variations, not less than proper now, is FireMonkey’s use of the new UserScripts API that Mozilla applied in Firefox not too long ago.

Mozilla revealed that it created the API to deal with efficiency, reliability and safety points with reference to consumer scripts in Firefox. The API is designed to run userscripts in their very own sandbox to isolate them; conventional extensions corresponding to GreaseMonkey execute the scripts in the identical course of.

Note: Mozilla modified the default conduct for userchrome.css and userContent.css files in Firefox 69. These recordsdata aren’t loaded by default anymore. Users have to allow the loading manually to revive the performance.

FireMonkey requests plenty of permissions throughout set up; the developer explains why these are wanted on Mozilla AMO. It requests the identical permissions that different userscript extensions request.

FireMonkey

firefox firemonkey userscripts

Current variations of Firefox assist the PersonScripts API. You can test whether or not that’s the case within the following method:

  1. Load about:config within the Firefox tackle bar.
  2. Confirm that you’ll be cautious.
  3. Search for extensions.webextensions.consumerScripts.enabled.
  4. If the desire is ready to TRUE, it’s enabled. A price of FALSE means it’s not enabled.

You could load userscripts and userstyles within the extension. The course of is a guide one proper now. Click on the extension icon and there on the add icons so as to add a brand new script or fashion to Firefox. You may additionally use the export and import choices that you simply discover within the extension’s settings.

Adding scripts or types will not be as snug proper now as you’ll want to copy the code, click on on the add button, paste it earlier than you click on on save. Still, the method labored flawlessly once I tried it utilizing scripts posted on Grease Fork.

Options to avoid wasting userscripts in disabled state or with auto-updating enabled are supplied within the editor. You could edit userscripts and userstyles at any time utilizing the extension.

The extension helps GreaseMonkey GM3 and GM4 capabilities and capabilities supplied by the Firefox API. Some scripts could not work correctly whenever you create or import them; the Firefox API doesn’t enable wildcard high stage domains (TLD) which signifies that one thing like http*://www.google.*/* will not be supported. It could also be needed to regulate scripts accordingly in order that they might be imported with out points.

FireMonkey comes with a Help file that explains variations and offers examples. It is an efficient place to start out your investigation if one thing doesn’t work as anticipated.

firemonkey scripts management firefox

The extension icon shows the variety of scripts and types that run on the lively website. A click on on the icon shows the lively scripts and types, and an choice to disable or allow any with a single-click.

The developer of the extension added various useful options to the extension to enhance administration and identification of scripts. Script errors reference the title of the script within the console for improved identification and notifications from scripts show the script’s title as nicely.

Closing Words

FireMonkey is a promising new extension for the Firefox browser that has lots to supply even within the preliminary model. You can load, handle, edit, and create userscripts and userstyles utilizing it, and it’s utilizing the brand new userscripts API that Mozilla will definitely put the concentrate on sooner or later.

The extension would profit from a couple of good to have options, e.g. direct imports from different userscript extensions which can be put in or recognition of the “set up” button on standard userscript repositories.

Now You: Do you run userscripts or types in your browser?

Check Also

Microsoft restores Optional Updates listing in Windows 10 version 20H1

Microsoft plans to revive non-compulsory updates listings in the following main function replace of Windows …

Leave a Reply

Your email address will not be published. Required fields are marked *