Finding the currently logged in user from a Firefox extension

后端 未结 4 565
面向向阳花
面向向阳花 2020-12-16 05:55

I\'m writing a Firefox extension that needs to know what the username of the currently logged in user is in Windows, Mac, or Linux. So if I\'m logged into my machine as \"br

4条回答
  •  猫巷女王i
    2020-12-16 06:04

    Yea, not possible... Javascript runs in a secure enviroment, and all FF extensions are javascript so you wont be able to be doing much interaction with the OS... but ill stick around to see if someone knows a way(it would be VERY cool...)

提交回复
热议问题