-1

I've searched around here and there is a couple threads on it; but with normal javascript it seems near impossible to get the local machine name in Firefox.

I couldn't get a clear answer but would assume the same applies to Greasemonkey scripts too?

This GM script will run only on my browsers; is there any special settings or privileges I could give it or Firefox to get the local machine name?

Second question:

Is it possible to get which Firefox profile I'm running under?

Brock Adams
  • 90,639
  • 22
  • 233
  • 295
user1516346
  • 47
  • 1
  • 6

1 Answers1

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. ;)

Brock Adams
  • 90,639
  • 22
  • 233
  • 295
  • ok, good to know. Is there any way I can make my clients unique? My script only runs on my browsers. I process some of our intranet and need to find a unique ID per client so can monitor them. For example, say I log "client having problems".... I send that up to a central web server; but hard to say which client is having problems as there is more than one (profile) per IP. I would assume Environment Vars are off limits too? – user1516346 Aug 28 '13 at 16:24
  • You can give each user a unique ID that they must type in the first time your script runs, then store that ID using `GM_setValue()`. The script logic is *similar* to [this problem](http://stackoverflow.com/a/15269327/331508). – Brock Adams Aug 28 '13 at 17:53