BrowserInfo_v3 Op
Reports the browser being used
Summary (oneliner)
Performs a browser check. Some ops only work with certain browsers, you can use this op to create fallbacks.
iOS detection is not very reliable, there is no safe and futureproof way to detect it anymore.
- Ops.Devices.Browser.BrowserInfo_v3
- Core Op - Official cables op
- MIT
- Platform.js (A platform detection library that works on nearly all JavaScript platforms.)
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
Example Patch BrowserCheck - example
OUTPUT PORTS
true if mobile platform, false if not
True if the browser is any of IE 9, IE 10, IE 11
True if the browser is Edge
True if the browser is Chrome or Chrome Mobile
True if the browser is Firefox or Firefox mobile
True if the browser is Opera
True if the browser is Safari (iOS & macOS & OS X)
true if operating system is windows
true if operating system is linux
true if operating system is mac
true if operating system is iOS
true if operating system is Android
true if cables electron app is used
exact name of the operating system
name of the browser
version of the os
browser language
current user agent
Patches using BrowserInfo_v3
Changelog
cloned op from Ops.Html.BrowserCheck_v2 | simod - 2020-10-15 13:11 | |
added lib: platform.js | simod - 2020-10-15 13:13 | |
Ops.User.cables.BrowserCheck renamed to Ops.Html.BrowserInfo | simod - 2020-10-15 13:16 | |
Ops.Html.BrowserInfo renamed to Ops.Html.BrowserCheck_v3 | cables - 2020-10-15 13:59 | |
Ops.Html.BrowserCheck_v3 renamed to Ops.Html.BrowserInfo | pandur - 2020-12-01 08:30 | |
Ops.Html.BrowserInfo renamed to Ops.Html.BrowserInfo_v3 | pandur - 2020-12-01 08:33 | |
Ops.Html.BrowserInfo_v3 renamed to Ops.Browser.BrowserInfo_v3 | pandur - 2022-06-07 08:47 | |
rename | Ops.Browser.BrowserInfo_v3 renamed to Ops.Devices.Browser.BrowserInfo_v3 | pandur - 2023-12-06 09:24 |