Greasemonkey 是 Google Chrome 的内置扩展吗?

发布于 2024-09-10 02:49:55 字数 138 浏览 2 评论 0原文

我正在尝试 Greasemonkey 和 Google 的 Chrome 扩展。并发现Chrome似乎使用了与GM相同的API名称。 (我似乎有同样的错误......)

只是想知道greasemonkey是否已经是Google Chrome扩展?

I'm trying both greasemonkey and Google's Chrome extensions. And found that Chrome seems to be using the same API names as GM. (I seem to be having the same bug...)

Just wondering whether greasemonkey is already a Google Chrome extension?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

孤凫 2024-09-17 02:49:55

是的,我相信您只需添加 Greasemonkey 脚本,Chrome 就会像所有其他本机扩展一样将它们安装为“扩展”。

查看这篇文章:
http://lifehacker.com/5461675/chrome- 4-supports-greasemonkey-userscripts-without-an-extension

但请注意,某些脚本似乎仅在 Firefox 的 GreaseMonkey 上受支持,并且在 Chrome 中可能会出现一些问题。我不确定实施中的确切差异。

西蒙。

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.

刘备忘录 2024-09-17 02:49:55

@Simon 几乎击中了它,但我想确保这一点非常清楚。

Google Chrome 原生支持 Greasemonkey 脚本,使用相同的 API 以使现有脚本兼容。不需要 Greasemonkey 扩展。

@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.

原谅过去的我 2024-09-17 02:49:55

我复制并粘贴了来自 GreaseMonkey 的帖子:

Google chrome 没有greasemonkey 扩展。实际发生的事情是 chromium(google chrome 所基于的项目)开发了自己的扩展系统,并且该扩展机制的一个组件(可能首先受到了 Greasemonkey 的启发)以几乎完全相同的方式工作(外部 JavaScript 与纯粹通过其 DOM 的页面)作为greatmonkey。 Chromium 系统使用完全不同的 api,但实际上做同样的事情。这种目的和功能上的巨大重叠,再加上 firemonkey 在 firefox 上的流行,意味着他们决定在 chromium 中本地实现greasemonkey api(无论如何,其中大部分)。从那时起,他们更进一步,让浏览器自动将所有 Greasemonkey 脚本自动包装在 Chromium 扩展中,并有效地使 Greemonkey 脚本成为一等公民。

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.

╭⌒浅淡时光〆 2024-09-17 02:49:55

是的,Chrome 支持用户脚本,但并不完全像 Greasemonkey 一样。例如,查看此用户脚本

文档在线查看器:http://userscripts.org/scripts/show/127774

它与 Greasemonkey(在 Firefox 中)配合良好,但不适用于本机 Chrome。 Chrome 尚不支持 Greasemonkey 的许多功能。

Yes, Chrome supports userscripts but not fully as Greasemonkey. For example check out this userscript

Docs Online Viewer: http://userscripts.org/scripts/show/127774

It works well with Greasemonkey (in Firefox) but not with Chrome natively. There are many Greasemonkey functions that Chrome does not support yet.

我们的影子 2024-09-17 02:49:55

回答这个问题是为了防止最近有人在搜索。现在有一个为 Chrome 创建的脚本管理器,名为 TamperMonkey。现在它也适用于 Firefox 和 Edge。

https://www.tampermonkey.net/

Answering this in case anyone from more recent times is searching. There is now a script manager created for Chrome called TamperMonkey. It's now available for Firefox and Edge as well.

https://www.tampermonkey.net/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文