talkdesk-useragent-switcher/v3/data/inject/isolated.js

20 lines
522 B
JavaScript
Raw Normal View History

2022-11-14 03:01:49 -08:00
const port = document.createElement('span');
port.id = 'ua-port-fgTd9n';
document.documentElement.append(port);
// preferences
self.prefs = self.prefs || {
ua: 'Mozilla/5.0 (Windows NT 6.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36',
uad: true,
major: 100,
name: 'Google Chrome',
mobile: false,
platform: 'Windows',
architecture: 'x86',
bitness: '64',
platformVersion: '10.0.0'
};
Object.assign(port.dataset, self.prefs);
2022-11-16 03:28:54 -08:00
port.dataset.enabled = self.ingored ? false : true;