Dette websted vil have begrænset funktionalitet, mens vi gennemgår vedligeholdelse for at forbedre din oplevelse. Hvis en artikel ikke løser dit problem, og du vil stille et spørgsmål, har vi vores supportfællesskab, der venter på at hjælpe dig på @FirefoxSupport på Twitter og/r/firefox på Reddit.

Søg i Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Læs mere

Accessing Firefox profile name via add-on

  • 1 svar
  • 0 har dette problem
  • Seneste svar af Paul

more options

Hi!

I've been browsing the web looking for a way to access the browser's current profile name programmatically. I'm writing a little browser extension that should run code conditionally depending on what the current profile is. I'm wondering if there's any way to do this? The closest thing I found was runtime.getBrowserInfo() runtime.getBrowserInfo().

Hi! I've been browsing the web looking for a way to access the browser's current profile name programmatically. I'm writing a little browser extension that should run code conditionally depending on what the current profile is. I'm wondering if there's any way to do this? The closest thing I found was [https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/getBrowserInfo runtime.getBrowserInfo()] runtime.getBrowserInfo().

Alle svar (1)

more options

Hi

I recommend that you ask about this in the official add-ons forum at:

https://discourse.mozilla.org/c/add-ons/35

Nyttig?

Stil et spørgsmål

Du skal logge ind på din konto for at svare på et indlæg. Start et nyt spørgsmål, hvis du ikke har en konto endnu.