Greasemonkey脚本编译器显示错误 [英] Greasemonkey script compiler is showing an error

查看:255
本文介绍了Greasemonkey脚本编译器显示错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这样的脚本

  // == 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆