Official Flamewolf APIs
Official APIs
navigator.whoami
The first API on this list, is navigator.whoami
. As the name suggests, it’s used for getting the user’s username, securely.
Specification
- Arguments: None
- Returns:
String
; Empty String if not allowed
Example
Meta
- Status: This API is enabled. You can disable it via
flamewolf.api.whoami.enabled
toggle inabout:config
. - Safety: This API is heavily guarded with an on-demand permission prompt. Every use of it requires the user to authorize so.
- Stability: This API is considered stable.
navigator.isEnabled
The second one is navigator.isEnabled
. It’s used for checking whether a Flamewolf-specific API is enabled.
Specification
- Arguments:
api
:String
; The name of the Flamewolf API to check for.
- Returns:
Boolean
Example
Meta
- Status: Enabled by default, with plans to add support for disabling.
- Safety: Generally considered safe. More safety options are planned.
- Stability: Considered Stable.
navigator.isFlame
Returns true
if the browser is Flame.
Specification
- Arguments: None
- Returns:
Boolean
Example
Meta
- Status: Enabled by default. Currently, there’s no option to disable it.
- Safety: Safe.
- Stability: Stable.
Easter Eggs
navigator.arch
A reference to Arch Linux users’ arch btw
.
Returns (btw)
Specification
- Arguments: None
- Returns:
String
;"(btw)"
Example
Meta
- Status: Enabled by default. Options to disable are planned.
- Safety: Safe.
- Stability: It’s an easter egg.