网页JS读取用户JS

发布于 2024-09-11 02:47:33 字数 172 浏览 2 评论 0原文

目前我通过 Opera 中的 UserJS 向网页添加一些功能。我想知道网页设计者是否可以看到我在他的网页上的 UserJS 中执行的 javascript 操作(例如通过 javascript)?

这可能吗?我认为不会,因为 UserJS 首先执行,并且没有真正“添加”到页面中。我想确定一下,所以才问这个问题。

Currently I add some functionality to webpages via UserJS in Opera. I was wondering if the webpage designer could see what javascript actions I'm doing in my UserJS on his webpage (e.g. via javascript)?

Is this possible? I think it doesn't because the UserJS gets executed first and isn't really 'added' to the page. I'd like to be sure, hence the question.

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

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

发布评论

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

评论(1

真心难拥有 2024-09-18 02:47:33

不,这是不可能的。 user.js 脚本是本地的,仅在系统上执行。

如果您希望您的网页设计师具有相同的功能,您需要向他们发送您的脚本文件并让他们使用 Opera。

No, it's not possible. user.js scripts are local and only executed on the system.

If you want your web designer to have the same function, you'd need to send them your script files and have them use Opera.

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