I'm writing a simple extension for Chrome.
There's an option for user to set a Profile Name
How to get that name "lan" in the extension?
It's a really simple extension
manifest.json
{
"manifest_version": 2,
"name": .."description"...
...
"background": {
"scripts": ["background.js"]
},
...
}
background.js
// how to get the profile name here?
// chrome.what.user.profile.name??
Interesting question, but I'm afraid the answer is that currently there is no API to access that information.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With