515 questions
-4
votes
0
answers
54
views
How can I reliably differentiate Perplexity Comet browser’s user agent from Google Chrome? [closed]
I'm trying to detect and differentiate users of Perplexity's Comet browser from regular Google Chrome users on my web application. However, the user agent string I receive is:
Mozilla/5.0 (Macintosh; ...
0
votes
0
answers
101
views
How to reliably detect Firefox to handle window closing behavior differently from Chrome?
I'm working on a web application where I need to detect if the user is on Firefox because it behaves differently when closing a specific window compared to Google Chrome. Right now, the codebase uses ...
0
votes
2
answers
2k
views
Unable to detect underlying OS using JS
When I see the console of my browser, even if i am using windows, it returns Linux.
function detectOS() {
const userAgent = navigator.userAgent.toLowerCase();
if (userAgent.includes('win')...
2
votes
2
answers
2k
views
Detecting WebView2 vs standalone Edge browser?
I have a page that needs to render differently depending on whether it's being viewed from a WebView2 component (inside another application) or from a standalone Microsoft Edge browser. I tried ...
0
votes
1
answer
568
views
What is the best way to handle different browser features within a Blazor Server-Side Application?
EDIT: I initially only wanted to know how to detect different browsers in Blazor Server-Side and change the behaviour of my app accordingly. The answer to that can be found here: How to use the ...
0
votes
1
answer
1k
views
Detect edge (chromium) browser using Javascript
On a specific website I am unable to detect if the browser is edge (chromium) because on that website I am getting following user agent on edge browser
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) ...
-1
votes
1
answer
2k
views
How to detect if Xiaomi's Mi Browser using JS [closed]
How to check using javascript if the user visiting my website is doing so using Xiaomi's native - Mi Browser.
2
votes
0
answers
93
views
Checking browser using just CSS?
Is it possible to check browsers just with CSS?
I have this code and it seems to work, it applies the .browser-warning when the browser is IE 10-11.
I need to check if the browser is Safari in a ...
1
vote
0
answers
502
views
Is my Chrome driver detected and refused by EToro server?
I try to log in a etoro with Chrome driver but an error message appears on the screen.
However I manage to do it very well by hand.
USER = config.username
PWD = config.password
driver = webdriver....
0
votes
0
answers
20
views
Using jQuery to detect browser [duplicate]
Question:
I can predict both Chrome and Safari using
$(document).ready(function(){
$.browser.chrome = /chrome/.test(navigator.userAgent.toLowerCase());
/* Detect Chrome */
if($.browser....
1
vote
1
answer
3k
views
How to get user used browser name in .net core 2.0
I am using the code below:
Request.Headers["User-Agent"].ToString()
But it's giving me all browser details despite I only want the browser name.
Can anyone please help me with this problem?
0
votes
0
answers
437
views
How can I detect IOS version with server code at cshtml?
My question is about detecting ios version from server-side.
Based on ios version , I will change content at cshtml.
I want to check if the version is greater or equal to ios13.
Pseudo code is like ...
0
votes
0
answers
111
views
Set css rules that will be used when a site is loaded in a specific browser like safari
I want my website to recognize when it is loaded in safari and to follow a given css that works for safari. For example, a css rule may work in any other browser but not safari; so when loaded in ...
0
votes
0
answers
122
views
Detect if browser is Internet Explorer 11 [duplicate]
I've tried the following solutions but it always tells me that the browser is NOT internet explorer even if I am using Internet Explorer 11.
Note that the following solutions are what I saw in the ...
0
votes
0
answers
54
views
How to deprecate support for Internet Explorer on my site [duplicate]
Based on my personal philosophy of Internet Explorer as a browser and the analytics that say my site is barely used by IE users, I'm making the decision to deprecate support for IE on my Wordpress ...
1
vote
1
answer
486
views
Is there a way to get browser information, including version number, from a background script?
I want current platform information about the browser from a background script.
Firefox has a runtime.getBrowserInfo function that specifies a key version.
Short of having to import a package or to ...
1
vote
2
answers
170
views
Detect if IE < 11 reliably
Does a reliable method for detecting IE browser version exist? So far I have tried.
IE Conditional comments, not reliable
User Agent HTTP request header, not always set
My next option was to try out ...
2
votes
1
answer
662
views
How to detect devices (Android, iOS, windows) in AMP website
I have made a website in AMP (Accelerated Mobile Pages). I want to show some content in android but not in iOS.
Is there any way to detect android and iOS using AMP?
4
votes
3
answers
135
views
How do I detect if Edge Browser input corruption bug has been patched
Recently Edge browser had a bug with <option> elements with the value attribute omitted.
<select name="qty">
<option>1</option>
<option>2</option>
</...
3
votes
0
answers
1k
views
-moz-available isn't working in Firefox like its analog in Chrome
Surprised this isn't covered yet on SO.
Looked here:
CSS -moz-available on select not working
and
CSS -moz-available equivalent in Webkit?
... to no avail :(
Anyway.
In Chrome the background is ...
2
votes
1
answer
730
views
How to detect IE11 on Windows 10 in javascript?
it shouldn't depend on an easily spoofable method (e.g. user agent)
it shouldn't be picked up by earlier versions of Windows
AFAIK the only difference between IE11 on Windows 8.1 and Windows 10 is the ...
7
votes
3
answers
17k
views
Detect unsupported browser version and show specific div with message
I have a chat bot in my website it need latest version of browsers to work perfectly so I need to show a message to user saying "Please update your browser to latest version". I don't want to use ...
0
votes
1
answer
2k
views
How to tell user to open page in Chrome with Browser Detect
I want to add a message that tells users to open the page in chrome if they're not in that browser. How can the below be adjusted to use document.write() instead of alert(), and also exclude writing ...
2
votes
3
answers
3k
views
PHP: Detect user language and able to change language
I have a website with ability to choose language. And I wanted to make that when user enters first time to the website, php gets his system language and writes to cookie (So user by default every time ...
71
votes
11
answers
153k
views
How to detect browser with Angular?
I need to detect if browser is IE or Edge with Angular (TypeScript). Is it possible? If so, how?