views:

118

answers:

3

I'm trying both greasemonkey and google's chrome extensions. And found that chrome seems using the same names of api as GM. (Seem having the same bug...) Just wondering whether greasemonkey is already a google's chrome extension?

+8  A: 

Yes, I believe you can just add Greasemonkey scripts and Chrome installs them as an 'extension' like all the other native extensions.

Checkout this article:
http://lifehacker.com/5461675/chrome-4-supports-greasemonkey-userscripts-without-an-extension

Note, however that some scripts seem to be supported on GreaseMonkey for Firefox only and can be a little buggy in Chrome. I'm not sure of the exact differences in implementation.

Simon.

Simon
Yep, I've tried it and it works. http://www.chromium.org/developers/design-documents/user-scripts
no
A: 

I copy and paste a post from GreaseMonkey:

There is no greasemonkey extension for google chrome. What actually happened is chromium (the project which google chrome is based) developed it's own extension system and one component of that extension mechanism (probably inspired heavily by greasemonkey in the first place) works in almost exactly the same way (an external javascript interacting with a page purely through it's DOM) as greasemonkey. The chromium system uses a completely different api but effectively does the same thing. This large overlap in purpose and functionality combined with the popularity of greasemonkey on firefox meant they decided to implement the greasemonkey api (the majority of it anyway) natively within chromium. From there they went one step further and had the browser automatically wrap any greasemonkey scripts inside a chromium extension automatically and effectively made greasemonkey scripts a first class citizen.

Paul
+1  A: 

@Simon pretty much hit it, but I wanted to make sure that this point is super-clear.

Google Chrome supports Greasemonkey scripts natively, using the same API so as to make existing scripts compatible. There's no Greasemonkey extension required.

Matchu