BrowserInfo_v3 Op
Reports the browser being used
Summary (oneliner)
<p>Performs a browser check. Some ops only work with certain browsers, you can use this op to create fallbacks.</p> <p>iOS detection is not very reliable, there is no safe and futureproof way to detect it anymore.</p>
- 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
<i>boolean</i>
Number)<p>true if mobile platform, false if not</p>
<i>boolean</i>
Number)<i>boolean</i>
Number)<p>True if the browser is any of IE 9, IE 10, IE 11</p>
<i>boolean</i>
Number)<p>True if the browser is Edge </p>
<i>boolean</i>
Number)<p>True if the browser is Chrome or Chrome Mobile</p>
<i>boolean</i>
Number)<p>True if the browser is Firefox or Firefox mobile</p>
<i>boolean</i>
Number)<p>True if the browser is Opera</p>
<i>boolean</i>
Number)<p>True if the browser is Safari (iOS & macOS & OS X)</p>
<i>boolean</i>
Number)<p>true if operating system is windows</p>
<i>boolean</i>
Number)<p>true if operating system is linux </p>
<i>boolean</i>
Number)<p>true if operating system is mac</p>
<i>boolean</i>
Number)<p>true if operating system is iOS</p>
<i>boolean</i>
Number)<p>true if operating system is Android</p>
<i>boolean</i>
Number)<p>true if cables electron app is used</p>
<p>exact name of the operating system</p>
<p>name of the browser</p>
<p>version of the os</p>
<p>browser language</p>
<p>current user agent </p>
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 |