Parse by JavaScript

On one forum I see question about parse with PHP. I see it simple with XML manipulation and/or regular expression. And I write JavaScript to collect all UserAgents with Versions and Browser names.

With this script I can collect all UA to structure like same:

You can open then open DeveloperConsole and copy this code to it. And then just type getParse()
This script collect all useragents and place it as text on web page and output it in console like Object.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.