Mozilla is working on implementing a UserScripts WebExtensions API in the organization's Firefox web browser.
Firefox, just like Google Chrome and many other web browsers, supports so-called user scripts. These scripts are executed on page load to add, remove, or change functionality on the page that gets loaded.
User scripts exist for numerous purposes: from adding download options on video sites to changing how web page looks.
Mozilla addresses several issues related to user scripts with the upcoming User Scripts API:
The new API runs each user script in its own sandbox to isolate them from one another; this is a different approach to how content scripts are handled from extensions like Greasemonkey or Tampermonkey, as they are executed in the same process.
Support for providing user scripts with a set of functions, e.g. Greasemonkey GM_ functions, is supported as well
Mozilla's initial plan was to introduce support in Firefox 63 but the introduction has been postponed. The new target is Firefox 68 Stable.
Mozilla's User Scripts API is already available in Firefox. It is enabled by default in Firefox Nightly (version 68), and disabled by default in Firefox Stable (version 66) and Firefox Beta (version 67),
Firefox users may do the following to change the status of the API:
Extensions such as Greasemonkey or Tampermonkey need to implement the new API before it can be used.
The User Scripts API is finally coming and it should address issues identified when using user scripts in Firefox. It remains to be seen if there are any downsides to the implementation; you can follow the Meta Bug on Mozilla's bug tracking website to stay in the loop.
Now You: What is your expectation in regards to the user scripts API?Advertisement
Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.
We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats or subscription fees.
If you like our content, and would like to help, please consider making a contribution:
Ghacks is a technology news blog that was founded in 2005 by Martin Brinkmann. It has since then become one of the most popular tech news sites on the Internet with five authors and regular contributions from freelance writers.