Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Resource icon

RPG Maker Detect 1.0

No permission to download
Synopsis

I made this because I needed this. This snippet gives functions to detect the user's browser or operating system.
Detectable Browsers are: Google Chrome, Mozilla Firefox, Internet Explorer, Microsoft Edge, and Safari. Detectable Operating systems are Linux, Unix, Windows and Mac

How does it work?

Detect the browser by calling the function

Detect.browser()
upload_2016-6-21_21-35-0.gif


This function will return one the following as a string:

"Google Chrome", "Mozilla Firefox", "Internet Explorer", "Microsoft Edge", "Safari"

upload_2016-6-21_21-35-0.gif


If you have a browser that you would like added please tell me and a I will add it if deemed necessary.

Detect the operating system or mobile device by calling the function

Detect.OS()
upload_2016-6-21_21-35-0.gif


This function will return one of the following as a string:

"Windows","Mac OS","Unix","Linux","iOS","Android","Windows Phone"
upload_2016-6-21_21-35-0.gif

Updates:

5/8/2016 - Can detect mobile devices

upload_2016-6-21_21-35-0.gif


I recommend that you place this in the libs/ folder instead of the plugins folder to make the Detect function universal for all plugins.

Usage
Feel free to use in commercial or non-commercial credit is appreciated but not necessary.
Author
Yuuta K
Downloads
32
Views
157
First release
Last update
Rating
5.00 star(s) 1 ratings

More resources from Yuuta K

Latest reviews

very smart little function. thanks for this!
Top