I would like to create my own Add-On that changes preferences depending on the proxy (if a proxy is being used or not), is that possible? I asked in a Firefox Add-On IRC but didn't a response, all users were idle.
Example:
// If proxy is enabled
lockPref("general.appname.override", "Netscape");
lockPref("general.appversion.override", "5.0 (Windows)");
lockPref("general.buildID.override", "20100101");
lockPref("general.oscpu.override", "Windows NT 6.1; Win32");
lockPref("general.platform.override", "Win32");
lockPref("general.productsub.override", "20100101");
lockPref("general.useragent.locale", "en-US");
lockPref("general.useragent.override", "Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Firefox/31.0");
Related
We have a native app for Windows 64 bit. It embeds WebView (the original, not WebView2).
We set compatibility mode to IE11 with the BROWSER_FEATURE_EMULATION registry setting to 11000.
On some PCs, it identifies as IE11 with this user agent:
Mozilla/5.0 (Windows NT 6.2; Win64; x64; Trident/7.0; rv:11.0) like Gecko
On others, it identies as Edge with this agent:
Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.9200
These are all Windows 10 PCs, either 20H2 or 21H2.
How does this happen?
This is important because some things do not work in the "IE11" whereas they do work in the "Edge" mode. (Google maps)
From what I read, WebView on Windows 10 should always be "Edge IE11 mode".
Environment to reproduce
Windows 8,10,11
"vue": "2.5.16"
"ag-grid": "18.1.2"
"ag-grid-vue": "26.2.0"
Browser:
Chrome 96.0.4 +
Providing a Reproducible Scenario
Set the windows display resolution to scale to 125% or 150% Open the
chrome and open the app
https://codesandbox.io/s/ag-grid-vue-example-forked-gy47e?file=/src/App.vue
Now try to scroll to bottom of the grid bodyScrollEnd is not
triggering when scroll reaches the end
CodeSandBox link: https://codesandbox.io/s/ag-grid-vue-example-forked-gy47e?file=/src/App.vue
Current behavior
bodyScrollEnd event is working fine on MacOS BigSur(11.6) and Windows (on 100% scaling) on every browser
Expected behavior
bodyScrollEnd event should be triggered on reaching end or scroll irrespective of OS and browser
AG Grid version: 18.1.2
Browser:
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36'
Language: [ES6/7]
Anyone know the name of user agent used by Microsoft Teams to parsing website ?
A customer put a link of my website on his microsoft teams but link is not rendering correctly because is not redirect to my prerender.
On 13 January 2022, the User-Agent strings of the browser used to render Teams Tab content were as follows (running in a small sample of various contexts):
Microsoft Teams (work or school) desktop app my x64 Windows 11 machine:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Teams/1.4.00.32771 Chrome/85.0.4183.121 Electron/10.4.7 Safari/537.36
Teams Android App:
Mozilla/5.0 (Linux; Android 11; M2102J20SG Build/RKQ1.200826.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/97.0.4692.70 Mobile Safari/537.36 TeamsMobile-Android
Teams Web App running in Chrome 97 on Windows:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36
I got these by creating a simple tab app that loaded the content URL https://www.httpbin.org/headers, which is a public service that just echoes the request headers in the response, then navigating to that Tab in Teams in the various contexts above.
Long story short: As is often the case with user-agent sniffing, it doesn't seem sensible here to depend on the user agent string in your application in any way, because it varies quite a lot depending on the Teams context from which the request is made. Even if you were to try to match "Teams" or "TeamsMobile" for the "app" cases, it doesn't seem documented anywhere and Microsoft could well change it in future. So, my suggestion is to forget about the Microsoft Teams user agent.
I also had this question because I wanted to block link unfurling from MS Teams for an app I was developing.
I used the following line from in a Flask app
request.user_agent.string
To get this user agent
Mozilla/5.0 (Windows NT 6.1; WOW64) SkypeUriPreview Preview/0.5
This was January 2020 so it may change over time, FYI
I suggest you can find it easily. Develop a tiny website to record user-agent of all requests. Post the url of your website in teams. Then you can find it in the recorded user-agents.
I've been trying to get hostClientType from Teams context. I get context with the code below, but hostClientType is not populated / available. I need to distinguish between running in teams webapp or teams desktop app and think the property is therefore. Any help is appreciated.
microsoftTeams.getContext(function (context) {
alert(context.hostClientType) // undefined
})
It's not in the object that .getContext returns.
Try navigator.userAgent - it will return something like: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Teams/1.1.00.22163 Chrome/61.0.3163.100 Electron/2.0.4 Safari/537.36".
I have the following code to detect to see if CF BHO is enabled, but unfortunately it didn't work out, it alway returns "automation server failed to create obj"
var activexGoogleFrameBho = new ActiveXObject('ChromeFrame.Bho');
if (activexGoogleFrameBho) {
...
}
My user agent and page header are as following:
mozilla/4.0(compatible; msie 8.0; windows nt 6.1; wow64; trident/4.0;
chromeframe/32.0.1700.107; slcc2; .net clr 2.0.50727; .net4.0c; .net4.0e)
<meta http-equiv='X-UA-Compatible' content='IE=Edge,chrome=IE8'/>
any ideas?
Thanks,
I'm not sure if you can detect the helper object itself though to see if the current page is loaded in chromeframe you can check if window.externalHost exists.
http://www.chromium.org/developers/how-tos/chrome-frame-getting-started/understanding-chrome-frame-user-agent#TOC-From-the-script-on-the-web-page