1
0
mirror of https://github.com/lancedikson/bowser synced 2024-10-27 20:34:22 +00:00

feat: add Pale Moon browser support (#495)

This commit is contained in:
Mehmet Akif Yücel 2023-11-17 21:47:16 +03:00 committed by GitHub
parent 29222b2fcf
commit bb8f94efcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 0 deletions

View File

@ -22,6 +22,7 @@ export const BROWSER_ALIASES_MAP = {
'NAVER Whale Browser': 'naver', 'NAVER Whale Browser': 'naver',
Opera: 'opera', Opera: 'opera',
'Opera Coast': 'opera_coast', 'Opera Coast': 'opera_coast',
'Pale Moon': 'pale_moon',
PhantomJS: 'phantomjs', PhantomJS: 'phantomjs',
Puffin: 'puffin', Puffin: 'puffin',
QupZilla: 'qupzilla', QupZilla: 'qupzilla',
@ -64,6 +65,7 @@ export const BROWSER_MAP = {
naver: 'NAVER Whale Browser', naver: 'NAVER Whale Browser',
opera: 'Opera', opera: 'Opera',
opera_coast: 'Opera Coast', opera_coast: 'Opera Coast',
pale_moon: 'Pale Moon',
phantomjs: 'PhantomJS', phantomjs: 'PhantomJS',
puffin: 'Puffin', puffin: 'Puffin',
qupzilla: 'QupZilla', qupzilla: 'QupZilla',

View File

@ -108,6 +108,21 @@ const browsersList = [
return browser; return browser;
}, },
}, },
{
test: [/PaleMoon/i],
describe(ua) {
const browser = {
name: 'Pale Moon',
};
const version = Utils.getFirstMatch(commonVersionIdentifier, ua) || Utils.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i, ua);
if (version) {
browser.version = version;
}
return browser;
},
},
{ {
test: [/MZBrowser/i], test: [/MZBrowser/i],
describe(ua) { describe(ua) {

View File

@ -3054,3 +3054,32 @@
type: "mobile" type: "mobile"
engine: engine:
name: "Blink" name: "Blink"
Pale Moon:
-
ua: "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Goanna/4.8 Firefox/68.0 PaleMoon/29.1.1"
spec:
browser:
name: "Pale Moon"
version: "29.1.1"
os:
name: "Windows"
version: "NT 10.0"
versionName: "10"
platform:
type: "desktop"
engine:
name: "Gecko"
version: "20100101"
-
ua: "Mozilla/5.0 (X11; Linux i686; rv:45.9) Gecko/20100101 Goanna/3.2 Firefox/45.9 PaleMoon/27.2.0"
spec:
browser:
name: "Pale Moon"
version: "27.2.0"
os:
name: "Linux"
platform:
type: "desktop"
engine:
name: "Gecko"
version: "20100101"