|
DealingWithGreasemonkey
A new plan for how to handle Greasemonkey user scripts in Chrome
IntroductionLots of users still complain that Chrome does not support Greasemonkey user scripts. Even though we have had the infrastructure in place to handle user scripts for some time now, it has never been clear how the feature would relate to full extensions, and so it has remained incomplete. http://crbug.com/16344 was the previous proposal for rationalizing these two features, but many team members disliked it due to the result of maintaining two parallel systems. This new proposal is on how we can transparently convert existing .user.js files into extensions. This would make Greasemonkey user script support a first-class feature in Chrome. DetailsOur goal is to be able to click on a .user.js file on the web, get a Chrome extension install experience, and from that point on have a normal, fully-functioning Chrome extension. A Greasemonkey user script includes:
A Chrome extension with similar functionality to a Greasemonkey script includes:
It should be possible for Chrome to transparently convert a Greasemonkey script into an extension like so:
With all this in place, we could remove the support for the existing --enable-user-scripts feature, which would simplify lots of our code. We could also in the future add a developer tool to start a new Chrome extension based on an existing Greasemonkey user script. |