Is it possible to find out browser name and version in an extension Topic is solved

Add-ons for Pale Moon and other applications
General discussion, compatibility, contributed extensions, themes, plugins, and more.

Moderators: Lootyhoof, FranklinDM

thosrtanner
Lunatic
Lunatic
Posts: 429
Joined: 2014-05-10, 18:19
Location: UK

Is it possible to find out browser name and version in an extension

Unread post by thosrtanner » 2024-06-12, 19:44

As per the title, I'd like to find out what browser (palemoon/basilink) and version of browser from inside an extension. Without using navigator.userAgent which nowadays appears to contain the name of practically every browser on the planet... (I do realise why, but it makes it hard for people to legitimately find out useful stuff sometimes)

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 5603
Joined: 2015-12-09, 15:45

Re: Is it possible to find out browser name and version in an extension

Unread post by moonbat » 2024-06-12, 20:16

UDN is your friend. Services.appinfo has whatever you would want.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net

Lucio Chiappetti
Keeps coming back
Keeps coming back
Posts: 774
Joined: 2014-09-01, 15:11
Location: Milan Italy

Re: Is it possible to find out browser name and version in an extension

Unread post by Lucio Chiappetti » 2024-06-12, 20:37

Why just not use Help->About Pale Moon native in Pale Moon ?
The reasonable man adapts himself to the world: the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. (G.B. Shaw)

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 5603
Joined: 2015-12-09, 15:45

Re: Is it possible to find out browser name and version in an extension

Unread post by moonbat » 2024-06-12, 21:13

Lucio Chiappetti wrote:
2024-06-12, 20:37
Why just not use Help->About Pale Moon native in Pale Moon ?
He means programmatically.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net

User avatar
somdcomputerguy
Lunatic
Lunatic
Posts: 405
Joined: 2014-02-23, 17:25
Location: Greenbrier County, West Virginia

Re: Is it possible to find out browser name and version in an extension

Unread post by somdcomputerguy » 2024-06-12, 21:19

Why just not use Help->About..
Or if you want to see that info all the time, perhaps this add-on will do.
Title Bar Customizer Customize the browser titlebar
:cool: -bruce /* somdcomputerguy.com */
'If you change the way you look at things, the things you look at change.'

thosrtanner
Lunatic
Lunatic
Posts: 429
Joined: 2014-05-10, 18:19
Location: UK

Re: Is it possible to find out browser name and version in an extension

Unread post by thosrtanner » 2024-06-13, 06:05

Just what I wanted. thank you!