-1

我在这里搜索过,上面有几个线程;但是使用普通的 javascript 似乎几乎不可能在 Firefox 中获取本地机器名称。

我无法得到明确的答案,但会假设同样适用于 Greasemonkey 脚本吗?

这个 GM 脚本只能在我的浏览器上运行;是否有任何特殊设置或特权我可以给它或 Firefox 来获取本地机器名称?

第二个问题:

是否可以获得我正在运行的 Firefox 配置文件?

4

1 回答 1

0

No. You cannot read the local machine name, nor Firefox profile name, nor Firefox profile directory using javascript or Greasemonkey.

If you could access this information, it would be at least a "sec-moderate" security breach. So, if you figure out a hack for this, let us know immediately, so we can shut you down. ;)

于 2013-08-27T21:54:15.207 回答