Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome extension: get current Profile's Person's username

I'm writing a simple extension for Chrome.

There's an option for user to set a Profile Name

Profile Person 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??
like image 736
laggingreflex Avatar asked Sep 28 '22 16:09

laggingreflex


1 Answers

Interesting question, but I'm afraid the answer is that currently there is no API to access that information.

like image 118
Xan Avatar answered Oct 03 '22 02:10

Xan