Source code
Revision control
Copy as Markdown
Other Tools
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
"use strict";
/* globals browser, module, require */
// This is a hack for the tests.
if (typeof InterventionHelpers === "undefined") {
var InterventionHelpers = require("../lib/intervention_helpers");
}
if (typeof UAHelpers === "undefined") {
var UAHelpers = require("../lib/ua_helpers");
}
/**
* For detailed information on our policies, and a documention on this format
* and its possibilites, please check the Mozilla-Wiki at
*
*/
const AVAILABLE_UA_OVERRIDES = [
{
id: "testbed-override",
platform: "all",
domain: "webcompat-addon-testbed.herokuapp.com",
bug: "0000000",
config: {
hidden: true,
matches: ["*://webcompat-addon-testbed.herokuapp.com/*"],
uaTransformer: originalUA => {
return (
UAHelpers.getPrefix(originalUA) +
" AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36 for WebCompat"
);
},
},
},
{
/*
*
* directv.com (attwatchtv.com) is blocking Firefox via UA sniffing. Spoofing as Chrome allows
* to access the site and playback works fine. This is former directvnow.com
*/
platform: "desktop",
domain: "directv.com",
bug: "1577519",
config: {
matches: [
"*://*.attwatchtv.com/*",
"*://*.directv.com/*",
],
uaTransformer: originalUA => {
return (
UAHelpers.getPrefix(originalUA) +
" AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
);
},
},
},
{
/*
*
* steamcommunity.com blocks chat feature for Firefox users showing unsupported browser message.
* When spoofing as Chrome the chat works fine
*/
platform: "desktop",
domain: "steamcommunity.com",
bug: "1570108",
config: {
matches: ["*://steamcommunity.com/chat*"],
uaTransformer: originalUA => {
return (
UAHelpers.getPrefix(originalUA) +
" AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36"
);
},
},
},
{
/*
*
* sling.com blocks Firefox users showing unsupported browser message.
* When spoofing as Chrome playing content works fine
*/
platform: "desktop",
domain: "sling.com",
bug: "1582582",
config: {
uaTransformer: originalUA => {
return (
UAHelpers.getPrefix(originalUA) +
" AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
);
},
},
},
{
/*
*
* mobilesuica.com showing unsupported message for Firefox users
* Spoofing as Chrome allows to access the page
*/
platform: "all",
domain: "www.mobilesuica.com",
bug: "1610026",
config: {
uaTransformer: originalUA => {
return (
UAHelpers.getPrefix(originalUA) +
" AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36"
);
},
},
},
{
/*
* (Imported from ua-update.json.in)
*
* rakuten.co.jp serves a Desktop version if Firefox is included in the UA.
*/
platform: "android",
domain: "rakuten.co.jp",
bug: "1385206",
config: {
matches: ["*://*.rakuten.co.jp/*"],
uaTransformer: originalUA => {
return originalUA.replace(/Firefox.+$/, "");
},
},
},
{
/*
*
* mobile.de sends the desktop site to Firefox Mobile.
* Spoofing as Chrome works fine.
*/
platform: "android",
domain: "mobile.de",
bug: "969844",
config: {
matches: ["*://*.mobile.de/*"],
uaTransformer: _ => {
return "Mozilla/5.0 (Linux; Android 6.0.1; SM-G920F Build/MMB29K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.91 Mobile Safari/537.36";
},
},
},
{
/*
*
* The zmags viewer locks out Firefox Mobile with a "Browser unsupported"
* message, but tests showed that it works just fine with a Chrome UA.
* Outreach attempts were unsuccessful, and as the site has a relatively
* high rank, we alter the UA.
*/
platform: "android",
domain: "zmags.com",
bug: "1509873",
config: {
matches: ["*://*.viewer.zmags.com/*"],
uaTransformer: originalUA => {
return (
UAHelpers.getPrefix(originalUA) +
" AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.91 Mobile Safari/537.36"
);
},
},
},
{
/*
*
* enuri.com returns a different template for Firefox on Android
* based on server side UA detection. This results in page content cut offs.
* Spoofing as Chrome fixes the issue
*/
platform: "android",
domain: "enuri.com",
bug: "1574522",
config: {
matches: ["*://enuri.com/*"],
uaTransformer: _ => {
return "Mozilla/5.0 (Linux; Android 6.0.1; SM-G900M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.111 Mobile Safari/537.36";
},
},
},
{
/*
*
* ceskatelevize sets streamingProtocol depending on the User-Agent it sees
* in the request headers, returning DASH for Chrome, HLS for iOS,
* and Flash for Firefox Mobile. Since Mobile has no Flash, the video
* doesn't work. Spoofing as Chrome makes the video play
*/
platform: "android",
domain: "ceskatelevize.cz",
bug: "1574564",
config: {
matches: ["*://*.ceskatelevize.cz/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*
* metfone.com.kh has a server side UA detection which returns desktop site
* for Firefox for Android. Spoofing as Chrome allows to receive mobile version
*/
platform: "android",
domain: "metfone.com.kh",
bug: "1577267",
config: {
matches: ["*://*.metfone.com.kh/*"],
uaTransformer: originalUA => {
return (
UAHelpers.getPrefix(originalUA) +
" AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.111 Mobile Safari/537.36"
);
},
},
},
{
/*
*
* Samsung's galaxy.store shortlinks are supposed to redirect to a Samsung
* intent:// URL on Samsung devices, but to an error page on other brands.
* As we do not provide device info in our user agent string, this check
* fails, and even Samsung users land on an error page if they use Firefox
* for Android.
* This intervention adds a simple "Samsung" identifier to the User Agent
* on only the Galaxy Store URLs if the device happens to be a Samsung.
*/
platform: "android",
domain: "galaxy.store",
bug: "1598198",
config: {
matches: [
"*://galaxy.store/*",
"*://dev.galaxy.store/*",
"*://stg.galaxy.store/*",
],
uaTransformer: originalUA => {
if (!browser.systemManufacturer) {
return originalUA;
}
const manufacturer = browser.systemManufacturer.getManufacturer();
if (manufacturer && manufacturer.toLowerCase() === "samsung") {
return originalUA.replace("Mobile;", "Mobile; Samsung;");
}
return originalUA;
},
},
},
{
/*
*
* The Job Search site for USPS does not work for Firefox Mobile
* browsers (a 500 is returned).
*/
platform: "android",
domain: "wp1-ext.usps.gov",
bug: "1622063",
config: {
matches: ["*://wp1-ext.usps.gov/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*
* santanderbank expects UA to have 'like Gecko', otherwise it runs
* xmlDoc.onload whose support has been dropped. It results in missing labels in forms
* and some other issues. Adding 'like Gecko' fixes those issues.
*/
platform: "all",
domain: "santanderbank.com",
bug: "1646791",
config: {
matches: [
"*://*.bancosantander.es/*",
"*://*.gruposantander.es/*",
"*://*.santander.co.uk/*",
],
uaTransformer: originalUA => {
return UAHelpers.capVersionTo99(originalUA).replace(
"Gecko",
"like Gecko"
);
},
},
},
{
/*
*
* Unless the UA string contains "Chrome 66+", a section of
* www.jp.square-enix.com will show a never ending LOADING
* page.
*/
platform: "android",
domain: "www.jp.square-enix.com",
bug: "1651292",
config: {
matches: ["*://www.jp.square-enix.com/music/sem/page/FF7R/ost/*"],
uaTransformer: originalUA => {
return originalUA + " Chrome/83";
},
},
},
{
/*
*
* This site returns desktop site based on server side UA detection.
* Spoofing as Chrome allows to get mobile experience
*/
platform: "android",
domain: "lffl.org",
bug: "1666754",
config: {
matches: ["*://*.lffl.org/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*
* The page isn’t redirecting properly error message received.
* Spoofing as Chrome makes the page load
*/
platform: "android",
domain: "app.xiaomi.com",
bug: "1704673",
config: {
matches: ["*://app.xiaomi.com/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*
* The sites shows Firefox a different layout compared to Chrome.
* Spoofing as Chrome fixes this.
*/
platform: "android",
domain: "www.dealnews.com",
bug: "1712807",
config: {
matches: ["*://www.dealnews.com/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*
* The site blocks Firefox with a server-side UA sniffer. Appending a
* Chrome version segment to the UA makes it work.
*/
platform: "android",
domain: "saxoinvestor.fr",
bug: "1719859",
config: {
matches: ["*://*.saxoinvestor.fr/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*
* Firefox for Android receives a desktop-only layout based on server-side
* UA sniffing. Spoofing as Chrome works fine.
*/
platform: "android",
domain: "vmos.cn",
bug: "1738317",
config: {
matches: ["*://*.vmos.cn/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*
* Firefox for Android depends on "Version/" being there in the UA string,
* or it'll throw a runtime error.
*/
platform: "android",
domain: "renaud-bray.com",
bug: "1743627",
config: {
matches: ["*://*.renaud-bray.com/*"],
uaTransformer: originalUA => {
return originalUA + " Version/0";
},
},
},
{
/*
*
* On Firefox Android, the browser is receiving the desktop layout.
* Spoofing as Chrome works fine.
*/
platform: "android",
domain: "slrclub.com",
bug: "1743751",
config: {
matches: ["*://*.slrclub.com/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*
* On Firefox Android, the browser is failing a UA parsing on Firefox UA.
*/
platform: "android",
domain: "workflow.base.vn",
bug: "1743754",
config: {
matches: ["*://workflow.base.vn/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*
* Some sites have issues with a UA string with Firefox version 100 or higher,
* so present as version 99 for now.
*/
platform: "all",
domain: "Sites with known Version 100 User Agent breakage",
bug: "1743429",
config: {
matches: [
"*://411.ca/", // #121332
"*://*.mms.telekom.de/*", // #1800241
"*://ubank.com.au/*", // #104099
"*://wifi.sncf/*", // #100194
],
uaTransformer: originalUA => {
return UAHelpers.capVersionTo99(originalUA);
},
},
},
{
/*
*
* The site locks out Firefox users unless a Chrome UA is given,
* and locks out Linux users as well (so we use Windows+Chrome).
*/
platform: "desktop",
domain: "serieson.naver.com",
bug: "1753461",
config: {
matches: ["*://serieson.naver.com/*"],
uaTransformer: () => {
return "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36";
},
},
},
{
/*
*
* The videos are not playing and an error message is displayed
* in Firefox for Android, but work with Chrome UA
*/
platform: "android",
domain: "animalplanet.com",
bug: "1771200",
config: {
matches: ["*://*.animalplanet.com/video/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*
* The map is not playing and an error message is displayed
* in Firefox for Android, but work with Chrome UA
*/
platform: "android",
domain: "lazada.co.id",
bug: "1779059",
config: {
matches: ["*://member-m.lazada.co.id/address/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*
* The site's content is not loaded unless a Chrome UA is used,
* and breaks on Linux (so we claim Windows instead in that case).
*/
platform: "desktop",
domain: "watch.antennaplus.gr",
bug: "1778168",
config: {
matches: ["*://watch.antennaplus.gr/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA({
desktopOS: "nonLinux",
});
},
},
},
{
/*
*
* The site's podcast audio player does not load unless a Chrome UA is used.
*/
platform: "all",
domain: "www.edencast.fr",
bug: "1776897",
config: {
matches: ["*://www.edencast.fr/zoomcast*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*
* An error is thrown due to missing element, unless Chrome UA is used
*/
platform: "android",
domain: "coldwellbankerhomes.com",
bug: "1784361",
config: {
matches: ["*://*.coldwellbankerhomes.com/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*
* Replacing `Firefox` with `FireFox` to evade one of their UA tests...
*/
platform: "all",
domain: "business.help.royalmail.com",
bug: "1786404",
config: {
matches: ["*://business.help.royalmail.com/app/webforms/*"],
uaTransformer: originalUA => {
return originalUA.replace("Firefox", "FireFox");
},
},
},
{
/*
*
* Spoof the UA to receive the mobile version instead
* of the broken desktop version for Android.
*/
platform: "android",
domain: "feelgoodcontacts.com",
bug: "1819702",
config: {
matches: ["*://*.feelgoodcontacts.com/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*/
platform: "all",
domain: "elearning.dmv.ca.gov",
bug: "1823966",
config: {
matches: ["*://*.elearning.dmv.ca.gov/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*/
platform: "all",
domain: "admissions.nid.edu",
bug: "1827678",
config: {
matches: ["*://*.admissions.nid.edu/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*/
platform: "android",
domain: "bankmandiri.co.id",
bug: "1827678",
config: {
matches: ["*://*.bankmandiri.co.id/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*/
platform: "android",
domain: "frankfred.com",
bug: "1827678",
config: {
matches: ["*://*.frankfred.com/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*/
platform: "android",
domain: "mobile.onvue.com",
bug: "1827678",
config: {
matches: ["*://mobile.onvue.com/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*/
platform: "all",
domain: "avizia.com",
bug: "1827678",
config: {
matches: ["*://*.avizia.com/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*/
platform: "android",
domain: "www.yourtexasbenefits.com",
bug: "1827678",
config: {
matches: ["*://www.yourtexasbenefits.com/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*/
platform: "android",
domain: "www.free4talk.com",
bug: "1827678",
config: {
matches: ["*://www.free4talk.com/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*/
platform: "all",
domain: "watch.indee.tv",
bug: "1827678",
config: {
matches: ["*://watch.indee.tv/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*/
platform: "all",
domain: "viewer-ebook.books.com.tw",
bug: "1827678",
config: {
matches: ["*://viewer-ebook.books.com.tw/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*/
platform: "android",
domain: "jelly.jd.com",
bug: "1827678",
config: {
matches: ["*://jelly.jd.com/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*/
platform: "all",
domain: "kt.com",
bug: "1827678",
config: {
matches: ["*://*.kt.com/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*/
platform: "all",
domain: "oirsa.org",
bug: "1827678",
config: {
matches: ["*://*.oirsa.org/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*/
platform: "all",
domain: "onp.cloud.waterloo.ca",
bug: "1827678",
config: {
matches: ["*://onp.cloud.waterloo.ca/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*
* The sites are showing unsupported message with the same UI
*/
platform: "android",
domain: "casino sites",
bug: "1830739",
config: {
matches: [
"*://*.captainjackcasino.com/*", // 79490
"*://*.casinoextreme.eu/*", // 118175
"*://*.cryptoloko.com/*", // 117911
"*://*.123lobbygames.com/*", // 120027
"*://*.planet7casino.com/*", // 120609
"*://*.yebocasino.co.za/*", // 88409
"*://*.yabbycasino.com/*", // 108025
],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*/
platform: "android",
domain: "webcartop.jp",
bug: "1830821",
config: {
matches: ["*://*.webcartop.jp/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*/
platform: "android",
domain: "enjoy.point.auone.jp",
bug: "1830821",
config: {
matches: ["*://enjoy.point.auone.jp/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*
* The site's content is not loaded unless a Chrome UA is used.
*/
platform: "all",
domain: "watch.tonton.com.my",
bug: "1836109",
config: {
matches: ["*://watch.tonton.com.my/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*
* The site's content is not loaded unless a Chrome UA is used.
*/
platform: "all",
domain: "www.capcut.cn",
bug: "1836112",
config: {
matches: ["*://www.capcut.cn/editor*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*
* The site's content is not loaded without a Chrome UA spoof.
*/
platform: "all",
domain: "www.slushy.com",
bug: "1836116",
config: {
matches: ["*://www.slushy.com/*"],
uaTransformer: originalUA => {
return originalUA + " Chrome/113.0.0.0";
},
},
},
{
/*
*
* The site's content is not loaded without a Chrome UA spoof.
*/
platform: "all",
domain: "gts-pro.sdimedia.com",
bug: "1836135",
config: {
matches: ["*://gts-pro.sdimedia.com/*"],
uaTransformer: originalUA => {
return originalUA.replace("Firefox/", "Fx/") + " Chrome/113.0.0.0";
},
},
},
{
/*
*
* The site's content is not loaded without a UA spoof.
*/
platform: "all",
domain: "indices.iriworldwide.com",
bug: "1836140",
config: {
matches: ["*://indices.iriworldwide.com/covid19/*"],
uaTransformer: originalUA => {
return originalUA.replace("Firefox/", "Fx/");
},
},
},
{
/*
*
* The site's content is not loaded without a Chrome UA spoof.
*/
platform: "all",
domain: "atracker.pro",
bug: "1836178",
config: {
matches: ["*://atracker.pro/*"],
uaTransformer: originalUA => {
return originalUA + " Chrome/113.0.0.0";
},
},
},
{
/*
*
* The site's content is not loaded unless a Chrome UA is used.
*/
platform: "all",
domain: "www.flatsatshadowglen.com",
bug: "1836182",
config: {
matches: ["*://*.flatsatshadowglen.com/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*
* The site is showing "Application Blocked" message
* for Firefox UA.
*/
platform: "all",
domain: "carefirst.com",
bug: "1849018",
config: {
matches: ["*://*.carefirst.com/myaccount*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*
* The site is showing a desktop view to Firefox mobile user-agents
*/
platform: "android",
domain: "frontgate.com",
bug: "1850455",
config: {
matches: ["*://*.frontgate.com/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*
* hrmis2.eghrmis.gov.my showing unsupported message for Firefox users
* Spoofing as Chrome allows to access the page
*/
platform: "all",
domain: "hrmis2.eghrmis.gov.my",
bug: "1855088",
config: {
matches: ["*://hrmis2.eghrmis.gov.my/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*
* Spoofing as Chrome for Android allows to access the page
*/
platform: "android",
domain: "my.southerncross.co.nz",
bug: "1855102",
config: {
matches: ["*://my.southerncross.co.nz/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*
* Catalogs break without -moz-transform, since
* shipped, spoofing as Chrome makes them work.
*/
platform: "all",
domain: "Publitas catalogs",
bug: "1864903",
config: {
matches: [
"*://aktionen.metro.at/*",
"*://cataloagele.metro.ro/*",
"*://catalogs.metro-cc.ru/*",
"*://catalogues.metro.bg/*",
"*://catalogues.metro-cc.hr/*",
"*://catalogues.metro.ua/*",
"*://folders.makro.nl/*",
"*://katalog.metro.rs/*",
"*://katalogi.metro-kz.com/*",
"*://kataloglar.metro-tr.com/*",
"*://katalogus.metro.hu/*",
"*://letaky.makro.cz/*",
"*://letaky.metro.sk/*",
"*://ofertas.makro.es/*",
"*://oferte.metro.md/*",
"*://promotions-deals.metro.pk/*",
"*://promocoes.makro.pt/*",
"*://prospekt.aldi-sued.de/*",
"*://prospekte.metro.de/*",
"*://thematiques.metro.fr/*",
"*://volantino.metro.it/*",
"*://view.publitas.com/*",
"*://magazine.kruidvat.be/*",
"*://folder.kruidvat.nl/*",
],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*
* Spoofing as Chrome for Android makes filters work on the site
*/
platform: "android",
domain: "autotrader.ca",
bug: "1864999",
config: {
matches: ["*://*.autotrader.ca/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*
* Spoofing as Chrome removes the unsupported message and allows
* to proceed with application
*/
platform: "all",
domain: "bmo.com",
bug: "1865000",
config: {
matches: ["*://*.bmo.com/main/personal/*/getting-started/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*
* The site returns desktop layout on Firefox for Android
*/
platform: "android",
domain: "digimart.net",
bug: "1865004",
config: {
matches: ["*://*.digimart.net/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*
* The site returns desktop layout on Firefox for Android
*/
platform: "android",
domain: "portal.circle.ms",
bug: "1865007",
config: {
matches: ["*://*.circle.ms/*"],
uaTransformer: () => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
{
/*
*
* The site returns desktop layout on Firefox for Android
*/
platform: "android",
domain: "memurlar.net",
bug: "1884779",
config: {
matches: ["*://*.memurlar.net/*"],
uaTransformer: _originalUA => {
return UAHelpers.getDeviceAppropriateChromeUA();
},
},
},
];
module.exports = AVAILABLE_UA_OVERRIDES;