保护Greasemonkey脚本? [英] Protect Greasemonkey scripts?

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

问题描述

我知道任何下载并且由用户拥有的东西都很难保护,但我只是想听听意见。我正在考虑销售一个脚本(用Greasemonkey制作......),我希望能够阻止用户轻松查看源代码或将其发送给其他人。在此先感谢。

I know that anything that is downloaded and is in the user's possession is going to be pretty hard to protect, but I'm just wanting to hear opinions. I'm thinking of selling a script (made with Greasemonkey...), and I want to be able to prevent the user from easily viewing the source code, or sending it to others. Thanks in advance.

推荐答案

与任何javascript一样,由于语言的性质,无法完全保护,请参阅:

As with any javascript, complete protection is impossible due to the nature of the language, see:

Javascript库:混淆或不混淆 - 这是问题

如何混淆(保护)JavaScript?

但是,你可以混淆你的javascript代码或缩小它,它们都不能完全保护它,但它们会降低人类的可读性。

However, you can obfuscate your javascript code or minify it, neither of which will completely protect it, but they will make it less human-readable.

这篇关于保护Greasemonkey脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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