I develop and maintain open-source software in my spare time.
- LinkedIn: @tim-van-scherpenzeel
Detect and report browser and hardware features.
Home Page: https://timvanscherpenzeel.github.io/detect-features/
License: MIT License
I develop and maintain open-source software in my spare time.
First off, this is an awesome library! Thanks for making and sharing this.
It's similar to a small library we built for our Mozilla Games initiative: browser_feature_test
(demo here)
Anyway, WebXR (VR + AR) is the new experimental API that will be soon superceeding WebVR.
Here's a helpful blog post by @toji (Chrome engineer on WebXR + WebGL + Gamepad) on the experimental WebXR support behind a feature flag in Chrome Canary: https://blog.tojicode.com/2018/02/early-access-to-webxr-device-api-in.html
And here are the two specs:
navigator.getVRDisplays
, VRDisplay
, etc.navigator.xr
, XRDevice
, etc.Long story short: for WebXR, we just need to check for truthiness of navigator.xr
as opposed to navigator.getVRDisplays
.
Many thanks for this library and for your help going forward with this library!
It would be nice to get back the full userAgent string. I see that getFeatures is already using it via detect-ua
would be nice to include device.userAgent
perhaps under browserFeatures.browserType
HEllo! I want to implement your detection for PHP script on Wordpress behind Apache / Nginx , but its not quite easy to use something like https://gist.github.com/MStruntze/d7de3ea07b2777ca9f6d , especially if I dont know anything about javascript/node .
Maybe you know where I can get some parts of your script but on clean JS library?
Possible solution...
isAdBlockEnabled.ts
export const isAdBlockEnabled = async () => {
try {
await fetch('https://www3.doubleclick.net', {
method: 'HEAD',
mode: 'no-cors',
cache: 'no-store',
});
return false;
} catch (err) {
return true;
}
};
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.