BrowserFeaturesJs
Tiny Library for browser features detection.
Install / Use
/learn @BaseMax/BrowserFeaturesJsREADME
BrowserFeatures
Tiny Library for browser features detection.
Features
- Easy
- Compact
- No dependencies
How to Use?
you can access to result of detect and check from variable.
type of all variable is bool.
list of variables :
| Variables | Goal | | ------------- | ------------- | | browser.function_generator | | | browser.function_async | | | browser.function_generator_async | | | browser.event_target | | | browser.data_transfer_item | | | browser.data_transfer_item_list | | | browser.broad_cast_channel| | | browser.viewport| | | browser.font | | | browser.custom_element| | | browser.animate| | | browser.svg | | | browser.touch | | | browser.webgl | |
Samples
To view the full details, run the Example.html file.
Example :
<script type="text/javascript" src="BrowserFeatures.min.js"></script>
<script type="text/javascript">
window.addEventListener("load",function()
{
document.write("<b>" + "FunctionGenerator" + "</b> : " + browser.function_generator + "<br>");
document.write("<b>" + "FunctionAsync" + "</b> : " + browser.function_async + "<br>");
document.write("<b>" + "FunctionGeneratorAsync" + "</b> : " + browser.function_generator_async + "<br>");
document.write("<b>" + "EventTarget" + "</b> : " + browser.event_target + "<br>");
document.write("<b>" + "DataTransferItem" + "</b> : " + browser.data_transfer_item + "<br>");
document.write("<b>" + "DataTransferItemList" + "</b> : " + browser.data_transfer_item_list + "<br>");
document.write("<b>" + "BroadCastChannel" + "</b> : " + browser.broad_cast_channel + "<br>");
document.write("<b>" + "ViewPort" + "</b> : " + browser.viewport + "<br>");
document.write("<b>" + "Font" + "</b> : " + browser.font + "<br>");
document.write("<b>" + "CustomElement" + "</b> : " + browser.custom_element + "<br>");
document.write("<b>" + "Animate" + "</b> : " + browser.animate + "<br>");
document.write("<b>" + "SVG" + "</b> : " + browser.svg + "<br>");
document.write("<b>" + "Touch" + "</b> : " + browser.touch + "<br>");
document.write("<b>" + "WebGL" + "</b> : " + browser.webgl + "<br>");
});
</script>
Output of Example :
FunctionGenerator : true
FunctionAsync : true
FunctionGeneratorAsync : false
EventTarget : true
DataTransferItem : true
DataTransferItemList : true
BroadCastChannel : true
ViewPort : false
Font : true
CustomElement : true
Animate : false
SVG : true
Touch : false
WebGL : true
The output may be specific to different browsers and systems.
License
BrowserFeatures is licensed under the GNU General Public License.
Related Skills
node-connect
347.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
