Greasemonkey脚本编译器显示错误 [英] Greasemonkey script compiler is showing an error
问题描述
我有这样的脚本
// == UserScript ==
// @name messi
// @namespace http://messi.com
// @description示例脚本在userscripts页面上提示barcelona
// @include http://userscripts.org/*
// == / UserScript ==
alert('barcelona');
这个脚本可以和Greasemonkey一起使用。
我使用这个链接编译了这个脚本:
https:// arantius。 com / misc / greasemonkey / script-compiler.php 。
编译后,我在Firefox上添加了附加组件,现在它显示:
错误:WrappedNative原型对象错误错误。
whats wrong?
用户脚本编译器在一段时间内没有更新,输出如果你想从userscripts创建Firefox附加组件,你应该考虑使用 https://addons.mozilla.org/en-US/developers/builderrel =nofollow> Add-on SDK 并使用户脚本成为 page mod 。这就是addons.mozilla.org编辑团队推荐的内容。无论如何。
还有其他的选择,比如 Scriptify 。
I have script like this
// ==UserScript==
// @name messi
// @namespace http://messi.com
// @description example script to alert "barcelona" on userscripts page
// @include http://userscripts.org/*
// ==/UserScript==
alert('barcelona');
this script works with Greasemonkey.
I compiled this script using this link:
https://arantius.com/misc/greasemonkey/script-compiler.php.
After compilation I added add-on to Firefox, now it showing:
Error: Illegal operation on WrappedNative prototype objec error .
whats wrong ?
The user script compiler wasn't updated in quite some time and the output add-ons it produces stopped working in recent Firefox versions IIRC.
If you want to create Firefox add-ons from userscripts, you should consider using the Add-on SDK and making your user-script a page mod. That is what the addons.mozilla.org editor team is recommending, anyway.
There are other alternatives, such as Scriptify.
这篇关于Greasemonkey脚本编译器显示错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!