Questions tagged [browser-detection]
Detecting the type and version of the browser the user uses to view the webpage.
browser-detection
515
questions
0
votes
2
answers
540
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')...
0
votes
1
answer
2k
views
Can JavaScript detect the Arc browser?
The Arc browser is a new browser which used the Chromium engine and identifies itself as Chrome using a user agent string like this: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (...
1
vote
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 ...
2
votes
2
answers
10k
views
Dealing with Safari and .webp images in 2022
I've been waiting to use .webp images for a very long time.
It's 2022, so, given:
the image format has existed for a decade
Chrome started supporting .webp in Jan 2014
Firefox started supporting ....
0
votes
1
answer
443
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
764
views
How to detect specific browser version or higher (jQuery) [duplicate]
I know it's very easy to find out which browser the user is using to access my site. But how does it look like if I want to check the user browser for a certain version (or higher) in order to carry ...
0
votes
1
answer
966
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) ...
0
votes
1
answer
389
views
Uncaught ReferenceError when adding JS to app.js in Laravel
I have some browser sniffer code using the function detect.js. It works fine when not added to my project. Still, when I try to compile the JavaScript and add it to app.js, I get an error in the ...
-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.
0
votes
2
answers
1k
views
Prevent Canvas Fingerprinting in DotNetBrowser
I am trying to get DotNetBrowser to not be identified using Canvas Fingerprinting. You can see details at this website:
https://browserleaks.com/canvas
I've tried turning off the following switches:
...
2
votes
0
answers
85
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
1
answer
720
views
How to detect Installed Browsers on a Mac Machine using Node.js?
Need a node-js program which can detect the Installed Browsers(or Applications) on the local machine
1
vote
0
answers
412
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
1
answer
917
views
how to let my website open only on specific browsers
I want my website to open only in these selected browsers (Chrome, FireFox, Safari, Opera & Edge). Can't figure out how i can make it happen, because the userAgent gives these strings for each ...
0
votes
0
answers
14
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....