/* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. */
{
window.__webcompat_spoof_platform = "windows";
}
if (!navigator.userAgent.includes("Chrome/")) {
const { appVersion, userAgent } = navigator;
let actualPlatform = "linux";
if (appVersion.includes("Android")) {
actualPlatform = "android";
} else if (appVersion.includes("Macintosh")) {
actualPlatform = "mac";
} else if (appVersion.includes("Windows")) {
actualPlatform = "windows";
}
const wantedPlatform = window.__webcompat_spoof_platform ?? actualPlatform;
if (wantedPlatform) {
let mobile = "";
let osSegment = `Windows NT 10; Win64; x64`;
if (wantedPlatform == "android") {
mobile = userAgent.includes("Mobile") ? "Mobile " : "";
osSegment = `Linux; Android 10; K`;
} else if (wantedPlatform == "mac") {
osSegment = "Macintosh; Intel Mac OS X 10_15_7";
} else if (wantedPlatform == "linux") {
osSegment = "X11; Linux x86_64";
}
const final_ua = `Mozilla/5.0 (${osSegment}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 ${mobile}Safari/537.36`;
const nav = Object.getPrototypeOf(navigator);
const ua = Object.getOwnPropertyDescriptor(nav, "userAgent");
ua.get = () => final_ua;
Object.defineProperty(nav, "userAgent", ua);
window.__webcompat = (window.__webcompat ?? new Set()).add(
"navigator.userAgent"
);
}
}
if (!window.chrome) {
window.chrome = {};
window.__webcompat = (window.__webcompat ?? new Set()).add("window.chrome");
}
if (typeof window.netscape != "undefined") {
delete window.netscape;
}
if (typeof window.InstallTrigger != "undefined") {
delete window.InstallTrigger;
}
if (typeof window.MozConsentBanner != "undefined") {
delete window.MozConsentBanner;
}
if (typeof window.mozInnerScreenX != "undefined") {
delete window.mozInnerScreenX;
delete window.mozInnerScreenY;
}
if (CSS?.supports("-moz-appearance", "none")) {
const supports = Object.getOwnPropertyDescriptor(CSS, "supports");
const oldSupports = supports.value;
supports.value = function (query) {
if (query.includes("moz-")) {
return false;
}
return oldSupports.call(this, query);
};
Object.defineProperty(CSS, "supports", supports);
}
delete window.__webcompat_spoof_platform;
{
const bugInfo = [["app.sessionlinkpro.com", ["1898929"]]];
const msgs = window.__webcompat;
delete window.__webcompat;
if (msgs?.size) {
const bugs =
bugInfo.find(([domain]) => location.href.includes(domain))?.[1] ??
bugInfo[0][1];
console.info(
`${[...msgs].join(", ")} ${msgs.size > 1 ? "are" : "is"} being altered for compatibility reasons. See ${bugNumbers} for details.`
);
}
}