├── .editorconfig ├── .gitignore ├── LICENSE.md ├── README.md ├── UAParser.FormFactor.Tests ├── AdditionalOsResourceTests.cs ├── CustomDeviceResourceTests.cs ├── DeviceFormFactorTests.cs ├── DeviceResourceTests.cs ├── DeviceYamlTestCase.cs ├── FirefoxUserAgentStringResourceTests.cs ├── InternalExtensions.cs ├── OSYamlTestCase.cs ├── OperaMiniResourceTests.cs ├── ParserTests.cs ├── PgtsBrowserListResourceTests.cs ├── PodcastingResourceTests.cs ├── ResourceTests.cs ├── Resources │ ├── additional_os_tests.yaml │ ├── custom_test_device.yaml │ ├── firefox_user_agent_strings.yaml │ ├── opera_mini_user_agent_strings.yaml │ ├── pgts_browser_list.yaml │ ├── podcasting_user_agent_strings.yaml │ ├── test_device.yaml │ ├── test_os.yaml │ └── test_ua.yaml ├── UAParser.FormFactor.Tests.csproj ├── UserAgentOsResourceTests.cs ├── UserAgentResourceTests.cs ├── UserAgentYamlTestCase.cs ├── YamlParsingTests.cs └── YamlTestCase.cs ├── UAParser.FormFactor.sln ├── UAParser.FormFactor ├── AssemblyInfo.cs ├── IUAParser.cs ├── IUAParserOutput.cs ├── Models │ ├── ClientInfo.cs │ ├── Device.cs │ ├── DeviceFormFactor.cs │ ├── OS.cs │ └── UserAgent.cs ├── Parser.cs ├── ParserOptions.cs ├── UAParser.FormFactor.csproj ├── Utils │ ├── DictionaryExtensions.cs │ ├── MinimalYamlParser.cs │ ├── RegexBinderBuilder.cs │ ├── StringExtensions.cs │ └── VersionString.cs └── regexes.yaml └── appveyor.yml /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | end_of_line = crlf 5 | indent_style = tab 6 | tab_width = 4 7 | trim_trailing_whitespace = true 8 | 9 | [*.yml] 10 | indent_style = space 11 | indent_size = 2 12 | 13 | [*.cs] 14 | dotnet_style_qualification_for_field = false:suggestion 15 | dotnet_style_qualification_for_property = false:suggestion 16 | dotnet_style_qualification_for_method = false:suggestion 17 | dotnet_style_qualification_for_event = false:suggestion 18 | 19 | dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion 20 | dotnet_style_predefined_type_for_member_access = true:suggestion 21 | 22 | dotnet_style_require_accessibility_modifiers = always:suggestion 23 | 24 | dotnet_style_object_initializer = true:suggestion 25 | dotnet_style_collection_initializer = true:suggestion 26 | dotnet_style_explicit_tuple_names = true:suggestion 27 | dotnet_style_coalesce_expression = true:suggestion 28 | dotnet_style_null_propagation = true:warning 29 | dotnet_style_prefer_inferred_tuple_names = false:none 30 | dotnet_style_prefer_inferred_anonymous_type_member_names = false:none 31 | 32 | dotnet_sort_system_directives_first = true 33 | 34 | csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion 35 | 36 | csharp_style_var_for_built_in_types = true:warning 37 | csharp_style_var_when_type_is_apparent = true:warning 38 | csharp_style_var_elsewhere = true:warning 39 | 40 | csharp_style_expression_bodied_methods = false:none 41 | csharp_style_expression_bodied_constructors = false:suggestion 42 | csharp_style_expression_bodied_operators = false:suggestion 43 | csharp_style_expression_bodied_properties = true:suggestion 44 | csharp_style_expression_bodied_indexers = true:suggestion 45 | csharp_style_expression_bodied_accessors = true:suggestion 46 | 47 | csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion 48 | csharp_style_pattern_matching_over_as_with_null_check = true:suggestion 49 | 50 | csharp_style_inlined_variable_declaration = true:suggestion 51 | 52 | csharp_prefer_simple_default_expression = true:suggestion 53 | csharp_style_deconstructed_variable_declaration = true:suggestion 54 | csharp_style_pattern_local_over_anonymous_function = true:suggestion 55 | 56 | csharp_style_throw_expression = false:warning 57 | csharp_style_conditional_delegate_call = true:suggestion 58 | 59 | csharp_prefer_braces = true:suggestion 60 | 61 | csharp_new_line_before_open_brace = all 62 | csharp_new_line_before_else = true 63 | csharp_new_line_before_catch = true 64 | csharp_new_line_before_finally = true 65 | csharp_new_line_between_query_expression_clauses = true 66 | csharp_new_line_before_members_in_object_initializers = true 67 | csharp_new_line_before_members_in_anonymous_types = true 68 | 69 | csharp_indent_case_contents = true 70 | csharp_indent_switch_labels = true 71 | 72 | csharp_space_after_cast = true 73 | csharp_space_after_keywords_in_control_flow_statements = true 74 | csharp_space_between_method_declaration_parameter_list_parentheses = false 75 | csharp_space_between_method_call_parameter_list_parentheses = false 76 | csharp_space_between_parentheses = false 77 | 78 | csharp_preserve_single_line_statements = false 79 | csharp_preserve_single_line_blocks = true 80 | 81 | # Naming Symbols 82 | # constants - define constants 83 | dotnet_naming_symbols.constants.applicable_kinds = field 84 | dotnet_naming_symbols.constants.required_modifiers = const 85 | 86 | # non_private_fields - define public, internal, protected and protected internal fields 87 | dotnet_naming_symbols.non_private_fields.applicable_accessibilities = public, internal, protected, protected_internal 88 | dotnet_naming_symbols.non_private_fields.applicable_kinds = field 89 | 90 | # private_fields - define private fields 91 | dotnet_naming_symbols.private_fields.applicable_accessibilities = private 92 | dotnet_naming_symbols.private_fields.applicable_kinds = field 93 | 94 | # async_methods - define async methods 95 | dotnet_naming_symbols.async_methods.applicable_kinds = method 96 | dotnet_naming_symbols.async_methods.required_modifiers = async 97 | 98 | # non_field_members - define all class members except fields 99 | dotnet_naming_symbols.non_field_members.applicable_kinds = method, property, event 100 | 101 | # parameters - defines any parameter 102 | dotnet_naming_symbols.parameters.applicable_kinds = parameter 103 | 104 | # non_interface_types - defines class, struct, enum and delegate types 105 | dotnet_naming_symbols.non_interface_types.applicable_kinds = class, struct, enum, delegate 106 | 107 | # interface_types - defines interfaces 108 | dotnet_naming_symbols.interface_types.applicable_kinds = interface 109 | 110 | # Naming Styles 111 | # camel_case - define the camelCase style 112 | dotnet_naming_style.camel_case.capitalization = camel_case 113 | 114 | # pascal_case - define the PascalCase style 115 | dotnet_naming_style.pascal_case.capitalization = pascal_case 116 | 117 | # camel_case_and_prefix_with_ - private fields must be camelCase and the first character of an private field must be an '_' 118 | dotnet_naming_style.camel_case_and_prefix_with_.capitalization = camel_case 119 | dotnet_naming_style.camel_case_and_prefix_with_.required_prefix = _ 120 | 121 | # pascal_case_and_prefix_with_i - interfaces must be PascalCase and the first character of an interface must be an 'I' 122 | dotnet_naming_style.pascal_case_and_prefix_with_i.capitalization = pascal_case 123 | dotnet_naming_style.pascal_case_and_prefix_with_i.required_prefix = I 124 | 125 | # suffix_async_methods_with_async - async methods must be PascalCase and the suffix of an async method must be 'Async' 126 | dotnet_naming_style.suffix_async_methods_with_async.required_suffix = Async 127 | dotnet_naming_style.suffix_async_methods_with_async.capitalization = pascal_case 128 | 129 | # Naming Rules 130 | # Constants must be PascalCase 131 | dotnet_naming_rule.constants_must_be_pascal_case.severity = warning 132 | dotnet_naming_rule.constants_must_be_pascal_case.symbols = constants 133 | dotnet_naming_rule.constants_must_be_pascal_case.style = pascal_case 134 | 135 | # Non-private fields must be PascalCase 136 | dotnet_naming_rule.non_private_fields_must_be_pascal_case.severity = warning 137 | dotnet_naming_rule.non_private_fields_must_be_pascal_case.symbols = non_private_fields 138 | dotnet_naming_rule.non_private_fields_must_be_pascal_case.style = pascal_case 139 | 140 | # Private fields must be camelCase and the first character of an private field must be an '_' 141 | dotnet_naming_rule.private_fields_must_be_camel_case.severity = warning 142 | dotnet_naming_rule.private_fields_must_be_camel_case.symbols = private_fields 143 | dotnet_naming_rule.private_fields_must_be_camel_case.style = camel_case_and_prefix_with_ 144 | 145 | # Async methods must be PascalCase and the suffix of an async method must be 'Async' 146 | dotnet_naming_rule.async_methods_must_be_camel_case_with_async_suffix.severity = warning 147 | dotnet_naming_rule.async_methods_must_be_camel_case_with_async_suffix.symbols = async_methods 148 | dotnet_naming_rule.async_methods_must_be_camel_case_with_async_suffix.style = suffix_async_methods_with_async 149 | 150 | # Non-field members must be PascalCase 151 | dotnet_naming_rule.non_field_members_must_be_pascal_case.severity = warning 152 | dotnet_naming_rule.non_field_members_must_be_pascal_case.symbols = non_field_members 153 | dotnet_naming_rule.non_field_members_must_be_pascal_case.style = pascal_case 154 | 155 | # Parameters must be camelCase 156 | dotnet_naming_rule.parameters_must_be_camel_case.severity = warning 157 | dotnet_naming_rule.parameters_must_be_camel_case.symbols = parameters 158 | dotnet_naming_rule.parameters_must_be_camel_case.style = camel_case 159 | 160 | # Class, struct, enum and delegates must be PascalCase 161 | dotnet_naming_rule.non_interface_types_must_be_pascal_case.severity = warning 162 | dotnet_naming_rule.non_interface_types_must_be_pascal_case.symbols = non_interface_types 163 | dotnet_naming_rule.non_interface_types_must_be_pascal_case.style = pascal_case 164 | 165 | # Interfaces must be PascalCase and start with an 'I' 166 | dotnet_naming_rule.interface_types_must_be_prefixed_with_i.severity = warning 167 | dotnet_naming_rule.interface_types_must_be_prefixed_with_i.symbols = interface_types 168 | dotnet_naming_rule.interface_types_must_be_prefixed_with_i.style = prefix_interface_with_i 169 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | #ignore thumbnails created by windows 3 | Thumbs.db 4 | #Ignore files build by Visual Studio 5 | *.obj 6 | *.pdb 7 | *.user 8 | *.aps 9 | *.pch 10 | *.vspscc 11 | *_i.c 12 | *_p.c 13 | *.ncb 14 | *.suo 15 | *.tlb 16 | *.tlh 17 | *.bak 18 | *.cache 19 | *.ilk 20 | *.log 21 | [Bb]in 22 | [Dd]ebug*/ 23 | *.lib 24 | *.sbr 25 | obj/ 26 | [Rr]elease*/ 27 | _ReSharper*/ 28 | [Tt]est[Rr]esult* 29 | [Pp]ackages/* 30 | .vs/* 31 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright 2016 Aleksey Gordeev, Igor Eroshkin 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | # UAParser.FormFactor 3 | 4 | [![Build status](https://img.shields.io/appveyor/ci/thyn/ua-parser-formfactor.svg)](https://ci.appveyor.com/project/thyn/ua-parser-formfactor) [![AppVeyor tests](https://img.shields.io/appveyor/tests/thyn/ua-parser-formfactor.svg)](https://ci.appveyor.com/project/thyn/ua-parser-formfactor/build/tests) [![NuGet](https://img.shields.io/nuget/vpre/UAParser.FormFactor.svg)](https://www.nuget.org/packages/UAParser.FormFactor/) 5 | 6 | A .net wrapper for the ua-parser library with form factors (Mobile,Table,Desktop,Spider,TvAndConsole). No hidden references to System.Net.Http. Based on http://detectmobilebrowsers.com and https://github.com/ua-parser/uap-csharp 7 | 8 | # Changes 9 | 10 | 2019.09.27 Update UAParser regexes.yaml. Add TvOrConsole form factor. Add regex for desktop. NOW DESKTOP IS NOT DEFAULT FORM FACTOR. Default is Unknown. 11 | 12 | 2018.07.04 Fork UAParser to support .net standart 2.0. Update yaml files. Fix forked tests to support new yaml test files. Remove hell with System.Net.http. Remove custom wrappers for old UAParser library. Supports .Net 4.6.1+, .net core 13 | 14 | 2017.09.22 new release to support version 3.0.0 of UAParser , built only for 4.5 framework. 15 | 16 | # Installation 17 | 18 | https://www.nuget.org/packages/UAParser.FormFactor/ 19 | 20 | # Supported form factors. 21 | 22 | 1. Mobile 23 | 2. Tablet 24 | 3. Desktop 25 | 4. Spider 26 | 5. TvOrConsole 27 | 28 | 29 | # Usage 30 | 31 | ```C# 32 | 33 | string uaString = "Mozilla/5.0 (iPhone; CPU iPhone OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B206 Safari/7534.48.3"; 34 | // get a parser with the embedded regex patterns 35 | var uaParser = Parser.GetDefault(); 36 | 37 | // get a parser using externally supplied yaml definitions 38 | // var uaParser = Parser.FromYamlFile(pathToYamlFile); 39 | // var uaParser = Parser.FromYaml(yamlString); 40 | 41 | ClientInfo c = uaParser.Parse(uaString); 42 | 43 | Console.WriteLine(c.UserAgent.Family); // => "Mobile Safari" 44 | Console.WriteLine(c.UserAgent.Major); // => "5" 45 | Console.WriteLine(c.UserAgent.Minor); // => "1" 46 | Console.WriteLine(c.OS.Family); // => "iOS" 47 | Console.WriteLine(c.OS.Major); // => "5" 48 | Console.WriteLine(c.OS.Minor); // => "1" 49 | Console.WriteLine(c.Device.Family); // => "iPhone" 50 | Console.WriteLine(result.Device.FormFactor); // => Mobile 51 | 52 | ``` 53 | 54 | # Regexes used to define form factors 55 | 56 | 1. Mobile 57 | 58 | ``` 59 | (android|bb\d+|meego|tizen).+?mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino 60 | ``` 61 | then 62 | ``` 63 | 1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\- 64 | ``` 65 | 66 | 2. Tablet 67 | 68 | ``` 69 | android|ipad|playbook|silk|tablet 70 | ``` 71 | 72 | 3. TvOrConsole 73 | 74 | ``` 75 | smart[- ]?tv|apple\s?tv|googletv|android tv|opera tv|dtvnetbrowser|sonycebrowser|bravia 4k|netflix|pov_tv-hdmi-200bt| dlnadoc\/|hbbtv|tv safari|roku\/dvp|nsz-gs7\/gx70|crkey| aftm | aftt | gtv100|nintendobrowser|playstation 76 | ``` 77 | 78 | 4. Desktop 79 | 80 | ``` 81 | windows nt |windows;|firefox| chrome|netscape|iceweasel|seamonkey|icedove|iceowl|iceape|opera 82 | ``` 83 | 84 | 5. Else Unknown -------------------------------------------------------------------------------- /UAParser.FormFactor.Tests/AdditionalOsResourceTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | 3 | namespace UAParser.FormFactor.Tests 4 | { 5 | [TestFixture] 6 | [Parallelizable] 7 | public class AdditionalOsResourceTests : ResourceTests 8 | { 9 | [Test] 10 | public void CanRunAdditionalOsTests() 11 | { 12 | RunTests("UAParser.FormFactor.Tests.Resources.additional_os_tests.yaml", OSYamlTestCase.ReadFromMap); 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /UAParser.FormFactor.Tests/CustomDeviceResourceTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | 3 | namespace UAParser.FormFactor.Tests 4 | { 5 | [TestFixture] 6 | [Parallelizable] 7 | public class CustomDeviceResourceTests : ResourceTests 8 | { 9 | [Test] 10 | public void CanRunCustomDeviceTests() 11 | { 12 | RunTests("UAParser.FormFactor.Tests.Resources.custom_test_device.yaml", OSYamlTestCase.ReadFromMap); 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /UAParser.FormFactor.Tests/DeviceFormFactorTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using UAParser.FormFactor.Models; 3 | 4 | namespace UAParser.FormFactor.Tests 5 | { 6 | [TestFixture] 7 | [Parallelizable] 8 | public class DeviceFormFactorTests 9 | { 10 | [TestCase("Mozilla/5.0 (Android 4.4; Mobile; rv:41.0) Gecko/41.0 Firefox/41.0")] 11 | [TestCase("Mozilla/5.0 (SymbianOS/9.4; Series60/5.0 NokiaN97-1/10.0.012; Profile/MIDP-2.1 Configuration/CLDC-1.1; en-us) AppleWebKit/525 (KHTML, like Gecko) WicKed/7.1.12344")] 12 | [TestCase("Mozilla/5.0 (Android 4.4; Mobile; rv:41.0) Gecko/41.0 Firefox/41.0")] 13 | [TestCase("Mozilla/5.0 (Mobile; rv:26.0) Gecko/26.0 Firefox/26.0")] 14 | [TestCase("Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Mobile/11A465 Twitter for iPhone")] 15 | [TestCase("Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0; ARM; Touch; NOKIA; Lumia 920)")] 16 | public void MobileDevices(string userAgent) 17 | { 18 | var parser = Parser.GetDefault(); 19 | var result = parser.ParseDevice(userAgent); 20 | 21 | Assert.AreEqual(DeviceFormFactor.Mobile, result.FormFactor); 22 | } 23 | 24 | [TestCase("Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.85 Safari/537.36")] 25 | [TestCase("Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36")] 26 | [TestCase("Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:34.0) Gecko/20100101 Firefox/34.0")] 27 | [TestCase("Mozilla/5.0 (Windows NT 6.3; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0")] 28 | [TestCase("Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36")] 29 | [TestCase("Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.8) Gecko/20100723 Ubuntu/10.04 (lucid) Firefox/3.6.8")] 30 | [TestCase("Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; FSL 7.0.5.01003)")] 31 | [TestCase("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36")] 32 | public void DesktopDevices(string userAgent) 33 | { 34 | var parser = Parser.GetDefault(); 35 | var result = parser.ParseDevice(userAgent); 36 | 37 | Assert.AreEqual(DeviceFormFactor.Desktop, result.FormFactor); 38 | } 39 | 40 | [TestCase("Mozilla/5.0 (iPad; CPU OS 10_0_2 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Mobile/14A456 Safari/602.1")] 41 | [TestCase("Mozilla/5.0 (Tablet; rv:26.0) Gecko/26.0 Firefox/26.0")] 42 | [TestCase("Mozilla/5.0 (iPad; CPU OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) CriOS/30.0.1599.12 Mobile/11A465 Safari/8536.25 (3B92C18B-D9DE-4CB7-A02A-22FD2AF17C8F)")] 43 | [TestCase("Mozilla/5.0 (Linux; Android 4.1.2; Transformer Build/JZO54K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.59 Safari/537.36")] 44 | public void TabletDevices(string userAgent) 45 | { 46 | var parser = Parser.GetDefault(); 47 | var result = parser.ParseDevice(userAgent); 48 | 49 | Assert.AreEqual(DeviceFormFactor.Tablet, result.FormFactor); 50 | } 51 | 52 | [TestCase("Googlebot/2.1 (+http://www.google.com/bot.html)")] 53 | [TestCase("Mozilla/5.0+(compatible; UptimeRobot/2.0; http://www.uptimerobot.com/)")] 54 | [TestCase("Jamie Brown Spider 1.0 (http://jamiembrown.com/)")] 55 | [TestCase("Mozilla/5.0 (compatible; MixrankBot; crawler@mixrank.com)")] 56 | [TestCase("Mozilla/5.0 (compatible; Cliqzbot/1.0 +http://cliqz.com/company/cliqzbot)")] 57 | [TestCase("Xenu's Link Sleuth 1.1c")] 58 | [TestCase("Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)")] 59 | [TestCase("Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53 (compatible; bingbot/2.0; http://www.bing.com/bingbot.htm)")] 60 | [TestCase("DuckDuckBot/1.0; (+http://duckduckgo.com/duckduckbot.html)")] 61 | public void SpiderDevices(string userAgent) 62 | { 63 | var parser = Parser.GetDefault(); 64 | var result = parser.ParseDevice(userAgent); 65 | 66 | Assert.AreEqual(DeviceFormFactor.Spider, result.FormFactor); 67 | } 68 | } 69 | } -------------------------------------------------------------------------------- /UAParser.FormFactor.Tests/DeviceResourceTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | 3 | namespace UAParser.FormFactor.Tests 4 | { 5 | [TestFixture] 6 | [Parallelizable] 7 | public class DeviceResourceTests : ResourceTests 8 | { 9 | [Test] 10 | public void CanRunDeviceTests() 11 | { 12 | RunTests("UAParser.FormFactor.Tests.Resources.test_device.yaml", DeviceYamlTestCase.ReadFromMap); 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /UAParser.FormFactor.Tests/DeviceYamlTestCase.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using NUnit.Framework; 3 | using UAParser.FormFactor.Models; 4 | 5 | namespace UAParser.FormFactor.Tests 6 | { 7 | public class DeviceYamlTestCase : YamlTestCase 8 | { 9 | public string Family { get; set; } 10 | 11 | public static DeviceYamlTestCase ReadFromMap(Dictionary map) 12 | { 13 | var tc = new DeviceYamlTestCase() 14 | { 15 | UserAgent = map["user_agent_string"], 16 | Family = map["family"], 17 | }; 18 | return tc; 19 | } 20 | 21 | public override void Verify(ClientInfo clientInfo) 22 | { 23 | Assert.NotNull(clientInfo); 24 | AssertMatch(Family, clientInfo.Device.Family, "Family"); 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /UAParser.FormFactor.Tests/FirefoxUserAgentStringResourceTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | 3 | namespace UAParser.FormFactor.Tests 4 | { 5 | [TestFixture] 6 | [Parallelizable] 7 | public class FirefoxUserAgentStringResourceTests : ResourceTests 8 | { 9 | [Test] 10 | public void CanRunFirefoxUserAgentStringTests() 11 | { 12 | RunTests("UAParser.FormFactor.Tests.Resources.firefox_user_agent_strings.yaml", UserAgentYamlTestCase.ReadFromMap); 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /UAParser.FormFactor.Tests/InternalExtensions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Text; 6 | using YamlDotNet.RepresentationModel; 7 | 8 | namespace UAParser.FormFactor.Tests 9 | { 10 | internal static class InternalExtensions 11 | { 12 | internal static List> ConvertToDictionaryList(this YamlSequenceNode yamlNode) 13 | { 14 | var list = new List>(); 15 | foreach (var item in yamlNode.OfType()) 16 | { 17 | list.Add(ConvertToDictionary(item)); 18 | } 19 | return list; 20 | } 21 | 22 | internal static Dictionary ConvertToDictionary(this YamlMappingNode yamlNode) 23 | { 24 | var dic = new Dictionary(); 25 | foreach (var key in yamlNode.Children.Keys) 26 | { 27 | dic[key.ToString()] = yamlNode.Children[key].ToString(); 28 | } 29 | return dic; 30 | } 31 | 32 | internal static string GetTestResources(this object self, string name) 33 | { 34 | using (var s = typeof(UserAgentOsResourceTests).Assembly.GetManifestResourceStream(name)) 35 | { 36 | if (s == null) 37 | { 38 | throw new InvalidOperationException("Could not locate an embedded test resource with name: " + name); 39 | } 40 | 41 | using (var sr = new StreamReader(s, Encoding.UTF8)) 42 | { 43 | return sr.ReadToEnd(); 44 | } 45 | } 46 | } 47 | } 48 | } -------------------------------------------------------------------------------- /UAParser.FormFactor.Tests/OSYamlTestCase.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using NUnit.Framework; 3 | using UAParser.FormFactor.Models; 4 | 5 | namespace UAParser.FormFactor.Tests 6 | { 7 | public class OSYamlTestCase : YamlTestCase 8 | { 9 | public string Family { get; set; } 10 | 11 | public string Major { get; set; } 12 | 13 | public string Minor { get; set; } 14 | 15 | public string Patch { get; set; } 16 | 17 | public string PatchMinor { get; set; } 18 | 19 | public static OSYamlTestCase ReadFromMap(Dictionary map) 20 | { 21 | var tc = new OSYamlTestCase() 22 | { 23 | UserAgent = map["user_agent_string"], 24 | Family = map["family"], 25 | Major = map["major"], 26 | Minor = map["minor"], 27 | Patch = map["patch"], 28 | PatchMinor = map["patch_minor"] 29 | }; 30 | return tc; 31 | } 32 | 33 | public override void Verify(ClientInfo clientInfo) 34 | { 35 | Assert.NotNull(clientInfo); 36 | AssertMatch(Family, clientInfo.OS.Family, "Family"); 37 | AssertMatch(Major, clientInfo.OS.Major, "Major"); 38 | AssertMatch(Minor, clientInfo.OS.Minor, "Minor"); 39 | AssertMatch(Patch, clientInfo.OS.Patch, "Patch"); 40 | AssertMatch(PatchMinor, clientInfo.OS.PatchMinor, "PatchMinor"); 41 | } 42 | } 43 | } -------------------------------------------------------------------------------- /UAParser.FormFactor.Tests/OperaMiniResourceTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | 3 | namespace UAParser.FormFactor.Tests 4 | { 5 | [TestFixture] 6 | [Parallelizable] 7 | public class OperaMiniResourceTests : ResourceTests 8 | { 9 | [Test] 10 | public void CanRunOperaMiniTests() 11 | { 12 | RunTests("UAParser.FormFactor.Tests.Resources.opera_mini_user_agent_strings.yaml", UserAgentYamlTestCase.ReadFromMap); 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /UAParser.FormFactor.Tests/ParserTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | 3 | namespace UAParser.FormFactor.Tests 4 | { 5 | [TestFixture] 6 | [Parallelizable] 7 | public class ParserTests 8 | { 9 | [Test] 10 | public void CanGetDefaultParser() 11 | { 12 | var parser = Parser.GetDefault(); 13 | Assert.NotNull(parser); 14 | } 15 | 16 | [Test] 17 | public void CanGetParserFromInput() 18 | { 19 | var yamlContent = this.GetTestResources("UAParser.FormFactor.Tests.Resources.regexes.yaml"); 20 | var parser = Parser.FromYaml(yamlContent); 21 | Assert.NotNull(parser); 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /UAParser.FormFactor.Tests/PgtsBrowserListResourceTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | 3 | namespace UAParser.FormFactor.Tests 4 | { 5 | [TestFixture] 6 | [Parallelizable] 7 | public class PgtsBrowserListResourceTests : ResourceTests 8 | { 9 | [Test] 10 | public void CanRunPgtsBrowserListTests() 11 | { 12 | RunTests("UAParser.FormFactor.Tests.Resources.pgts_browser_list.yaml", UserAgentYamlTestCase.ReadFromMap); 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /UAParser.FormFactor.Tests/PodcastingResourceTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | 3 | namespace UAParser.FormFactor.Tests 4 | { 5 | [TestFixture] 6 | [Parallelizable] 7 | public class PodcastingResourceTests : ResourceTests 8 | { 9 | [Test] 10 | public void CanRunPodcastingTests() 11 | { 12 | RunTests("UAParser.FormFactor.Tests.Resources.podcasting_user_agent_strings.yaml", UserAgentYamlTestCase.ReadFromMap); 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /UAParser.FormFactor.Tests/ResourceTests.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Text; 6 | using NUnit.Framework; 7 | using YamlDotNet.RepresentationModel; 8 | 9 | namespace UAParser.FormFactor.Tests 10 | { 11 | public class ResourceTests 12 | { 13 | public void RunTests(string resourceName, Func, TTestCase> testCaseFunction) where TTestCase : YamlTestCase 14 | { 15 | var testCases = GetTestCases(resourceName, "test_cases", testCaseFunction); 16 | 17 | RunTestCases(testCases); 18 | } 19 | 20 | private static void RunTestCases(List testCases) 21 | where TTestCase : YamlTestCase 22 | { 23 | var parser = Parser.GetDefault(); 24 | Assert.AreNotEqual(0, testCases.Count); 25 | 26 | var sb = new StringBuilder(); 27 | for (var i = 0; i < testCases.Count; i++) 28 | { 29 | var tc = testCases[i]; 30 | if (tc == null) 31 | { 32 | continue; 33 | } 34 | 35 | var clientInfo = parser.Parse(tc.UserAgent); 36 | try 37 | { 38 | tc.Verify(clientInfo); 39 | } 40 | catch (AssertionException ex) 41 | { 42 | sb.AppendLine("testcase " + (i + 1) + ": " + ex.Message); 43 | } 44 | } 45 | Assert.True(0 == sb.Length, "Failed tests: " + Environment.NewLine + sb); 46 | } 47 | 48 | public List GetTestCases(string resourceName, string yamlNodeName, Func, TTestCase> testCaseFunction) 49 | { 50 | var yamlContent = this.GetTestResources(resourceName); 51 | var yaml = new YamlStream(); 52 | yaml.Load(new StringReader(yamlContent)); 53 | 54 | //reading overall configurations 55 | var regexConfigNode = (YamlMappingNode) yaml.Documents[0].RootNode; 56 | var regexConfig = new Dictionary(); 57 | foreach (var entry in regexConfigNode.Children) 58 | { 59 | regexConfig.Add(((YamlScalarNode) entry.Key).Value, entry.Value); 60 | } 61 | 62 | var testCasesNode = (YamlSequenceNode) regexConfig[yamlNodeName]; 63 | var testCases = testCasesNode.ConvertToDictionaryList() 64 | .Select(configMap => 65 | { 66 | if (!configMap.ContainsKey("js_ua")) //we deliberatly skip tests with js-user agents 67 | { 68 | return testCaseFunction(configMap); 69 | } 70 | 71 | return default(TTestCase); 72 | }) 73 | .ToList(); 74 | return testCases; 75 | } 76 | } 77 | } -------------------------------------------------------------------------------- /UAParser.FormFactor.Tests/Resources/additional_os_tests.yaml: -------------------------------------------------------------------------------- 1 | test_cases: 2 | 3 | - user_agent_string: 'Mozilla/5.0 (Linux; U; Android Donut; de-de; HTC Tattoo 1.52.161.1 Build/Donut) AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2 Mobile Safari/525.20.1' 4 | family: 'Android' 5 | major: '1' 6 | minor: '2' 7 | patch: 8 | patch_minor: 9 | 10 | - user_agent_string: 'Mozilla/5.0 (Linux; U; Android 2.1-update1; en-us; Nexus One Build/ERE27) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17,gzip(gfe),gzip(gfe)' 11 | family: 'Android' 12 | major: '2' 13 | minor: '1' 14 | patch: 'update1' 15 | patch_minor: 16 | 17 | - user_agent_string: 'BlackBerry9000/4.6.0.167 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/102' 18 | family: 'BlackBerry OS' 19 | major: '4' 20 | minor: '6' 21 | patch: '0' 22 | patch_minor: '167' 23 | 24 | - user_agent_string: 'Mozilla/5.0 (BlackBerry; U; BlackBerry 9780; en) AppleWebKit/534.8+ (KHTML, like Gecko) Version/6.0.0.526 Mobile Safari/534.8+,gzip(gfe),gzip(gfe),gzip(gfe)' 25 | family: 'BlackBerry OS' 26 | major: '6' 27 | minor: '0' 28 | patch: '0' 29 | patch_minor: '526' 30 | 31 | - user_agent_string: 'Mozilla/5.0 (X11; 78; CentOS; US-en) AppleWebKit/527+ (KHTML, like Gecko) Bolt/0.862 Version/3.0 Safari/523.15' 32 | family: 'CentOS' 33 | major: 34 | minor: 35 | patch: 36 | patch_minor: 37 | 38 | - user_agent_string: 'Mozilla/5.0 (X11; CrOS i686 13.587.80) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.99 Safari/535.1' 39 | family: 'Chrome OS' 40 | major: '13' 41 | minor: '587' 42 | patch: '80' 43 | patch_minor: 44 | 45 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux x86_64; cs-CZ; rv:1.9.0.4) Gecko/2008111217 Fedora/3.0.4-1.fc9 Firefox/3.0.4' 46 | family: 'Fedora' 47 | major: '3' 48 | minor: '0' 49 | patch: '4' 50 | patch_minor: 51 | 52 | - user_agent_string: 'Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.77 Large Screen Safari/534.24 GoogleTV/000000' 53 | family: 'GoogleTV' 54 | major: 55 | minor: 56 | patch: 57 | patch_minor: 58 | 59 | - user_agent_string: 'Mozilla/5.0 (X11; U: Linux i686; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.127 Large Screen Safari/533.4 GoogleTV/b39389' 60 | family: 'GoogleTV' 61 | major: 62 | minor: 63 | patch: 64 | patch_minor: 65 | 66 | - user_agent_string: 'Mozilla/5.0 (Linux; GoogleTV 4.0.4; LG Google TV Build/000000) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.77 Safari/534.24' 67 | family: 'GoogleTV' 68 | major: '4' 69 | minor: '0' 70 | patch: '4' 71 | patch_minor: 72 | 73 | - user_agent_string: 'Opera/9.80 (iPhone; Opera Mini/5.0.019802/21.572; U; en) Presto/2.5.25 Version/10.54' 74 | family: 'iOS' 75 | major: 76 | minor: 77 | patch: 78 | patch_minor: 79 | 80 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.8) Gecko/20100723 Linux Mint/9 (Isadora) Firefox/3.6.8' 81 | family: 'Linux Mint' 82 | major: '9' 83 | minor: 84 | patch: 85 | patch_minor: 86 | 87 | - user_agent_string: 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X Mach-O; en-en; rv:1.9.0.12) Gecko/2009070609 Firefox/3.0.12,gzip(gfe),gzip(gfe)' 88 | family: 'Mac OS X' 89 | major: 90 | minor: 91 | patch: 92 | patch_minor: 93 | 94 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.2) Gecko/20090807 Mandriva Linux/1.9.1.2-1.1mud2009.1 (2009.1) Firefox/3.5.2 FirePHP/0.3,gzip(gfe),gzip(gfe)' 95 | family: 'Mandriva' 96 | major: '2009' 97 | minor: '1' 98 | patch: 99 | patch_minor: 100 | 101 | - user_agent_string: '' 102 | family: 'Other' 103 | major: 104 | minor: 105 | patch: 106 | patch_minor: 107 | 108 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.14) Gecko/20110301 PCLinuxOS/1.9.2.14-1pclos2011 (2011) Firefox/3.6.14,gzip(gfe),gzip(gfe),gzip(gfe)' 109 | family: 'PCLinuxOS' 110 | major: '1' 111 | minor: '9' 112 | patch: '2' 113 | patch_minor: '14' 114 | 115 | - user_agent_string: 'Mozilla/5.0 ( U; Linux x86_32; en-US; rv:1.0) Gecko/20090723 Puppy/3.6.8-0.1.1 Firefox/3.6.7,gzip(gfe),gzip(gfe)' 116 | family: 'Puppy' 117 | major: '3' 118 | minor: '6' 119 | patch: '8' 120 | patch_minor: 121 | 122 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008072310 Red Hat/3.0.1-3.el4 Firefox/3.0.1,gzip(gfe),gzip(gfe)' 123 | family: 'Red Hat' 124 | major: '3' 125 | minor: '0' 126 | patch: '1' 127 | patch_minor: 128 | 129 | - user_agent_string: 'Opera/9.80 (X11; Linux x86_64; U; Slackware; lt) Presto/2.8.131 Version/11.11' 130 | family: 'Slackware' 131 | major: 132 | minor: 133 | patch: 134 | patch_minor: 135 | 136 | - user_agent_string: 'Opera/9.80 (S60; SymbOS; Opera Mobi/499; U; de) Presto/2.4.18 Version/10.00,gzip(gfe),gzip(gfe)' 137 | family: 'Symbian OS' 138 | major: 139 | minor: 140 | patch: 141 | patch_minor: 142 | 143 | - user_agent_string: 'Mozilla/5.0 (SymbianOS/9.2; U; Series60/3.1 NokiaN95/12.0.013; Profile/MIDP-2.0 Configuration/CLDC-1.1 ) AppleWebKit/413 (KHTML, like Gecko) Safari/413' 144 | family: 'Symbian OS' 145 | major: '9' 146 | minor: '2' 147 | patch: 148 | patch_minor: 149 | 150 | - user_agent_string: 'Mozilla/5.0 (Symbian/3; Series60/5.2 NokiaN8-00/010.022; Profile/MIDP-2.1 Configuration/CLDC-1.1 ) AppleWebKit/525 (KHTML, like Gecko) Version/3.0 BrowserNG/7.2.6.3 3gpp-gba,gzip(gfe),gzip(gfe)' 151 | family: 'Symbian^3' 152 | major: 153 | minor: 154 | patch: 155 | patch_minor: 156 | 157 | - user_agent_string: 'Mozilla/5.0 (compatible; MSIE 9.0; Windows Phone OS 7.5; Trident/5.0; IEMobile/9.0; SAMSUNG; SGH-i917)' 158 | family: 'Windows Phone' 159 | major: '7' 160 | minor: '5' 161 | patch: 162 | patch_minor: 163 | -------------------------------------------------------------------------------- /UAParser.FormFactor.Tests/Resources/custom_test_device.yaml: -------------------------------------------------------------------------------- 1 | test_cases: 2 | 3 | - user_agent_string: 'Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0' 4 | family: 'Windows' 5 | major: '8' 6 | minor: '1' 7 | patch: 8 | patch_minor: 9 | 10 | - user_agent_string: 'Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko' 11 | family: 'Windows' 12 | major: '8' 13 | minor: '1' 14 | patch: 15 | patch_minor: 16 | 17 | - user_agent_string: 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36' 18 | family: 'Windows' 19 | major: '8' 20 | minor: '1' 21 | patch: 22 | patch_minor: 23 | 24 | - user_agent_string: 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.81 Safari/537.36' 25 | family: 'Windows' 26 | major: '8' 27 | minor: '1' 28 | patch: 29 | patch_minor: 30 | 31 | - user_agent_string: 'Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; Touch; rv:11.0) like Gecko' 32 | family: 'Windows' 33 | major: '8' 34 | minor: '1' 35 | patch: 36 | patch_minor: 37 | 38 | - user_agent_string: 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36' 39 | family: 'Windows' 40 | major: '8' 41 | minor: '1' 42 | patch: 43 | patch_minor: 44 | 45 | - user_agent_string: 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36' 46 | family: 'Windows' 47 | major: '8' 48 | minor: '1' 49 | patch: 50 | patch_minor: 51 | 52 | - user_agent_string: 'Mozilla/5.0 (Windows NT 6.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36' 53 | family: 'Windows' 54 | major: '8' 55 | minor: '1' 56 | patch: 57 | patch_minor: -------------------------------------------------------------------------------- /UAParser.FormFactor.Tests/Resources/firefox_user_agent_strings.yaml: -------------------------------------------------------------------------------- 1 | # http://people.mozilla.com/~dwitte/ua.txt 2 | # 3 | # The following are some example User Agent strings for various versions of 4 | # Firefox and other Gecko-based browsers. Many of these have been modified by 5 | # extensions, external applications, distributions, and users. The version number 6 | # for Firefox 5.0 (and the corresponding Gecko version) is tentative. See 7 | # https://developer.mozilla.org/En/Gecko_User_Agent_String_Reference for more 8 | # details. Credit to http://useragentstring.com/ for providing some of these 9 | # strings. 10 | 11 | test_cases: 12 | 13 | - user_agent_string: 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en; rv:1.8.1.6) Gecko/20070809 Camino/1.5.1' 14 | family: 'Camino' 15 | major: '1' 16 | minor: '5' 17 | patch: '1' 18 | 19 | - user_agent_string: 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en; rv:1.8.1.6) Gecko/20070809 Camino/1.5.1' 20 | family: 'Camino' 21 | major: '1' 22 | minor: '5' 23 | patch: '1' 24 | 25 | - user_agent_string: 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en; rv:1.8.1.11) Gecko/20071128 Camino/1.5.4' 26 | family: 'Camino' 27 | major: '1' 28 | minor: '5' 29 | patch: '4' 30 | 31 | - user_agent_string: 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en; rv:1.8.1.12) Gecko/20080206 Camino/1.5.5' 32 | family: 'Camino' 33 | major: '1' 34 | minor: '5' 35 | patch: '5' 36 | 37 | - user_agent_string: 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X Mach-O; en; rv:1.8.1.12) Gecko/20080206 Camino/1.5.5' 38 | family: 'Camino' 39 | major: '1' 40 | minor: '5' 41 | patch: '5' 42 | 43 | - user_agent_string: 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; it; rv:1.8.1.21) Gecko/20090327 Camino/1.6.7 (MultiLang) (like Firefox/2.0.0.21pre)' 44 | family: 'Camino' 45 | major: '1' 46 | minor: '6' 47 | patch: '7' 48 | 49 | - user_agent_string: 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en; rv:1.8.1.21) Gecko/20090327 Camino/1.6.7 (like Firefox/2.0.0.21pre)' 50 | family: 'Camino' 51 | major: '1' 52 | minor: '6' 53 | patch: '7' 54 | 55 | - user_agent_string: 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en; rv:1.9.0.18) Gecko/2010021619 Camino/2.0.2 (like Firefox/3.0.18)' 56 | family: 'Camino' 57 | major: '2' 58 | minor: '0' 59 | patch: '2' 60 | 61 | - user_agent_string: 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en; rv:1.9.0.19) Gecko/2010051911 Camino/2.0.3 (like Firefox/3.0.19)' 62 | family: 'Camino' 63 | major: '2' 64 | minor: '0' 65 | patch: '3' 66 | 67 | - user_agent_string: 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; nl; rv:1.9.0.19) Gecko/2010051911 Camino/2.0.3 (MultiLang) (like Firefox/3.0.19)' 68 | family: 'Camino' 69 | major: '2' 70 | minor: '0' 71 | patch: '3' 72 | 73 | - user_agent_string: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.4; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 Camino/2.2.1' 74 | family: 'Camino' 75 | major: '2' 76 | minor: '2' 77 | patch: '1' 78 | 79 | - user_agent_string: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 Camino/2.2.1' 80 | family: 'Camino' 81 | major: '2' 82 | minor: '2' 83 | patch: '1' 84 | 85 | - user_agent_string: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 Camino/2.2.1' 86 | family: 'Camino' 87 | major: '2' 88 | minor: '2' 89 | patch: '1' 90 | 91 | - user_agent_string: 'Mozilla/5.0 (Macintosh; PPC Mac OS X 10.4; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 Camino/2.2.1' 92 | family: 'Camino' 93 | major: '2' 94 | minor: '2' 95 | patch: '1' 96 | 97 | - user_agent_string: 'Mozilla/5.0 (Macintosh; PPC Mac OS X 10.5; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 Camino/2.2.1' 98 | family: 'Camino' 99 | major: '2' 100 | minor: '2' 101 | patch: '1' 102 | 103 | - user_agent_string: 'Mozilla/5.0 (Windows NT 6.0; rv:2.0b6pre) Gecko/20100907 Firefox/4.0b6pre' 104 | family: 'Firefox Beta' 105 | major: '4' 106 | minor: '0' 107 | patch: 'b6pre' 108 | 109 | - user_agent_string: 'Mozilla/5.0 (Windows NT 6.0; rv:2.0b6pre) Gecko/20100907 Firefox/4.0b6pre' 110 | family: 'Firefox Beta' 111 | major: '4' 112 | minor: '0' 113 | patch: 'b6pre' 114 | 115 | - user_agent_string: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b6pre) Gecko/20100903 Firefox/4.0b6pre' 116 | family: 'Firefox Beta' 117 | major: '4' 118 | minor: '0' 119 | patch: 'b6pre' 120 | 121 | - user_agent_string: 'Mozilla/5.0 (Windows NT 6.1; rv:2.0b6pre) Gecko/20100903 Firefox/4.0b6pre Firefox/4.0b6pre' 122 | family: 'Firefox Beta' 123 | major: '4' 124 | minor: '0' 125 | patch: 'b6pre' 126 | 127 | - user_agent_string: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b6pre) Gecko/20100907 Firefox/4.0b6pre' 128 | family: 'Firefox Beta' 129 | major: '4' 130 | minor: '0' 131 | patch: 'b6pre' 132 | 133 | - user_agent_string: 'Mozilla/5.0 (X11; Linux i686; rv:2.0b6pre) Gecko/20100907 Firefox/4.0b6pre' 134 | family: 'Firefox Beta' 135 | major: '4' 136 | minor: '0' 137 | patch: 'b6pre' 138 | 139 | - user_agent_string: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b6pre) Gecko/20100907 Firefox/4.0b6pre' 140 | family: 'Firefox Beta' 141 | major: '4' 142 | minor: '0' 143 | patch: 'b6pre' 144 | 145 | - user_agent_string: 'Mozilla/5.0 (X11; Linux i686; rv:2.0b6pre) Gecko/20100907 Firefox/4.0b6pre' 146 | family: 'Firefox Beta' 147 | major: '4' 148 | minor: '0' 149 | patch: 'b6pre' 150 | 151 | - user_agent_string: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b6pre) Gecko/20100903 Firefox/4.0b6pre' 152 | family: 'Firefox Beta' 153 | major: '4' 154 | minor: '0' 155 | patch: 'b6pre' 156 | 157 | - user_agent_string: 'Mozilla/5.0 (Windows NT 6.1; rv:2.0b6pre) Gecko/20100903 Firefox/4.0b6pre Firefox/4.0b6pre' 158 | family: 'Firefox Beta' 159 | major: '4' 160 | minor: '0' 161 | patch: 'b6pre' 162 | 163 | - user_agent_string: 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3' 164 | family: 'Firefox' 165 | major: '3' 166 | minor: '5' 167 | patch: '3' 168 | 169 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux x86_64; fr; rv:1.9.1.6) Gecko/20091215 Ubuntu/9.10 (karmic) Firefox/3.5.6' 170 | family: 'Firefox' 171 | major: '3' 172 | minor: '5' 173 | patch: '6' 174 | 175 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.6) Gecko/20100117 Gentoo Firefox/3.5.6' 176 | family: 'Firefox' 177 | major: '3' 178 | minor: '5' 179 | patch: '6' 180 | 181 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.9.1.6) Gecko/20091216 Fedora/3.5.6-1.fc11 Firefox/3.5.6 GTB6' 182 | family: 'Firefox' 183 | major: '3' 184 | minor: '5' 185 | patch: '6' 186 | 187 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.9.1.6) Gecko/20091201 SUSE/3.5.6-1.1.1 Firefox/3.5.6 GTB6' 188 | family: 'Firefox' 189 | major: '3' 190 | minor: '5' 191 | patch: '6' 192 | 193 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.6) Gecko/20100118 Gentoo Firefox/3.5.6' 194 | family: 'Firefox' 195 | major: '3' 196 | minor: '5' 197 | patch: '6' 198 | 199 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.1.6) Gecko/20091215 Ubuntu/9.10 (karmic) Firefox/3.5.6 GTB6' 200 | family: 'Firefox' 201 | major: '3' 202 | minor: '5' 203 | patch: '6' 204 | 205 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.6) Gecko/20091215 Ubuntu/9.10 (karmic) Firefox/3.5.6 GTB7.0' 206 | family: 'Firefox' 207 | major: '3' 208 | minor: '5' 209 | patch: '6' 210 | 211 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.6) Gecko/20091215 Ubuntu/9.10 (karmic) Firefox/3.5.6' 212 | family: 'Firefox' 213 | major: '3' 214 | minor: '5' 215 | patch: '6' 216 | 217 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.6) Gecko/20091201 SUSE/3.5.6-1.1.1 Firefox/3.5.6' 218 | family: 'Firefox' 219 | major: '3' 220 | minor: '5' 221 | patch: '6' 222 | 223 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; cs-CZ; rv:1.9.1.6) Gecko/20100107 Fedora/3.5.6-1.fc12 Firefox/3.5.6' 224 | family: 'Firefox' 225 | major: '3' 226 | minor: '5' 227 | patch: '6' 228 | 229 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; ca; rv:1.9.1.6) Gecko/20091215 Ubuntu/9.10 (karmic) Firefox/3.5.6' 230 | family: 'Firefox' 231 | major: '3' 232 | minor: '5' 233 | patch: '6' 234 | 235 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; it; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6' 236 | family: 'Firefox' 237 | major: '3' 238 | minor: '5' 239 | patch: '6' 240 | 241 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 ( .NET CLR 3.5.30729)' 242 | family: 'Firefox' 243 | major: '3' 244 | minor: '5' 245 | patch: '6' 246 | 247 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.0; id; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729)' 248 | family: 'Firefox' 249 | major: '3' 250 | minor: '5' 251 | patch: '6' 252 | 253 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.6) Gecko/20091201 MRA 5.4 (build 02647) Firefox/3.5.6 (.NET CLR 3.5.30729)' 254 | family: 'Firefox' 255 | major: '3' 256 | minor: '5' 257 | patch: '6' 258 | 259 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)' 260 | family: 'Firefox' 261 | major: '3' 262 | minor: '5' 263 | patch: '6' 264 | 265 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.6) Gecko/20091201 MRA 5.5 (build 02842) Firefox/3.5.6 (.NET CLR 3.5.30729)' 266 | family: 'Firefox' 267 | major: '3' 268 | minor: '5' 269 | patch: '6' 270 | 271 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.6) Gecko/20091201 MRA 5.5 (build 02842) Firefox/3.5.6' 272 | family: 'Firefox' 273 | major: '3' 274 | minor: '5' 275 | patch: '6' 276 | 277 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 GTB6 (.NET CLR 3.5.30729) FBSMTWB' 278 | family: 'Firefox' 279 | major: '3' 280 | minor: '5' 281 | patch: '6' 282 | 283 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729) FBSMTWB' 284 | family: 'Firefox' 285 | major: '3' 286 | minor: '5' 287 | patch: '6' 288 | 289 | - user_agent_string: 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729)' 290 | family: 'Firefox' 291 | major: '3' 292 | minor: '5' 293 | patch: '6' 294 | 295 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2) Gecko/20100305 Gentoo Firefox/3.5.7' 296 | family: 'Firefox' 297 | major: '3' 298 | minor: '5' 299 | patch: '7' 300 | 301 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux x86_64; cs-CZ; rv:1.9.1.7) Gecko/20100106 Ubuntu/9.10 (karmic) Firefox/3.5.7' 302 | family: 'Firefox' 303 | major: '3' 304 | minor: '5' 305 | patch: '7' 306 | 307 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.9.1.7) Gecko/20091222 SUSE/3.5.7-1.1.1 Firefox/3.5.7' 308 | family: 'Firefox' 309 | major: '3' 310 | minor: '5' 311 | patch: '7' 312 | 313 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.0; ja; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 GTB6' 314 | family: 'Firefox' 315 | major: '3' 316 | minor: '5' 317 | patch: '7' 318 | 319 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)' 320 | family: 'Firefox' 321 | major: '3' 322 | minor: '5' 323 | patch: '7' 324 | 325 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.2; fr; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.0.04506.648)' 326 | family: 'Firefox' 327 | major: '3' 328 | minor: '5' 329 | patch: '7' 330 | 331 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; fa; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7' 332 | family: 'Firefox' 333 | major: '3' 334 | minor: '5' 335 | patch: '7' 336 | 337 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20091221 MRA 5.5 (build 02842) Firefox/3.5.7 (.NET CLR 3.5.30729)' 338 | family: 'Firefox' 339 | major: '3' 340 | minor: '5' 341 | patch: '7' 342 | 343 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux x86_64; ru; rv:1.9.1.8) Gecko/20100216 Fedora/3.5.8-1.fc12 Firefox/3.5.8' 344 | family: 'Firefox' 345 | major: '3' 346 | minor: '5' 347 | patch: '8' 348 | 349 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux x86_64; es-ES; rv:1.9.1.8) Gecko/20100216 Fedora/3.5.8-1.fc11 Firefox/3.5.8' 350 | family: 'Firefox' 351 | major: '3' 352 | minor: '5' 353 | patch: '8' 354 | 355 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100318 Gentoo Firefox/3.5.8' 356 | family: 'Firefox' 357 | major: '3' 358 | minor: '5' 359 | patch: '8' 360 | 361 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.9.1.8) Gecko/20100216 Fedora/3.5.8-1.fc12 Firefox/3.5.8' 362 | family: 'Firefox' 363 | major: '3' 364 | minor: '5' 365 | patch: '8' 366 | 367 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; ja-JP; rv:1.9.1.8) Gecko/20100216 Fedora/3.5.8-1.fc12 Firefox/3.5.8' 368 | family: 'Firefox' 369 | major: '3' 370 | minor: '5' 371 | patch: '8' 372 | 373 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; es-AR; rv:1.9.1.8) Gecko/20100214 Ubuntu/9.10 (karmic) Firefox/3.5.8' 374 | family: 'Firefox' 375 | major: '3' 376 | minor: '5' 377 | patch: '8' 378 | 379 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.8) Gecko/20100214 Ubuntu/9.10 (karmic) Firefox/3.5.8' 380 | family: 'Firefox' 381 | major: '3' 382 | minor: '5' 383 | patch: '8' 384 | 385 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8' 386 | family: 'Firefox' 387 | major: '3' 388 | minor: '5' 389 | patch: '8' 390 | 391 | - user_agent_string: 'Mozilla/5.0 (X11; U; FreeBSD i386; ja-JP; rv:1.9.1.8) Gecko/20100305 Firefox/3.5.8' 392 | family: 'Firefox' 393 | major: '3' 394 | minor: '5' 395 | patch: '8' 396 | 397 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; sl; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8' 398 | family: 'Firefox' 399 | major: '3' 400 | minor: '5' 401 | patch: '8' 402 | 403 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8 (.NET CLR 3.5.30729) FirePHP/0.4' 404 | family: 'Firefox' 405 | major: '3' 406 | minor: '5' 407 | patch: '8' 408 | 409 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8 GTB6' 410 | family: 'Firefox' 411 | major: '3' 412 | minor: '5' 413 | patch: '8' 414 | 415 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8 GTB7.0 (.NET CLR 3.5.30729)' 416 | family: 'Firefox' 417 | major: '3' 418 | minor: '5' 419 | patch: '8' 420 | 421 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux x86_64; it; rv:1.9.1.9) Gecko/20100402 Ubuntu/9.10 (karmic) Firefox/3.5.9 (.NET CLR 3.5.30729)' 422 | family: 'Firefox' 423 | major: '3' 424 | minor: '5' 425 | patch: '9' 426 | 427 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux x86_64; it; rv:1.9.1.9) Gecko/20100330 Fedora/3.5.9-2.fc12 Firefox/3.5.9' 428 | family: 'Firefox' 429 | major: '3' 430 | minor: '5' 431 | patch: '9' 432 | 433 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux x86_64; fr; rv:1.9.1.9) Gecko/20100317 SUSE/3.5.9-0.1.1 Firefox/3.5.9 GTB7.0' 434 | family: 'Firefox' 435 | major: '3' 436 | minor: '5' 437 | patch: '9' 438 | 439 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux x86_64; es-CL; rv:1.9.1.9) Gecko/20100402 Ubuntu/9.10 (karmic) Firefox/3.5.9' 440 | family: 'Firefox' 441 | major: '3' 442 | minor: '5' 443 | patch: '9' 444 | 445 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux x86_64; cs-CZ; rv:1.9.1.9) Gecko/20100317 SUSE/3.5.9-0.1.1 Firefox/3.5.9' 446 | family: 'Firefox' 447 | major: '3' 448 | minor: '5' 449 | patch: '9' 450 | 451 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; nl; rv:1.9.1.9) Gecko/20100401 Ubuntu/9.10 (karmic) Firefox/3.5.9' 452 | family: 'Firefox' 453 | major: '3' 454 | minor: '5' 455 | patch: '9' 456 | 457 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; hu-HU; rv:1.9.1.9) Gecko/20100330 Fedora/3.5.9-1.fc12 Firefox/3.5.9' 458 | family: 'Firefox' 459 | major: '3' 460 | minor: '5' 461 | patch: '9' 462 | 463 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.9.1.9) Gecko/20100317 SUSE/3.5.9-0.1 Firefox/3.5.9' 464 | family: 'Firefox' 465 | major: '3' 466 | minor: '5' 467 | patch: '9' 468 | 469 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100401 Ubuntu/9.10 (karmic) Firefox/3.5.9 GTB7.1' 470 | family: 'Firefox' 471 | major: '3' 472 | minor: '5' 473 | patch: '9' 474 | 475 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100315 Ubuntu/9.10 (karmic) Firefox/3.5.9' 476 | family: 'Firefox' 477 | major: '3' 478 | minor: '5' 479 | patch: '9' 480 | 481 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.4) Gecko/20091028 Ubuntu/9.10 (karmic) Firefox/3.5.9' 482 | family: 'Firefox' 483 | major: '3' 484 | minor: '5' 485 | patch: '9' 486 | 487 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; tr; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9 GTB7.1' 488 | family: 'Firefox' 489 | major: '3' 490 | minor: '5' 491 | patch: '9' 492 | 493 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; hu; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9 (.NET CLR 3.5.30729)' 494 | family: 'Firefox' 495 | major: '3' 496 | minor: '5' 497 | patch: '9' 498 | 499 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; fr; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9' 500 | family: 'Firefox' 501 | major: '3' 502 | minor: '5' 503 | patch: '9' 504 | 505 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; et; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9' 506 | family: 'Firefox' 507 | major: '3' 508 | minor: '5' 509 | patch: '9' 510 | 511 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9' 512 | family: 'Firefox' 513 | major: '3' 514 | minor: '5' 515 | patch: '9' 516 | 517 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.0; nl; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9 ( .NET CLR 3.5.30729)' 518 | family: 'Firefox' 519 | major: '3' 520 | minor: '5' 521 | patch: '9' 522 | 523 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.0; es-ES; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9 GTB5 (.NET CLR 3.5.30729)' 524 | family: 'Firefox' 525 | major: '3' 526 | minor: '5' 527 | patch: '9' 528 | 529 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9 GTB7.0 (.NET CLR 3.0.30618)' 530 | family: 'Firefox' 531 | major: '3' 532 | minor: '5' 533 | patch: '9' 534 | 535 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.0; ca; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9 GTB7.0 ( .NET CLR 3.5.30729)' 536 | family: 'Firefox' 537 | major: '3' 538 | minor: '5' 539 | patch: '9' 540 | 541 | - user_agent_string: 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.7; en-US; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2' 542 | family: 'Firefox' 543 | major: '3' 544 | minor: '6' 545 | patch: '2' 546 | 547 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux x86_64; fr; rv:1.9.2.3) Gecko/20100403 Fedora/3.6.3-4.fc13 Firefox/3.6.3' 548 | family: 'Firefox' 549 | major: '3' 550 | minor: '6' 551 | patch: '3' 552 | 553 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; es-ES; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 GTB7.0 ( .NET CLR 3.5.30729)' 554 | family: 'Firefox' 555 | major: '3' 556 | minor: '6' 557 | patch: '3' 558 | 559 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; es-ES; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3' 560 | family: 'Firefox' 561 | major: '3' 562 | minor: '6' 563 | patch: '3' 564 | 565 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)' 566 | family: 'Firefox' 567 | major: '3' 568 | minor: '6' 569 | patch: '3' 570 | 571 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; cs; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729)' 572 | family: 'Firefox' 573 | major: '3' 574 | minor: '6' 575 | patch: '3' 576 | 577 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; ca; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)' 578 | family: 'Firefox' 579 | major: '3' 580 | minor: '6' 581 | patch: '3' 582 | 583 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.0; sv-SE; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)' 584 | family: 'Firefox' 585 | major: '3' 586 | minor: '6' 587 | patch: '3' 588 | 589 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.0; pl; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)' 590 | family: 'Firefox' 591 | major: '3' 592 | minor: '6' 593 | patch: '3' 594 | 595 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.0; nl; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)' 596 | family: 'Firefox' 597 | major: '3' 598 | minor: '6' 599 | patch: '3' 600 | 601 | - user_agent_string: 'Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.9.2.3) Gecko/20100403 Firefox/3.6.3' 602 | family: 'Firefox' 603 | major: '3' 604 | minor: '6' 605 | patch: '3' 606 | 607 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.3) Gecko/20100403 Firefox/3.6.3' 608 | family: 'Firefox' 609 | major: '3' 610 | minor: '6' 611 | patch: '3' 612 | 613 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.3) Gecko/20100401 SUSE/3.6.3-1.1 Firefox/3.6.3' 614 | family: 'Firefox' 615 | major: '3' 616 | minor: '6' 617 | patch: '3' 618 | 619 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; ko-KR; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3' 620 | family: 'Firefox' 621 | major: '3' 622 | minor: '6' 623 | patch: '3' 624 | 625 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.3) Gecko/20100404 Ubuntu/10.04 (lucid) Firefox/3.6.3' 626 | family: 'Firefox' 627 | major: '3' 628 | minor: '6' 629 | patch: '3' 630 | 631 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3' 632 | family: 'Firefox' 633 | major: '3' 634 | minor: '6' 635 | patch: '3' 636 | 637 | - user_agent_string: 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3' 638 | family: 'Firefox' 639 | major: '3' 640 | minor: '6' 641 | patch: '3' 642 | 643 | - user_agent_string: 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; es-ES; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3' 644 | family: 'Firefox' 645 | major: '3' 646 | minor: '6' 647 | patch: '3' 648 | 649 | - user_agent_string: 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 GTB7.0' 650 | family: 'Firefox' 651 | major: '3' 652 | minor: '6' 653 | patch: '3' 654 | 655 | - user_agent_string: 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3' 656 | family: 'Firefox' 657 | major: '3' 658 | minor: '6' 659 | patch: '3' 660 | 661 | - user_agent_string: 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3' 662 | family: 'Firefox' 663 | major: '3' 664 | minor: '6' 665 | patch: '3' 666 | 667 | - user_agent_string: 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; nl; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3' 668 | family: 'Firefox' 669 | major: '3' 670 | minor: '6' 671 | patch: '3' 672 | 673 | - user_agent_string: 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; fr; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3' 674 | family: 'Firefox' 675 | major: '3' 676 | minor: '6' 677 | patch: '3' 678 | 679 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)' 680 | family: 'Firefox' 681 | major: '3' 682 | minor: '6' 683 | patch: '3' 684 | 685 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3' 686 | family: 'Firefox' 687 | major: '3' 688 | minor: '6' 689 | patch: '3' 690 | 691 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; pl; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3' 692 | family: 'Firefox' 693 | major: '3' 694 | minor: '6' 695 | patch: '3' 696 | 697 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; it; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3' 698 | family: 'Firefox' 699 | major: '3' 700 | minor: '6' 701 | patch: '3' 702 | 703 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; hu; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 GTB7.1' 704 | family: 'Firefox' 705 | major: '3' 706 | minor: '6' 707 | patch: '3' 708 | 709 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; es-ES; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 GTB7.1' 710 | family: 'Firefox' 711 | major: '3' 712 | minor: '6' 713 | patch: '3' 714 | 715 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.4) Gecko/20100614 Ubuntu/10.04 (lucid) Firefox/3.6.4' 716 | family: 'Firefox' 717 | major: '3' 718 | minor: '6' 719 | patch: '4' 720 | 721 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.4) Gecko/20100625 Gentoo Firefox/3.6.4' 722 | family: 'Firefox' 723 | major: '3' 724 | minor: '6' 725 | patch: '4' 726 | 727 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2.4) Gecko/20100513 Firefox/3.6.4' 728 | family: 'Firefox' 729 | major: '3' 730 | minor: '6' 731 | patch: '4' 732 | 733 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; ja; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4 GTB7.1' 734 | family: 'Firefox' 735 | major: '3' 736 | minor: '6' 737 | patch: '4' 738 | 739 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; cs; rv:1.9.2.4) Gecko/20100513 Firefox/3.6.4 (.NET CLR 3.5.30729)' 740 | family: 'Firefox' 741 | major: '3' 742 | minor: '6' 743 | patch: '4' 744 | 745 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.0; zh-CN; rv:1.9.2.4) Gecko/20100513 Firefox/3.6.4' 746 | family: 'Firefox' 747 | major: '3' 748 | minor: '6' 749 | patch: '4' 750 | 751 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.0; ja; rv:1.9.2.4) Gecko/20100513 Firefox/3.6.4 ( .NET CLR 3.5.30729)' 752 | family: 'Firefox' 753 | major: '3' 754 | minor: '6' 755 | patch: '4' 756 | 757 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.0; fr; rv:1.9.2.4) Gecko/20100523 Firefox/3.6.4 ( .NET CLR 3.5.30729)' 758 | family: 'Firefox' 759 | major: '3' 760 | minor: '6' 761 | patch: '4' 762 | 763 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.4) Gecko/20100527 Firefox/3.6.4 (.NET CLR 3.5.30729)' 764 | family: 'Firefox' 765 | major: '3' 766 | minor: '6' 767 | patch: '4' 768 | 769 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.4) Gecko/20100527 Firefox/3.6.4' 770 | family: 'Firefox' 771 | major: '3' 772 | minor: '6' 773 | patch: '4' 774 | 775 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.4) Gecko/20100523 Firefox/3.6.4 ( .NET CLR 3.5.30729)' 776 | family: 'Firefox' 777 | major: '3' 778 | minor: '6' 779 | patch: '4' 780 | 781 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.4) Gecko/20100513 Firefox/3.6.4 (.NET CLR 3.5.30729)' 782 | family: 'Firefox' 783 | major: '3' 784 | minor: '6' 785 | patch: '4' 786 | 787 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-CA; rv:1.9.2.4) Gecko/20100523 Firefox/3.6.4' 788 | family: 'Firefox' 789 | major: '3' 790 | minor: '6' 791 | patch: '4' 792 | 793 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4 GTB7.0 ( .NET CLR 3.5.30729)' 794 | family: 'Firefox' 795 | major: '3' 796 | minor: '6' 797 | patch: '4' 798 | 799 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.2.4) Gecko/20100513 Firefox/3.6.4 (.NET CLR 3.5.30729)' 800 | family: 'Firefox' 801 | major: '3' 802 | minor: '6' 803 | patch: '4' 804 | 805 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.2.4) Gecko/20100503 Firefox/3.6.4 ( .NET CLR 3.5.30729)' 806 | family: 'Firefox' 807 | major: '3' 808 | minor: '6' 809 | patch: '4' 810 | 811 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; nb-NO; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4 (.NET CLR 3.5.30729)' 812 | family: 'Firefox' 813 | major: '3' 814 | minor: '6' 815 | patch: '4' 816 | 817 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; ko; rv:1.9.2.4) Gecko/20100523 Firefox/3.6.4' 818 | family: 'Firefox' 819 | major: '3' 820 | minor: '6' 821 | patch: '4' 822 | 823 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; cs; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4' 824 | family: 'Firefox' 825 | major: '3' 826 | minor: '6' 827 | patch: '4' 828 | 829 | - user_agent_string: 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; en-US; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4 GTB7.0' 830 | family: 'Firefox' 831 | major: '3' 832 | minor: '6' 833 | patch: '4' 834 | 835 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.6) Gecko/20100628 Ubuntu/10.04 (lucid) Firefox/3.6.6 GTB7.1' 836 | family: 'Firefox' 837 | major: '3' 838 | minor: '6' 839 | patch: '6' 840 | 841 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.6) Gecko/20100628 Ubuntu/10.04 (lucid) Firefox/3.6.6 GTB7.0' 842 | family: 'Firefox' 843 | major: '3' 844 | minor: '6' 845 | patch: '6' 846 | 847 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.6) Gecko/20100628 Ubuntu/10.04 (lucid) Firefox/3.6.6 (.NET CLR 3.5.30729)' 848 | family: 'Firefox' 849 | major: '3' 850 | minor: '6' 851 | patch: '6' 852 | 853 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.6) Gecko/20100628 Ubuntu/10.04 (lucid) Firefox/3.6.6' 854 | family: 'Firefox' 855 | major: '3' 856 | minor: '6' 857 | patch: '6' 858 | 859 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; pt-PT; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6' 860 | family: 'Firefox' 861 | major: '3' 862 | minor: '6' 863 | patch: '6' 864 | 865 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; it; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 ( .NET CLR 3.5.30729)' 866 | family: 'Firefox' 867 | major: '3' 868 | minor: '6' 869 | patch: '6' 870 | 871 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 (.NET CLR 3.5.30729)' 872 | family: 'Firefox' 873 | major: '3' 874 | minor: '6' 875 | patch: '6' 876 | 877 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.0; zh-CN; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 GTB7.1' 878 | family: 'Firefox' 879 | major: '3' 880 | minor: '6' 881 | patch: '6' 882 | 883 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.0; nl; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6' 884 | family: 'Firefox' 885 | major: '3' 886 | minor: '6' 887 | patch: '6' 888 | 889 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 ( .NET CLR 3.5.30729; .NET4.0E)' 890 | family: 'Firefox' 891 | major: '3' 892 | minor: '6' 893 | patch: '6' 894 | 895 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100723 Fedora/3.6.7-1.fc13 Firefox/3.6.7' 896 | family: 'Firefox' 897 | major: '3' 898 | minor: '6' 899 | patch: '7' 900 | 901 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.7) Gecko/20100726 CentOS/3.6-3.el5.centos Firefox/3.6.7' 902 | family: 'Firefox' 903 | major: '3' 904 | minor: '6' 905 | patch: '7' 906 | 907 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; hu; rv:1.9.2.7) Gecko/20100713 Firefox/3.6.7 GTB7.1' 908 | family: 'Firefox' 909 | major: '3' 910 | minor: '6' 911 | patch: '7' 912 | 913 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-PT; rv:1.9.2.7) Gecko/20100713 Firefox/3.6.7 (.NET CLR 3.5.30729)' 914 | family: 'Firefox' 915 | major: '3' 916 | minor: '6' 917 | patch: '7' 918 | 919 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100804 Gentoo Firefox/3.6.8' 920 | family: 'Firefox' 921 | major: '3' 922 | minor: '6' 923 | patch: '8' 924 | 925 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100723 SUSE/3.6.8-0.1.1 Firefox/3.6.8' 926 | family: 'Firefox' 927 | major: '3' 928 | minor: '6' 929 | patch: '8' 930 | 931 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.9.2.8) Gecko/20100722 Ubuntu/10.04 (lucid) Firefox/3.6.8' 932 | family: 'Firefox' 933 | major: '3' 934 | minor: '6' 935 | patch: '8' 936 | 937 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.2.8) Gecko/20100723 Ubuntu/10.04 (lucid) Firefox/3.6.8' 938 | family: 'Firefox' 939 | major: '3' 940 | minor: '6' 941 | patch: '8' 942 | 943 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; fi-FI; rv:1.9.2.8) Gecko/20100723 Ubuntu/10.04 (lucid) Firefox/3.6.8' 944 | family: 'Firefox' 945 | major: '3' 946 | minor: '6' 947 | patch: '8' 948 | 949 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.8) Gecko/20100727 Firefox/3.6.8' 950 | family: 'Firefox' 951 | major: '3' 952 | minor: '6' 953 | patch: '8' 954 | 955 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; de-DE; rv:1.9.2.8) Gecko/20100725 Gentoo Firefox/3.6.8' 956 | family: 'Firefox' 957 | major: '3' 958 | minor: '6' 959 | patch: '8' 960 | 961 | - user_agent_string: 'Mozilla/5.0 (X11; U; FreeBSD i386; de-CH; rv:1.9.2.8) Gecko/20100729 Firefox/3.6.8' 962 | family: 'Firefox' 963 | major: '3' 964 | minor: '6' 965 | patch: '8' 966 | 967 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8' 968 | family: 'Firefox' 969 | major: '3' 970 | minor: '6' 971 | patch: '8' 972 | 973 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; pt-BR; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 GTB7.1' 974 | family: 'Firefox' 975 | major: '3' 976 | minor: '6' 977 | patch: '8' 978 | 979 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; he; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8' 980 | family: 'Firefox' 981 | major: '3' 982 | minor: '6' 983 | patch: '8' 984 | 985 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; fr; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 GTB7.1' 986 | family: 'Firefox' 987 | major: '3' 988 | minor: '6' 989 | patch: '8' 990 | 991 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729; .NET4.0C)' 992 | family: 'Firefox' 993 | major: '3' 994 | minor: '6' 995 | patch: '8' 996 | 997 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8' 998 | family: 'Firefox' 999 | major: '3' 1000 | minor: '6' 1001 | patch: '8' 1002 | 1003 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.3) Gecko/20121221 Firefox/3.6.8' 1004 | family: 'Firefox' 1005 | major: '3' 1006 | minor: '6' 1007 | patch: '8' 1008 | 1009 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.8) Gecko/20100722 BTRS86393 Firefox/3.6.8 ( .NET CLR 3.5.30729; .NET4.0C)' 1010 | family: 'Firefox' 1011 | major: '3' 1012 | minor: '6' 1013 | patch: '8' 1014 | 1015 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.2; zh-TW; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8' 1016 | family: 'Firefox' 1017 | major: '3' 1018 | minor: '6' 1019 | patch: '8' 1020 | 1021 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8' 1022 | family: 'Firefox' 1023 | major: '3' 1024 | minor: '6' 1025 | patch: '8' 1026 | 1027 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; tr; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729; .NET4.0E)' 1028 | family: 'Firefox' 1029 | major: '3' 1030 | minor: '6' 1031 | patch: '8' 1032 | 1033 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; ro; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8' 1034 | family: 'Firefox' 1035 | major: '3' 1036 | minor: '6' 1037 | patch: '8' 1038 | 1039 | - user_agent_string: 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en; rv:1.9.2.8) Gecko/20100805 Firefox/3.6.8' 1040 | family: 'Firefox' 1041 | major: '3' 1042 | minor: '6' 1043 | patch: '8' 1044 | 1045 | - user_agent_string: 'Mozilla/5.0 (Windows NT 5.2; rv:2.0.1) Gecko/20100101 Firefox/4.0.1' 1046 | family: 'Firefox' 1047 | major: '4' 1048 | minor: '0' 1049 | patch: '1' 1050 | 1051 | - user_agent_string: 'Mozilla/5.0 (X11; Linux i686; rv:2.0.1) Gecko/20100101 Firefox/4.0.1' 1052 | family: 'Firefox' 1053 | major: '4' 1054 | minor: '0' 1055 | patch: '1' 1056 | 1057 | - user_agent_string: 'Mozilla/5.0 (X11; Linux x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1' 1058 | family: 'Firefox' 1059 | major: '4' 1060 | minor: '0' 1061 | patch: '1' 1062 | 1063 | - user_agent_string: 'Mozilla/5.0 (X11; Linux i686 on x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1' 1064 | family: 'Firefox' 1065 | major: '4' 1066 | minor: '0' 1067 | patch: '1' 1068 | 1069 | - user_agent_string: 'Mozilla/5.0 (X11; Linux armv7l; rv:2.0.1) Gecko/20100101 Firefox/4.0.1' 1070 | family: 'Firefox' 1071 | major: '4' 1072 | minor: '0' 1073 | patch: '1' 1074 | 1075 | - user_agent_string: 'Mozilla/5.0 (Windows NT 6.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1' 1076 | family: 'Firefox' 1077 | major: '4' 1078 | minor: '0' 1079 | patch: '1' 1080 | 1081 | - user_agent_string: 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1' 1082 | family: 'Firefox' 1083 | major: '4' 1084 | minor: '0' 1085 | patch: '1' 1086 | 1087 | - user_agent_string: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1' 1088 | family: 'Firefox' 1089 | major: '4' 1090 | minor: '0' 1091 | patch: '1' 1092 | 1093 | - user_agent_string: 'Mozilla/5.0 (WindowsCE 6.0; rv:2.0.1) Gecko/20100101 Firefox/4.0.1' 1094 | family: 'Firefox' 1095 | major: '4' 1096 | minor: '0' 1097 | patch: '1' 1098 | 1099 | - user_agent_string: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:2.0.1) Gecko/20100101 Firefox/4.0.1' 1100 | family: 'Firefox' 1101 | major: '4' 1102 | minor: '0' 1103 | patch: '1' 1104 | 1105 | - user_agent_string: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0.1) Gecko/20100101 Firefox/4.0.1' 1106 | family: 'Firefox' 1107 | major: '4' 1108 | minor: '0' 1109 | patch: '1' 1110 | 1111 | - user_agent_string: 'Mozilla/5.0 (Windows NT 5.2; rv:2.1.1) Gecko/ Firefox/5.0.1' 1112 | family: 'Firefox' 1113 | major: '5' 1114 | minor: '0' 1115 | patch: '1' 1116 | 1117 | - user_agent_string: 'Mozilla/5.0 (Windows NT 5.2; rv:2.0.1) Gecko Firefox/5.0.1' 1118 | family: 'Firefox' 1119 | major: '5' 1120 | minor: '0' 1121 | patch: '1' 1122 | 1123 | - user_agent_string: 'Mozilla/5.0 (Windows NT 6.1; rv:2.0.1) Gecko Firefox/5.0.1' 1124 | family: 'Firefox' 1125 | major: '5' 1126 | minor: '0' 1127 | patch: '1' 1128 | 1129 | - user_agent_string: 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:2.0.1) Gecko Firefox/5.0.1' 1130 | family: 'Firefox' 1131 | major: '5' 1132 | minor: '0' 1133 | patch: '1' 1134 | 1135 | - user_agent_string: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko Firefox/5.0.1' 1136 | family: 'Firefox' 1137 | major: '5' 1138 | minor: '0' 1139 | patch: '1' 1140 | 1141 | - user_agent_string: 'Mozilla/5.0 (WindowsCE 6.0; rv:2.0.1) Gecko Firefox/5.0.1' 1142 | family: 'Firefox' 1143 | major: '5' 1144 | minor: '0' 1145 | patch: '1' 1146 | 1147 | - user_agent_string: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:2.0.1) Gecko Firefox/5.0.1' 1148 | family: 'Firefox' 1149 | major: '5' 1150 | minor: '0' 1151 | patch: '1' 1152 | 1153 | - user_agent_string: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0.1) Gecko Firefox/5.0.1' 1154 | family: 'Firefox' 1155 | major: '5' 1156 | minor: '0' 1157 | patch: '1' 1158 | 1159 | - user_agent_string: 'Mozilla/5.0 (X11; Linux i686; rv:2.0.1) Gecko Firefox/5.0.1' 1160 | family: 'Firefox' 1161 | major: '5' 1162 | minor: '0' 1163 | patch: '1' 1164 | 1165 | - user_agent_string: 'Mozilla/5.0 (X11; Linux x86_64; rv:2.0.1) Gecko Firefox/5.0.1' 1166 | family: 'Firefox' 1167 | major: '5' 1168 | minor: '0' 1169 | patch: '1' 1170 | 1171 | - user_agent_string: 'Mozilla/5.0 (X11; Linux i686 on x86_64; rv:2.0.1) Gecko Firefox/5.0.1' 1172 | family: 'Firefox' 1173 | major: '5' 1174 | minor: '0' 1175 | patch: '1' 1176 | 1177 | - user_agent_string: 'Mozilla/5.0 (X11; Linux armv7l; rv:2.0.1) Gecko Firefox/5.0.1' 1178 | family: 'Firefox' 1179 | major: '5' 1180 | minor: '0' 1181 | patch: '1' 1182 | 1183 | - user_agent_string: 'Mozilla/5.0 (Windows NT 6.1; rv:2.1.1) Gecko/ Firefox/5.0.1' 1184 | family: 'Firefox' 1185 | major: '5' 1186 | minor: '0' 1187 | patch: '1' 1188 | 1189 | - user_agent_string: 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:2.1.1) Gecko/ Firefox/5.0.1' 1190 | family: 'Firefox' 1191 | major: '5' 1192 | minor: '0' 1193 | patch: '1' 1194 | 1195 | - user_agent_string: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.1.1) Gecko/ Firefox/5.0.1' 1196 | family: 'Firefox' 1197 | major: '5' 1198 | minor: '0' 1199 | patch: '1' 1200 | 1201 | - user_agent_string: 'Mozilla/5.0 (WindowsCE 6.0; rv:2.1.1) Gecko/ Firefox/5.0.1' 1202 | family: 'Firefox' 1203 | major: '5' 1204 | minor: '0' 1205 | patch: '1' 1206 | 1207 | - user_agent_string: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:2.1.1) Gecko/ Firefox/5.0.1' 1208 | family: 'Firefox' 1209 | major: '5' 1210 | minor: '0' 1211 | patch: '1' 1212 | 1213 | - user_agent_string: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.1.1) Gecko/ Firefox/5.0.1' 1214 | family: 'Firefox' 1215 | major: '5' 1216 | minor: '0' 1217 | patch: '1' 1218 | 1219 | - user_agent_string: 'Mozilla/5.0 (X11; Linux i686; rv:2.1.1) Gecko/ Firefox/5.0.1' 1220 | family: 'Firefox' 1221 | major: '5' 1222 | minor: '0' 1223 | patch: '1' 1224 | 1225 | - user_agent_string: 'Mozilla/5.0 (X11; Linux x86_64; rv:2.1.1) Gecko/ Firefox/5.0.1' 1226 | family: 'Firefox' 1227 | major: '5' 1228 | minor: '0' 1229 | patch: '1' 1230 | 1231 | - user_agent_string: 'Mozilla/5.0 (X11; Linux i686 on x86_64; rv:2.1.1) Gecko/ Firefox/5.0.1' 1232 | family: 'Firefox' 1233 | major: '5' 1234 | minor: '0' 1235 | patch: '1' 1236 | 1237 | - user_agent_string: 'Mozilla/5.0 (X11; Linux armv7l; rv:2.1.1) Gecko/ Firefox/5.0.1' 1238 | family: 'Firefox' 1239 | major: '5' 1240 | minor: '0' 1241 | patch: '1' 1242 | 1243 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.7) Gecko/20100104 SeaMonkey/2.0.2' 1244 | family: 'SeaMonkey' 1245 | major: '2' 1246 | minor: '0' 1247 | patch: '2' 1248 | 1249 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.7) Gecko/20100104 SeaMonkey/2.0.2' 1250 | family: 'SeaMonkey' 1251 | major: '2' 1252 | minor: '0' 1253 | patch: '2' 1254 | 1255 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.1.8) Gecko/20100205 SeaMonkey/2.0.3' 1256 | family: 'SeaMonkey' 1257 | major: '2' 1258 | minor: '0' 1259 | patch: '3' 1260 | 1261 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux x86_64; fr; rv:1.9.1.9) Gecko/20100428 Lightning/1.0b1 SeaMonkey/2.0.4' 1262 | family: 'SeaMonkey' 1263 | major: '2' 1264 | minor: '0' 1265 | patch: '4' 1266 | 1267 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100317 SUSE/2.0.4-3.2 Lightning/1.0b1 SeaMonkey/2.0.4' 1268 | family: 'SeaMonkey' 1269 | major: '2' 1270 | minor: '0' 1271 | patch: '4' 1272 | 1273 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 SeaMonkey/2.0.4' 1274 | family: 'SeaMonkey' 1275 | major: '2' 1276 | minor: '0' 1277 | patch: '4' 1278 | 1279 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.10) Gecko/20100504 Lightning/1.0b1 Mnenhy/0.8.2 SeaMonkey/2.0.5' 1280 | family: 'SeaMonkey' 1281 | major: '2' 1282 | minor: '0' 1283 | patch: '5' 1284 | 1285 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.1.10) Gecko/20100504 Lightning/1.0b1 SeaMonkey/2.0.5' 1286 | family: 'SeaMonkey' 1287 | major: '2' 1288 | minor: '0' 1289 | patch: '5' 1290 | 1291 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.10) Gecko/20100504 Lightning/1.0b1 SeaMonkey/2.0.5' 1292 | family: 'SeaMonkey' 1293 | major: '2' 1294 | minor: '0' 1295 | patch: '5' 1296 | 1297 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100721 SeaMonkey/2.0.6' 1298 | family: 'SeaMonkey' 1299 | major: '2' 1300 | minor: '0' 1301 | patch: '6' 1302 | 1303 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100714 SUSE/2.0.6-2.1 SeaMonkey/2.0.6' 1304 | family: 'SeaMonkey' 1305 | major: '2' 1306 | minor: '0' 1307 | patch: '6' 1308 | 1309 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux ia64; de; rv:1.9.1.11) Gecko/20100820 Lightning/1.0b2pre SeaMonkey/2.0.6' 1310 | family: 'SeaMonkey' 1311 | major: '2' 1312 | minor: '0' 1313 | patch: '6' 1314 | 1315 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100722 SeaMonkey/2.0.6' 1316 | family: 'SeaMonkey' 1317 | major: '2' 1318 | minor: '0' 1319 | patch: '6' 1320 | 1321 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100701 SeaMonkey/2.0.6' 1322 | family: 'SeaMonkey' 1323 | major: '2' 1324 | minor: '0' 1325 | patch: '6' 1326 | 1327 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 9.0; en-US; rv:1.9.1.11) Gecko/20100701 SeaMonkey/2.0.6' 1328 | family: 'SeaMonkey' 1329 | major: '2' 1330 | minor: '0' 1331 | patch: '6' 1332 | 1333 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.11) Gecko/20100701 SeaMonkey/2.0.6' 1334 | family: 'SeaMonkey' 1335 | major: '2' 1336 | minor: '0' 1337 | patch: '6' 1338 | 1339 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.11) Gecko/20100722 SeaMonkey/2.0.6' 1340 | family: 'SeaMonkey' 1341 | major: '2' 1342 | minor: '0' 1343 | patch: '6' 1344 | 1345 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.11) Gecko/20100701 SeaMonkey/2.0.6' 1346 | family: 'SeaMonkey' 1347 | major: '2' 1348 | minor: '0' 1349 | patch: '6' 1350 | 1351 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.11) Gecko/20100701 SeaMonkey/2.0.6' 1352 | family: 'SeaMonkey' 1353 | major: '2' 1354 | minor: '0' 1355 | patch: '6' 1356 | 1357 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.11) Gecko/20100701 SeaMonkey/2.0.6' 1358 | family: 'SeaMonkey' 1359 | major: '2' 1360 | minor: '0' 1361 | patch: '6' 1362 | 1363 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-CA; rv:1.9.1.11pre) Gecko/20100630 SeaMonkey/2.0.6pre' 1364 | family: 'SeaMonkey' 1365 | major: '2' 1366 | minor: '0' 1367 | patch: '6pre' 1368 | 1369 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-CA; rv:1.9.1.11pre) Gecko/20100629 SeaMonkey/2.0.6pre' 1370 | family: 'SeaMonkey' 1371 | major: '2' 1372 | minor: '0' 1373 | patch: '6pre' 1374 | 1375 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.11pre) Gecko/20100515 SeaMonkey/2.0.6pre' 1376 | family: 'SeaMonkey' 1377 | major: '2' 1378 | minor: '0' 1379 | patch: '6pre' 1380 | 1381 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.11pre) Gecko/20100508 SeaMonkey/2.0.6pre' 1382 | family: 'SeaMonkey' 1383 | major: '2' 1384 | minor: '0' 1385 | patch: '6pre' 1386 | 1387 | - user_agent_string: 'Mozilla/5.0 (Windows NT 5.2; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 SeaMonkey/2.1.1' 1388 | family: 'SeaMonkey' 1389 | major: '2' 1390 | minor: '1' 1391 | patch: '1' 1392 | 1393 | - user_agent_string: 'Mozilla/5.0 (Windows NT 6.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 SeaMonkey/2.1.1' 1394 | family: 'SeaMonkey' 1395 | major: '2' 1396 | minor: '1' 1397 | patch: '1' 1398 | 1399 | - user_agent_string: 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 SeaMonkey/2.1.1' 1400 | family: 'SeaMonkey' 1401 | major: '2' 1402 | minor: '1' 1403 | patch: '1' 1404 | 1405 | - user_agent_string: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 SeaMonkey/2.1.1' 1406 | family: 'SeaMonkey' 1407 | major: '2' 1408 | minor: '1' 1409 | patch: '1' 1410 | 1411 | - user_agent_string: 'Mozilla/5.0 (WindowsCE 6.0; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 SeaMonkey/2.1.1' 1412 | family: 'SeaMonkey' 1413 | major: '2' 1414 | minor: '1' 1415 | patch: '1' 1416 | 1417 | - user_agent_string: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 SeaMonkey/2.1.1' 1418 | family: 'SeaMonkey' 1419 | major: '2' 1420 | minor: '1' 1421 | patch: '1' 1422 | 1423 | - user_agent_string: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 SeaMonkey/2.1.1' 1424 | family: 'SeaMonkey' 1425 | major: '2' 1426 | minor: '1' 1427 | patch: '1' 1428 | 1429 | - user_agent_string: 'Mozilla/5.0 (X11; Linux i686; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 SeaMonkey/2.1.1' 1430 | family: 'SeaMonkey' 1431 | major: '2' 1432 | minor: '1' 1433 | patch: '1' 1434 | 1435 | - user_agent_string: 'Mozilla/5.0 (X11; Linux x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 SeaMonkey/2.1.1' 1436 | family: 'SeaMonkey' 1437 | major: '2' 1438 | minor: '1' 1439 | patch: '1' 1440 | 1441 | - user_agent_string: 'Mozilla/5.0 (X11; Linux i686 on x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 SeaMonkey/2.1.1' 1442 | family: 'SeaMonkey' 1443 | major: '2' 1444 | minor: '1' 1445 | patch: '1' 1446 | 1447 | - user_agent_string: 'Mozilla/5.0 (X11; Linux armv7l; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 SeaMonkey/2.1.1' 1448 | family: 'SeaMonkey' 1449 | major: '2' 1450 | minor: '1' 1451 | patch: '1' 1452 | 1453 | - user_agent_string: 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.3a4pre) Gecko/20100404 SeaMonkey/2.1a1pre' 1454 | family: 'SeaMonkey' 1455 | major: '2' 1456 | minor: '1' 1457 | patch: 'a1pre' 1458 | 1459 | - user_agent_string: 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-CA; rv:1.9.3a3pre) Gecko/20100312 SeaMonkey/2.1a1pre' 1460 | family: 'SeaMonkey' 1461 | major: '2' 1462 | minor: '1' 1463 | patch: 'a1pre' 1464 | 1465 | - user_agent_string: 'Mozilla/5.0 (Windows; Windows NT 5.2; rv:2.0b3pre) Gecko/20100803 SeaMonkey/2.1a3pre' 1466 | family: 'SeaMonkey' 1467 | major: '2' 1468 | minor: '1' 1469 | patch: 'a3pre' 1470 | -------------------------------------------------------------------------------- /UAParser.FormFactor.Tests/Resources/opera_mini_user_agent_strings.yaml: -------------------------------------------------------------------------------- 1 | # Additional tests for opera mini detection. 2 | # List of user agent strings and corresponding versions is taken from http://www.useragentstring.com/pages/Opera%20Mini/ 3 | # Some user agent string are from http://www.webapps-online.com/online-tools/user-agent-strings/dv/plugin55599/opera-mini 4 | 5 | test_cases: 6 | 7 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/9.80 (S60; SymbOS; Opera Mobi/23.348; U; en) Presto/2.5.25 Version/10.54' 8 | family: 'Opera Mini' 9 | major: '9' 10 | minor: '80' 11 | patch: 12 | 13 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/9.80 (S60; SymbOS; Opera Mobi/23.334; U; id) Presto/2.5.25 Version/10.54' 14 | family: 'Opera Mini' 15 | major: '9' 16 | minor: '80' 17 | patch: 18 | 19 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/9.80 (J2ME/23.377; U; en) Presto/2.5.25 Version/10.54' 20 | family: 'Opera Mini' 21 | major: '9' 22 | minor: '80' 23 | patch: 24 | 25 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/9.80 (J2ME/22.478; U; en) Presto/2.5.25 Version/10.54' 26 | family: 'Opera Mini' 27 | major: '9' 28 | minor: '80' 29 | patch: 30 | 31 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/9 (Compatible; MSIE:9.0; iPhone; BlackBerry9700; AppleWebKit/24.746; U; en) Presto/2.5.25 Version/10.54' 32 | family: 'Opera Mini' 33 | major: '9' 34 | minor: 35 | patch: 36 | 37 | - user_agent_string: 'Opera/9.80 (Android; Opera Mini/7.6.35766/35.5706; U; en) Presto/2.8.119 Version/11.10' 38 | family: 'Opera Mini' 39 | major: '7' 40 | minor: '6' 41 | patch: '35766' 42 | 43 | - user_agent_string: 'Opera/9.80 (Android; Opera Mini/7.5.33361/31.1350; U; en) Presto/2.8.119 Version/11.10' 44 | family: 'Opera Mini' 45 | major: '7' 46 | minor: '5' 47 | patch: '33361' 48 | 49 | - user_agent_string: 'Opera/9.80 (Android; Opera Mini/7.29530/27.1407; U; en) Presto/2.8.119 Version/11.10' 50 | family: 'Opera Mini' 51 | major: '7' 52 | minor: '29530' 53 | patch: 54 | 55 | - user_agent_string: 'Opera/9.80 (iPhone; Opera Mini/7.1.32694/27.1407; U; en) Presto/2.8.119 Version/11.10' 56 | family: 'Opera Mini' 57 | major: '7' 58 | minor: '1' 59 | patch: '32694' 60 | 61 | - user_agent_string: 'Opera/9.80 (iPad; Opera Mini/7.1.32694/27.1407; U; en) Presto/2.8.119 Version/11.10' 62 | family: 'Opera Mini' 63 | major: '7' 64 | minor: '1' 65 | patch: '32694' 66 | 67 | - user_agent_string: 'Opera/9.80 (Series 60; Opera Mini/7.1.32444/35.5706; U; en) Presto/2.8.119 Version/11.10' 68 | family: 'Opera Mini' 69 | major: '7' 70 | minor: '1' 71 | patch: '32444' 72 | 73 | - user_agent_string: 'Opera/9.80 (Series 60; Opera Mini/7.1.32444/35.2883; U; ru) Presto/2.8.119 Version/11.10' 74 | family: 'Opera Mini' 75 | major: '7' 76 | minor: '1' 77 | patch: '32444' 78 | 79 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/7.1.32052/35.5706; U; id) Presto/2.8.119 Version/11.10' 80 | family: 'Opera Mini' 81 | major: '7' 82 | minor: '1' 83 | patch: '32052' 84 | 85 | - user_agent_string: 'Opera/9.80 (iPhone; Opera Mini/7.0.4/28.2555; U; fr) Presto/2.8.119 Version/11.10' 86 | family: 'Opera Mini' 87 | major: '7' 88 | minor: '0' 89 | patch: '4' 90 | 91 | - user_agent_string: 'Opera/9.80 (Android; Opera Mini/7.0.29952/28.2075; U; es) Presto/2.8.119 Version/11.10' 92 | family: 'Opera Mini' 93 | major: '7' 94 | minor: '0' 95 | patch: '29952' 96 | 97 | - user_agent_string: 'Opera/9.80 (Series 60; Opera Mini/6.5.29702/28.2647; U; es) Presto/2.8.119 Version/11.10' 98 | family: 'Opera Mini' 99 | major: '6' 100 | minor: '5' 101 | patch: '29702' 102 | 103 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/6.5.26955/27.1407; U; en) Presto/2.8.119 Version/11.10' 104 | family: 'Opera Mini' 105 | major: '6' 106 | minor: '5' 107 | patch: '26955' 108 | 109 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/6.24288/25.729; U; en) Presto/2.5.25 Version/10.54' 110 | family: 'Opera Mini' 111 | major: '6' 112 | minor: '24288' 113 | patch: 114 | 115 | - user_agent_string: 'Opera/9.80 (BlackBerry; Opera Mini/6.24209/27.1366; U; en) Presto/2.8.119 Version/11.10' 116 | family: 'Opera Mini' 117 | major: '6' 118 | minor: '24209' 119 | patch: 120 | 121 | - user_agent_string: 'Opera/9.80 (Series 60; Opera Mini/6.24096/25.657; U; id) Presto/2.5.25 Version/10.54' 122 | family: 'Opera Mini' 123 | major: '6' 124 | minor: '24096' 125 | patch: 126 | 127 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/6.24093/26.1305; U; en) Presto/2.8.119 Version/10.54' 128 | family: 'Opera Mini' 129 | major: '6' 130 | minor: '24093' 131 | patch: 132 | 133 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/6.24093/25.657; U; id) Presto/2.5.25 Version/10.54' 134 | family: 'Opera Mini' 135 | major: '6' 136 | minor: '24093' 137 | patch: 138 | 139 | - user_agent_string: 'Opera/9.80 (Series 60; Opera Mini/6.1.25759/25.872; U; en) Presto/2.5.25 Version/10.54' 140 | family: 'Opera Mini' 141 | major: '6' 142 | minor: '1' 143 | patch: '25759' 144 | 145 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/6.1.25378/25.677; U; th) Presto/2.5.25 Version/10.54' 146 | family: 'Opera Mini' 147 | major: '6' 148 | minor: '1' 149 | patch: '25378' 150 | 151 | - user_agent_string: 'Opera/9.80 (Android; Opera Mini/6.1.25375/25.657; U; es) Presto/2.5.25 Version/10.54' 152 | family: 'Opera Mini' 153 | major: '6' 154 | minor: '1' 155 | patch: '25375' 156 | 157 | - user_agent_string: 'Opera/9.80 (Series 60; Opera Mini/6.0.24455/28.2766; U; en) Presto/2.8.119 Version/11.10' 158 | family: 'Opera Mini' 159 | major: '6' 160 | minor: '0' 161 | patch: '24455' 162 | 163 | - user_agent_string: 'Opera/9.80 (Android;Opera Mini/6.0.24212/24.746 U;en) Presto/2.5.25 Version/10.5454' 164 | family: 'Opera Mini' 165 | major: '6' 166 | minor: '0' 167 | patch: '24212' 168 | 169 | - user_agent_string: 'Opera/9.80 (Series 60; Opera Mini/6.0.24095/24.760; U; en) Presto/2.5.25 Version/10.54' 170 | family: 'Opera Mini' 171 | major: '6' 172 | minor: '0' 173 | patch: '24095' 174 | 175 | - user_agent_string: 'Opera/9.80 (Series 60; Opera Mini/6.0.24095/24.741; U; zh) Presto/2.5.25 Version/10.54' 176 | family: 'Opera Mini' 177 | major: '6' 178 | minor: '0' 179 | patch: '24095' 180 | 181 | - user_agent_string: 'Opera/9.80 (Series 60; Opera Mini/5.1.22784/23.334; U; en) Presto/2.5.25 Version/10.54' 182 | family: 'Opera Mini' 183 | major: '5' 184 | minor: '1' 185 | patch: '22784' 186 | 187 | - user_agent_string: 'Opera/9.80 (Series 60; Opera Mini/5.1.22784/22.394; U; en) Presto/2.5.25 Version/10.54' 188 | family: 'Opera Mini' 189 | major: '5' 190 | minor: '1' 191 | patch: '22784' 192 | 193 | - user_agent_string: 'Opera/9.80 (Series 60; Opera Mini/5.1.22784/22.387; U; en) Presto/2.5.25 Version/10.54' 194 | family: 'Opera Mini' 195 | major: '5' 196 | minor: '1' 197 | patch: '22784' 198 | 199 | - user_agent_string: 'Opera/9.80 (Series 60; Opera Mini/5.1.22783/23.334; U; en) Presto/2.5.25 Version/10.54' 200 | family: 'Opera Mini' 201 | major: '5' 202 | minor: '1' 203 | patch: '22783' 204 | 205 | - user_agent_string: 'Opera/9.80 (Series 60; Opera Mini/5.1.22783/22.478; U; id) Presto/2.5.25 Version/10.54' 206 | family: 'Opera Mini' 207 | major: '5' 208 | minor: '1' 209 | patch: '22783' 210 | 211 | - user_agent_string: 'Opera/9.80 (Series 60; Opera Mini/5.1.22783/22.478; U; en) Presto/2.5.25 Version/10.54' 212 | family: 'Opera Mini' 213 | major: '5' 214 | minor: '1' 215 | patch: '22783' 216 | 217 | - user_agent_string: 'Opera/9.80 (Android; Opera Mini/5.1.22460/23.334; U; en) Presto/2.5.25 Version/10.54' 218 | family: 'Opera Mini' 219 | major: '5' 220 | minor: '1' 221 | patch: '22460' 222 | 223 | - user_agent_string: 'Opera/9.80 (Android; Opera Mini/5.1.22460/22.478; U; fr) Presto/2.5.25 Version/10.54' 224 | family: 'Opera Mini' 225 | major: '5' 226 | minor: '1' 227 | patch: '22460' 228 | 229 | - user_agent_string: 'Opera/9.80 (Android; Opera Mini/5.1.22460/22.414; U; de) Presto/2.5.25 Version/10.54' 230 | family: 'Opera Mini' 231 | major: '5' 232 | minor: '1' 233 | patch: '22460' 234 | 235 | - user_agent_string: 'Opera/9.80 (Series 60; Opera Mini/5.1.22396/22.478; U; id) Presto/2.5.25 Version/10.54' 236 | family: 'Opera Mini' 237 | major: '5' 238 | minor: '1' 239 | patch: '22396' 240 | 241 | - user_agent_string: 'Opera/9.80 (BlackBerry; Opera Mini/5.1.22303/22.387; U; en) Presto/2.5.25 Version/10.54' 242 | family: 'Opera Mini' 243 | major: '5' 244 | minor: '1' 245 | patch: '22303' 246 | 247 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.1.22296; BlackBerry9800; U; AppleWebKit/23.370; U; en) Presto/2.5.25 Version/10.54' 248 | family: 'Opera Mini' 249 | major: '5' 250 | minor: '1' 251 | patch: '22296' 252 | 253 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.1.22296/22.87; U; fr) Presto/2.5.25' 254 | family: 'Opera Mini' 255 | major: '5' 256 | minor: '1' 257 | patch: '22296' 258 | 259 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.1.22296/22.87; U; en) Presto/2.5.25' 260 | family: 'Opera Mini' 261 | major: '5' 262 | minor: '1' 263 | patch: '22296' 264 | 265 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.1.22296/22.478; U; fr) Presto/2.5.25 Version/10.54' 266 | family: 'Opera Mini' 267 | major: '5' 268 | minor: '1' 269 | patch: '22296' 270 | 271 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.1.22296/22.387; U; fr) Presto/2.5.25 Version/10.54' 272 | family: 'Opera Mini' 273 | major: '5' 274 | minor: '1' 275 | patch: '22296' 276 | 277 | - user_agent_string: 'Opera/9.50 (J2ME/MIDP; Opera Mini/5.1.21965/20.2513; U; en)' 278 | family: 'Opera Mini' 279 | major: '5' 280 | minor: '1' 281 | patch: '21965' 282 | 283 | - user_agent_string: 'Opera/9.80 (Windows Mobile; Opera Mini/5.1.21595/25.657; U; en) Presto/2.5.25 Version/10.54' 284 | family: 'Opera Mini' 285 | major: '5' 286 | minor: '1' 287 | patch: '21595' 288 | 289 | - user_agent_string: 'Opera/9.80 (Windows Mobile; Opera Mini/5.1.21594/22.387; U; ru) Presto/2.5.25 Version/10.54' 290 | family: 'Opera Mini' 291 | major: '5' 292 | minor: '1' 293 | patch: '21594' 294 | 295 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.1.21415/22.387; U; en) Presto/2.5.25 Version/10.54' 296 | family: 'Opera Mini' 297 | major: '5' 298 | minor: '1' 299 | patch: '21415' 300 | 301 | - user_agent_string: 'Opera/10.61 (J2ME/MIDP; Opera Mini/5.1.21219/19.999; en-US; rv:1.9.3a5) WebKit/534.5 Presto/2.6.30' 302 | family: 'Opera Mini' 303 | major: '5' 304 | minor: '1' 305 | patch: '21219' 306 | 307 | - user_agent_string: 'Opera/9.80(J2ME/MIDP; Opera Mini/5.1.21214/22.414; U; en) Presto/2.5.25 Version/10.54' 308 | family: 'Opera Mini' 309 | major: '5' 310 | minor: '1' 311 | patch: '21214' 312 | 313 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.1.21214/22.414; U; ro) Presto/2.5.25 Version/10.54' 314 | family: 'Opera Mini' 315 | major: '5' 316 | minor: '1' 317 | patch: '21214' 318 | 319 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.1.21214/22.387; U; id) Presto/2.5.25 Version/10.54' 320 | family: 'Opera Mini' 321 | major: '5' 322 | minor: '1' 323 | patch: '21214' 324 | 325 | - user_agent_string: 'Opera/9.80 (Android; Opera Mini/5.1.21126/19.892; U; de) Presto/2.5.25' 326 | family: 'Opera Mini' 327 | major: '5' 328 | minor: '1' 329 | patch: '21126' 330 | 331 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.1.21051/27.1573; U; en) Presto/2.8.119 Version/11.10' 332 | family: 'Opera Mini' 333 | major: '5' 334 | minor: '1' 335 | patch: '21051' 336 | 337 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.1.21051/23.377; U; id) Presto/2.5.25 Version/10.54' 338 | family: 'Opera Mini' 339 | major: '5' 340 | minor: '1' 341 | patch: '21051' 342 | 343 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.1.21051/20.2477; U; en) Presto/2.5.25' 344 | family: 'Opera Mini' 345 | major: '5' 346 | minor: '1' 347 | patch: '21051' 348 | 349 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.3521/886; U; en) Presto/2.4.15' 350 | family: 'Opera Mini' 351 | major: '5' 352 | minor: '0' 353 | patch: '3521' 354 | 355 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.3521/22.414; U; en) Presto/2.5.25 Version/10.54' 356 | family: 'Opera Mini' 357 | major: '5' 358 | minor: '0' 359 | patch: '3521' 360 | 361 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.3521/18.684; U; en) Presto/2.4.15' 362 | family: 'Opera Mini' 363 | major: '5' 364 | minor: '0' 365 | patch: '3521' 366 | 367 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.22349/37.6584; U; en) Presto/2.12.423 Version/12.16' 368 | family: 'Opera Mini' 369 | major: '5' 370 | minor: '0' 371 | patch: '22349' 372 | 373 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.20873/19.916; U; en) Presto/2.5.25' 374 | family: 'Opera Mini' 375 | major: '5' 376 | minor: '0' 377 | patch: '20873' 378 | 379 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.19693Mod.by.Handler/23.390; U; en) Presto/2.5.25 Version/10.54' 380 | family: 'Opera Mini' 381 | major: '5' 382 | minor: '0' 383 | patch: '19693' 384 | 385 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.19693Mod.by.Handler/18.794; U; id) Presto/2.4.15' 386 | family: 'Opera Mini' 387 | major: '5' 388 | minor: '0' 389 | patch: '19693' 390 | 391 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.19693/870; U; en) Presto/2.4.15' 392 | family: 'Opera Mini' 393 | major: '5' 394 | minor: '0' 395 | patch: '19693' 396 | 397 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.19683/1278; U; ko) Presto/2.2.0' 398 | family: 'Opera Mini' 399 | major: '5' 400 | minor: '0' 401 | patch: '19683' 402 | 403 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.18741Mod.by.Handler/22.414; U; en) Presto/2.5.25 Version/10.54' 404 | family: 'Opera Mini' 405 | major: '5' 406 | minor: '0' 407 | patch: '18741' 408 | 409 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.18741/886; U; id) Presto/2.4.15' 410 | family: 'Opera Mini' 411 | major: '5' 412 | minor: '0' 413 | patch: '18741' 414 | 415 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.18741/886; U; en) Presto/2.4.15' 416 | family: 'Opera Mini' 417 | major: '5' 418 | minor: '0' 419 | patch: '18741' 420 | 421 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.18741/870; U; fr) Presto/2.4.15' 422 | family: 'Opera Mini' 423 | major: '5' 424 | minor: '0' 425 | patch: '18741' 426 | 427 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.18741/870; U; en) Presto/2.4.15' 428 | family: 'Opera Mini' 429 | major: '5' 430 | minor: '0' 431 | patch: '18741' 432 | 433 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.18741/18.794; U; en) Presto/2.4.15' 434 | family: 'Opera Mini' 435 | major: '5' 436 | minor: '0' 437 | patch: '18741' 438 | 439 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.18635Mod.by.Handler/23.377; U; en) Presto/2.5.25 Version/10.54' 440 | family: 'Opera Mini' 441 | major: '5' 442 | minor: '0' 443 | patch: '18635' 444 | 445 | - user_agent_string: 'Opera/9.80 (Windows NT 5.1; U; Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.18635/1030; U; en) Presto/2.4.15; ru) Presto/2.8.99 Version/11.10' 446 | family: 'Opera Mini' 447 | major: '5' 448 | minor: '0' 449 | patch: '18635' 450 | 451 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.18635/886; U; en) Presto/2.4.15' 452 | family: 'Opera Mini' 453 | major: '5' 454 | minor: '0' 455 | patch: '18635' 456 | 457 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.17443/886; U; en) Presto/2.4.15' 458 | family: 'Opera Mini' 459 | major: '5' 460 | minor: '0' 461 | patch: '17443' 462 | 463 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.17443/20.2477; U; en) Presto/2.5.25' 464 | family: 'Opera Mini' 465 | major: '5' 466 | minor: '0' 467 | patch: '17443' 468 | 469 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.17381/886; U; en) Presto/2.4.15' 470 | family: 'Opera Mini' 471 | major: '5' 472 | minor: '0' 473 | patch: '17381' 474 | 475 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.16823Mod.by.Handler/22.387; U; en) Presto/2.5.25 Version/10.54' 476 | family: 'Opera Mini' 477 | major: '5' 478 | minor: '0' 479 | patch: '16823' 480 | 481 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.16823/870; U; en) Presto/2.4.15' 482 | family: 'Opera Mini' 483 | major: '5' 484 | minor: '0' 485 | patch: '16823' 486 | 487 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.15650/20.2479; U; en) Presto/2.5.25' 488 | family: 'Opera Mini' 489 | major: '5' 490 | minor: '0' 491 | patch: '15650' 492 | 493 | - user_agent_string: 'Opera/9.80 (J2ME/iPhone;Opera Mini/5.0.019802/886; U; ja)Presto/2.4.15' 494 | family: 'Opera Mini' 495 | major: '5' 496 | minor: '0' 497 | patch: '019802' 498 | 499 | - user_agent_string: 'Opera/9.80 (J2ME/iPhone;Opera Mini/5.0.019802/886; U; ja)Presto/ 2.4.15' 500 | family: 'Opera Mini' 501 | major: '5' 502 | minor: '0' 503 | patch: '019802' 504 | 505 | - user_agent_string: 'Opera/9.80 (J2ME/iPhone;Opera Mini/5.0.019802/886; U; ja) Presto/2.4.15' 506 | family: 'Opera Mini' 507 | major: '5' 508 | minor: '0' 509 | patch: '019802' 510 | 511 | - user_agent_string: 'Opera/9.80 (iPhone; Opera Mini/5.0.019802/886; U; ja) Presto/2.4.15' 512 | family: 'Opera Mini' 513 | major: '5' 514 | minor: '0' 515 | patch: '019802' 516 | 517 | - user_agent_string: 'Opera/9.80 (iPhone; Opera Mini/5.0.019802/886; U; en) Presto/2.4.15' 518 | family: 'Opera Mini' 519 | major: '5' 520 | minor: '0' 521 | patch: '019802' 522 | 523 | - user_agent_string: 'Opera/9.80 (iPhone; Opera Mini/5.0.019802/22.414; U; de) Presto/2.5.25 Version/10.54' 524 | family: 'Opera Mini' 525 | major: '5' 526 | minor: '0' 527 | patch: '019802' 528 | 529 | - user_agent_string: 'Opera/9.80 (iPhone; Opera Mini/5.0.019802/18.738; U; en) Presto/2.4.15' 530 | family: 'Opera Mini' 531 | major: '5' 532 | minor: '0' 533 | patch: '019802' 534 | 535 | - user_agent_string: 'Opera/9.80 (iPhone; Opera Mini/5.0.0176/764; U; en) Presto/2.4.154.15' 536 | family: 'Opera Mini' 537 | major: '5' 538 | minor: '0' 539 | patch: '0176' 540 | 541 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.0.862 Profile/24.743; U; en) Presto/2.5.25 Version/10.54' 542 | family: 'Opera Mini' 543 | major: '5' 544 | minor: '0' 545 | patch: '0' 546 | 547 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.0.423 Profile/18.684; U; en) Presto/2.4.15' 548 | family: 'Opera Mini' 549 | major: '5' 550 | minor: '0' 551 | patch: '0' 552 | 553 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.0.351 Profile/22.478; U; en) Presto/2.5.25 Version/10.54' 554 | family: 'Opera Mini' 555 | major: '5' 556 | minor: '0' 557 | patch: '0' 558 | 559 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0/870; U; en) Presto/2.4.15' 560 | family: 'Opera Mini' 561 | major: '5' 562 | minor: '0' 563 | patch: 564 | 565 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0(Windows; U; Windows NT 5.1; en-US)/23.390; U; en) Presto/2.5.25 Version/10.54' 566 | family: 'Opera Mini' 567 | major: '5' 568 | minor: '0' 569 | patch: 570 | 571 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0 (Windows; U; Windows NT 6.1; sv-SE) AppleWebKit/23.411; U; en) Presto/2.5.25 Version/10.54' 572 | family: 'Opera Mini' 573 | major: '5' 574 | minor: '0' 575 | patch: 576 | 577 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0 (Windows; U; Windows NT 6.1; rv:2.2) Gecko/24.838; U; id) Presto/2.5.25 Version/10.54' 578 | family: 'Opera Mini' 579 | major: '5' 580 | minor: '0' 581 | patch: 582 | 583 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/23.411; U; en) Presto/2.5.25 Version/10.54' 584 | family: 'Opera Mini' 585 | major: '5' 586 | minor: '0' 587 | patch: 588 | 589 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/22.478; U; en) Presto/2.5.25 Version/10.54' 590 | family: 'Opera Mini' 591 | major: '5' 592 | minor: '0' 593 | patch: 594 | 595 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.3) Gecko/23.377; U; en) Presto/2.5.25 Version/10.54' 596 | family: 'Opera Mini' 597 | major: '5' 598 | minor: '0' 599 | patch: 600 | 601 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0 (Windows NT 6.1; WOW64) AppleWebKit/23.411; U; en) Presto/2.5.25 Version/10.54' 602 | family: 'Opera Mini' 603 | major: '5' 604 | minor: '0' 605 | patch: 606 | 607 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0 (SymbianOS/24.838; U; en) Presto/2.5.25 Version/10.54' 608 | family: 'Opera Mini' 609 | major: '5' 610 | minor: '0' 611 | patch: 612 | 613 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0 (Linux; U; Android 2.2; fr-lu; HTC Legend Build/24.838; U; en) Presto/2.5.25 Version/10.54' 614 | family: 'Opera Mini' 615 | major: '5' 616 | minor: '0' 617 | patch: 618 | 619 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0 (Linux; U; Android 2.2; en-sa; HTC_DesireHD_A9191 Build/24.741; U; en) Presto/2.5.25 Version/10.54' 620 | family: 'Opera Mini' 621 | major: '5' 622 | minor: '0' 623 | patch: 624 | 625 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0 (iPhone; U; xxxx like Mac OS X; en) AppleWebKit/24.838; U; en) Presto/2.5.25 Version/10.54' 626 | family: 'Opera Mini' 627 | major: '5' 628 | minor: '0' 629 | patch: 630 | 631 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0 (iPhone; U; fr; CPU iPhone OS 4_2_1 like Mac OS X; fr) AppleWebKit/23.405; U; en) Presto/2.5.25 Version/10.54' 632 | family: 'Opera Mini' 633 | major: '5' 634 | minor: '0' 635 | patch: 636 | 637 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/23.411; U; en) Presto/2.5.25 Version/10.54' 638 | family: 'Opera Mini' 639 | major: '5' 640 | minor: '0' 641 | patch: 642 | 643 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/23.377; U; en) Presto/2.5.25 Version/10.54' 644 | family: 'Opera Mini' 645 | major: '5' 646 | minor: '0' 647 | patch: 648 | 649 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0 (BlackBerry; U; BlackBerry9800; en-GB) AppleWebKit/24.783; U; en) Presto/2.5.25 Version/10.54' 650 | family: 'Opera Mini' 651 | major: '5' 652 | minor: '0' 653 | patch: 654 | 655 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/5.0 (BlackBerry; U; BlackBerry 9800) AppleWebKit/24.783; U; es) Presto/2.5.25 Version/10.54' 656 | family: 'Opera Mini' 657 | major: '5' 658 | minor: '0' 659 | patch: 660 | 661 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.5.33867/35.2883; U; en) Presto/2.8.119 Version/11.10' 662 | family: 'Opera Mini' 663 | major: '4' 664 | minor: '5' 665 | patch: '33867' 666 | 667 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.4.Vista/19.916; U; en) Presto/2.5.25' 668 | family: 'Opera Mini' 669 | major: '4' 670 | minor: '4' 671 | patch: 672 | 673 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.4.29476/27.1573; U; id) Presto/2.8.119 Version/11.10' 674 | family: 'Opera Mini' 675 | major: '4' 676 | minor: '4' 677 | patch: '29476' 678 | 679 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.4.26736/28.2647; U; it) Presto/2.8.119 Version/11.10' 680 | family: 'Opera Mini' 681 | major: '4' 682 | minor: '4' 683 | patch: '26736' 684 | 685 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.4.0.60 (Windows XP)/886; U; en) Presto/2.4.15' 686 | family: 'Opera Mini' 687 | major: '4' 688 | minor: '4' 689 | patch: '0' 690 | 691 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.3.24214; iPhone; CPU iPhone OS 4_2_1 like Mac OS X; AppleWebKit/24.783; U; en) Presto/2.5.25 Version/10.54' 692 | family: 'Opera Mini' 693 | major: '4' 694 | minor: '3' 695 | patch: '24214' 696 | 697 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.3.24214/27.1407; U; id) Presto/2.8.119 Version/11.10' 698 | family: 'Opera Mini' 699 | major: '4' 700 | minor: '3' 701 | patch: '24214' 702 | 703 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.3.24214 (Windows; U; Windows NT 6.1) AppleWebKit/24.838; U; id) Presto/2.5.25 Version/10.54' 704 | family: 'Opera Mini' 705 | major: '4' 706 | minor: '3' 707 | patch: '24214' 708 | 709 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.3.13337/25.657; U; ro) Presto/2.5.25 Version/10.54' 710 | family: 'Opera Mini' 711 | major: '4' 712 | minor: '3' 713 | patch: '13337' 714 | 715 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.24721/30.3316; U; en) Presto/2.8.119 Version/11.10' 716 | family: 'Opera Mini' 717 | major: '4' 718 | minor: '2' 719 | patch: '24721' 720 | 721 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.23453/28.2647; U; en) Presto/2.8.119 Version/11.10' 722 | family: 'Opera Mini' 723 | major: '4' 724 | minor: '2' 725 | patch: '23453' 726 | 727 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.21465/22.478; U; id) Presto/2.5.25 Version/10.54' 728 | family: 'Opera Mini' 729 | major: '4' 730 | minor: '2' 731 | patch: '21465' 732 | 733 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.21465/22.387; U; id) Presto/2.5.25 Version/10.54' 734 | family: 'Opera Mini' 735 | major: '4' 736 | minor: '2' 737 | patch: '21465' 738 | 739 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.19634/23.333; U; en) Presto/2.5.25 Version/10.54' 740 | family: 'Opera Mini' 741 | major: '4' 742 | minor: '2' 743 | patch: '19634' 744 | 745 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.18887/22.478; U; id) Presto/2.5.25 Version/10.54' 746 | family: 'Opera Mini' 747 | major: '4' 748 | minor: '2' 749 | patch: '18887' 750 | 751 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.16320/29.3594; U; en) Presto/2.8.119 Version/11.10' 752 | family: 'Opera Mini' 753 | major: '4' 754 | minor: '2' 755 | patch: '16320' 756 | 757 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.16007Mod.by.Handler/23.390; U; en) Presto/2.5.25 Version/10.54' 758 | family: 'Opera Mini' 759 | major: '4' 760 | minor: '2' 761 | patch: '16007' 762 | 763 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.15410QUAIN/22.478; U; en) Presto/2.5.25 Version/10.54' 764 | family: 'Opera Mini' 765 | major: '4' 766 | minor: '2' 767 | patch: '15410' 768 | 769 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.15410Mod.by.Handler/23.334; U; en) Presto/2.5.25 Version/10.54' 770 | family: 'Opera Mini' 771 | major: '4' 772 | minor: '2' 773 | patch: '15410' 774 | 775 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.15410Mod.by.Handler/23.333; U; en) Presto/2.5.25 Version/10.54' 776 | family: 'Opera Mini' 777 | major: '4' 778 | minor: '2' 779 | patch: '15410' 780 | 781 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.15410Mod.by.Handler/22.401; U; en) Presto/2.5.25 Version/10.54' 782 | family: 'Opera Mini' 783 | major: '4' 784 | minor: '2' 785 | patch: '15410' 786 | 787 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.15410Mod.by.Handler/20.2485; U; en) Presto/2.5.25' 788 | family: 'Opera Mini' 789 | major: '4' 790 | minor: '2' 791 | patch: '15410' 792 | 793 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.15410Mod.by.Handler/18.678; U; en) Presto/2.4.15' 794 | family: 'Opera Mini' 795 | major: '4' 796 | minor: '2' 797 | patch: '15410' 798 | 799 | - user_agent_string: 'Opera/9.60 (J2ME/MIDP;Opera Mini/4.2.15410Mod.by.Handler/503; U; en)Presto/2.2.0' 800 | family: 'Opera Mini' 801 | major: '4' 802 | minor: '2' 803 | patch: '15410' 804 | 805 | - user_agent_string: 'Opera/9.50 (J2ME/MIDP; Opera Mini/4.2.15410Mod.by.Handler/20.2590; U; en)' 806 | family: 'Opera Mini' 807 | major: '4' 808 | minor: '2' 809 | patch: '15410' 810 | 811 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.15410/870; U; en) Presto/2.4.15' 812 | family: 'Opera Mini' 813 | major: '4' 814 | minor: '2' 815 | patch: '15410' 816 | 817 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.15410/24.899; U; id) Presto/2.5.25 Version/10.54' 818 | family: 'Opera Mini' 819 | major: '4' 820 | minor: '2' 821 | patch: '15410' 822 | 823 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.15410/22.394; U; en) Presto/2.5.25 Version/10.54' 824 | family: 'Opera Mini' 825 | major: '4' 826 | minor: '2' 827 | patch: '15410' 828 | 829 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.15066/886; U; en) Presto/2.4.15' 830 | family: 'Opera Mini' 831 | major: '4' 832 | minor: '2' 833 | patch: '15066' 834 | 835 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.14912mod.By.onome/22.401; U; en) Presto/2.5.25 Version/10.54' 836 | family: 'Opera Mini' 837 | major: '4' 838 | minor: '2' 839 | patch: '14912' 840 | 841 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.14912Mod.by.Handler/24.783; U; id) Presto/2.5.25 Version/10.54' 842 | family: 'Opera Mini' 843 | major: '4' 844 | minor: '2' 845 | patch: '14912' 846 | 847 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.14912Mod.by.Handler/23.377; U; id) Presto/2.5.25 Version/10.54' 848 | family: 'Opera Mini' 849 | major: '4' 850 | minor: '2' 851 | patch: '14912' 852 | 853 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.14912Mod.By.www.9jamusic.cz.cc/22.387; U; en) Presto/2.5.25 Version/10.54' 854 | family: 'Opera Mini' 855 | major: '4' 856 | minor: '2' 857 | patch: '14912' 858 | 859 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.14912/870; U; id) Presto/2.4.15' 860 | family: 'Opera Mini' 861 | major: '4' 862 | minor: '2' 863 | patch: '14912' 864 | 865 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.14912/35.5706; U; id) Presto/2.8.119 Version/11.10' 866 | family: 'Opera Mini' 867 | major: '4' 868 | minor: '2' 869 | patch: '14912' 870 | 871 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.14912/24.746; U; id) Presto/2.5.25 Version/10.54' 872 | family: 'Opera Mini' 873 | major: '4' 874 | minor: '2' 875 | patch: '14912' 876 | 877 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.14912/23.334; U; en) Presto/2.5.25 Version/10.54' 878 | family: 'Opera Mini' 879 | major: '4' 880 | minor: '2' 881 | patch: '14912' 882 | 883 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.14912/23.333; U; en) Presto/2.5.25 Version/10.54' 884 | family: 'Opera Mini' 885 | major: '4' 886 | minor: '2' 887 | patch: '14912' 888 | 889 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.14912/22.394; U; en) Presto/2.5.25 Version/10.54' 890 | family: 'Opera Mini' 891 | major: '4' 892 | minor: '2' 893 | patch: '14912' 894 | 895 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.14885/20.2485; U; zh) Presto/2.5.25' 896 | family: 'Opera Mini' 897 | major: '4' 898 | minor: '2' 899 | patch: '14885' 900 | 901 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.14881Mod.by.Handler/24.743; U; en) Presto/2.5.25 Version/10.54' 902 | family: 'Opera Mini' 903 | major: '4' 904 | minor: '2' 905 | patch: '14881' 906 | 907 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.14881Mod.by.Handler/23.317; U; id) Presto/2.5.25 Version/10.54' 908 | family: 'Opera Mini' 909 | major: '4' 910 | minor: '2' 911 | patch: '14881' 912 | 913 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.14753/20.2485; U; zh) Presto/2.5.25' 914 | family: 'Opera Mini' 915 | major: '4' 916 | minor: '2' 917 | patch: '14753' 918 | 919 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.14409/20.2485; U; zh) Presto/2.5.25' 920 | family: 'Opera Mini' 921 | major: '4' 922 | minor: '2' 923 | patch: '14409' 924 | 925 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.14320/886; U; id) Presto/2.4.15' 926 | family: 'Opera Mini' 927 | major: '4' 928 | minor: '2' 929 | patch: '14320' 930 | 931 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.14320/22.478; U; en) Presto/2.5.25 Version/10.54' 932 | family: 'Opera Mini' 933 | major: '4' 934 | minor: '2' 935 | patch: '14320' 936 | 937 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.14320/20.2485; U; zh) Presto/2.5.25' 938 | family: 'Opera Mini' 939 | major: '4' 940 | minor: '2' 941 | patch: '14320' 942 | 943 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.13943/20.2485; U; zh) Presto/2.5.25' 944 | family: 'Opera Mini' 945 | major: '4' 946 | minor: '2' 947 | patch: '13943' 948 | 949 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.13918/22.414; U; en) Presto/2.5.25 Version/10.54' 950 | family: 'Opera Mini' 951 | major: '4' 952 | minor: '2' 953 | patch: '13918' 954 | 955 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.13400/20.2485; U; zh) Presto/2.5.25' 956 | family: 'Opera Mini' 957 | major: '4' 958 | minor: '2' 959 | patch: '13400' 960 | 961 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.13337.Mod.by.Handler/870; U; en) Presto/2.4.15' 962 | family: 'Opera Mini' 963 | major: '4' 964 | minor: '2' 965 | patch: '13337' 966 | 967 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.13337/886; U; en) Presto/2.4.15' 968 | family: 'Opera Mini' 969 | major: '4' 970 | minor: '2' 971 | patch: '13337' 972 | 973 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.13337/870; U; en) Presto/2.4.15' 974 | family: 'Opera Mini' 975 | major: '4' 976 | minor: '2' 977 | patch: '13337' 978 | 979 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.13337/19.916; U; en) Presto/2.5.25' 980 | family: 'Opera Mini' 981 | major: '4' 982 | minor: '2' 983 | patch: '13337' 984 | 985 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.13265/870; U; ro) Presto/2.4.15' 986 | family: 'Opera Mini' 987 | major: '4' 988 | minor: '2' 989 | patch: '13265' 990 | 991 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.13221/886; U; en) Presto/2.4.15' 992 | family: 'Opera Mini' 993 | major: '4' 994 | minor: '2' 995 | patch: '13221' 996 | 997 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.13221/870; U; en) Presto/2.4.15' 998 | family: 'Opera Mini' 999 | major: '4' 1000 | minor: '2' 1001 | patch: '13221' 1002 | 1003 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.13057/870; U; ja) Presto/2.4.15' 1004 | family: 'Opera Mini' 1005 | major: '4' 1006 | minor: '2' 1007 | patch: '13057' 1008 | 1009 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.2 19.42.55/19.892; U; en) Presto/2.5.25' 1010 | family: 'Opera Mini' 1011 | major: '4' 1012 | minor: '2' 1013 | patch: 1014 | 1015 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.18061/27.1407; U; en) Presto/2.8.119 Version/11.10' 1016 | family: 'Opera Mini' 1017 | major: '4' 1018 | minor: '18061' 1019 | patch: 1020 | 1021 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.1.15082/870; U; en) Presto/2.4.15' 1022 | family: 'Opera Mini' 1023 | major: '4' 1024 | minor: '1' 1025 | patch: '15082' 1026 | 1027 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.1.15082/25.677; U; vi) Presto/2.5.25 Version/10.54' 1028 | family: 'Opera Mini' 1029 | major: '4' 1030 | minor: '1' 1031 | patch: '15082' 1032 | 1033 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.1.15082/20.2489; U; en) Presto/2.5.25' 1034 | family: 'Opera Mini' 1035 | major: '4' 1036 | minor: '1' 1037 | patch: '15082' 1038 | 1039 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.1.14287/22.387; U; id) Presto/2.5.25 Version/10.54' 1040 | family: 'Opera Mini' 1041 | major: '4' 1042 | minor: '1' 1043 | patch: '14287' 1044 | 1045 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.1.13907/21.529; U; en) Presto/2.5.25 Version/10.54' 1046 | family: 'Opera Mini' 1047 | major: '4' 1048 | minor: '1' 1049 | patch: '13907' 1050 | 1051 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.1.13573/20.2485; U; zh) Presto/2.5.25' 1052 | family: 'Opera Mini' 1053 | major: '4' 1054 | minor: '1' 1055 | patch: '13573' 1056 | 1057 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.1.12965/19.892; U; en) Presto/2.5.25' 1058 | family: 'Opera Mini' 1059 | major: '4' 1060 | minor: '1' 1061 | patch: '12965' 1062 | 1063 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.1.11321/24.871; U; en) Presto/2.5.25 Version/10.54' 1064 | family: 'Opera Mini' 1065 | major: '4' 1066 | minor: '1' 1067 | patch: '11321' 1068 | 1069 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.0.8462/22.414; U; en) Presto/2.5.25 Version/10.54' 1070 | family: 'Opera Mini' 1071 | major: '4' 1072 | minor: '0' 1073 | patch: '8462' 1074 | 1075 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.0.8462/19.916; U; en) Presto/2.5.25' 1076 | family: 'Opera Mini' 1077 | major: '4' 1078 | minor: '0' 1079 | patch: '8462' 1080 | 1081 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.0.10247/19.916; U; en) Presto/2.5.25' 1082 | family: 'Opera Mini' 1083 | major: '4' 1084 | minor: '0' 1085 | patch: '10247' 1086 | 1087 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.0.10031/22.453; U; en) Presto/2.5.25 Version/10.54' 1088 | family: 'Opera Mini' 1089 | major: '4' 1090 | minor: '0' 1091 | patch: '10031' 1092 | 1093 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.0/886; U; en) Presto/2.4.15' 1094 | family: 'Opera Mini' 1095 | major: '4' 1096 | minor: '0' 1097 | patch: 1098 | 1099 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.0/870; U; id) Presto/2.4.15' 1100 | family: 'Opera Mini' 1101 | major: '4' 1102 | minor: '0' 1103 | patch: 1104 | 1105 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.0/22.453; U; en) Presto/2.5.25 Version/10.54' 1106 | family: 'Opera Mini' 1107 | major: '4' 1108 | minor: '0' 1109 | patch: 1110 | 1111 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.0/22.401; U; en) Presto/2.5.25 Version/10.54' 1112 | family: 'Opera Mini' 1113 | major: '4' 1114 | minor: '0' 1115 | patch: 1116 | 1117 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.0/22.394; U; en) Presto/2.5.25 Version/10.54' 1118 | family: 'Opera Mini' 1119 | major: '4' 1120 | minor: '0' 1121 | patch: 1122 | 1123 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.1.11) Gecko/23.390; U; en) Presto/2.5.25 Version/10.54' 1124 | family: 'Opera Mini' 1125 | major: '4' 1126 | minor: '0' 1127 | patch: 1128 | 1129 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.0 (Linux; U;' 1130 | family: 'Opera Mini' 1131 | major: '4' 1132 | minor: '0' 1133 | patch: 1134 | 1135 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.0 (iPad; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/23.411; U; en) Presto/2.5.25 Version/10.54' 1136 | family: 'Opera Mini' 1137 | major: '4' 1138 | minor: '0' 1139 | patch: 1140 | 1141 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.0 (compatible; MSIE 5.0; UNIX) Opera 6.12 [en]/24.838; U; en) Presto/2.5.25 Version/10.54' 1142 | family: 'Opera Mini' 1143 | major: '4' 1144 | minor: '0' 1145 | patch: 1146 | 1147 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/4.0 (BlackBerry; U; BlackBerry 9800; en) AppleWebKit/24.705; U; en) Presto/2.5.25 Version/10.54' 1148 | family: 'Opera Mini' 1149 | major: '4' 1150 | minor: '0' 1151 | patch: 1152 | 1153 | - user_agent_string: 'Opera/9.60 (J2ME/MIDP; Opera Mini/4.0/490; U; en) Presto/2.2.0' 1154 | family: 'Opera Mini' 1155 | major: '4' 1156 | minor: '0' 1157 | patch: 1158 | 1159 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/3.1.10423/22.387; U; en) Presto/2.5.25 Version/10.54' 1160 | family: 'Opera Mini' 1161 | major: '3' 1162 | minor: '1' 1163 | patch: '10423' 1164 | 1165 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/1.6.0_13/22.478; U; en) Presto/2.5.25 Version/10.54' 1166 | family: 'Opera Mini' 1167 | major: '1' 1168 | minor: '6' 1169 | patch: '0' 1170 | 1171 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/1.6.0_13/19.916; U; en) Presto/2.5.25' 1172 | family: 'Opera Mini' 1173 | major: '1' 1174 | minor: '6' 1175 | patch: '0' 1176 | 1177 | - user_agent_string: 'Opera/9.80 (Series 60; Opera Mini/1.0.30710/29.3594; U; en) Presto/2.8.119 Version/11.10' 1178 | family: 'Opera Mini' 1179 | major: '1' 1180 | minor: '0' 1181 | patch: '30710' 1182 | 1183 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/1.0/886; U; en) Presto/2.4.15' 1184 | family: 'Opera Mini' 1185 | major: '1' 1186 | minor: '0' 1187 | patch: 1188 | 1189 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/SymbianOS/22.478; U; en) Presto/2.5.25 Version/10.54' 1190 | family: 'Opera Mini' 1191 | major: 1192 | minor: 1193 | patch: 1194 | 1195 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/Nokia2730c-1/22.478; U; en) Presto/2.5.25 Version/10.54' 1196 | family: 'Opera Mini' 1197 | major: 1198 | minor: 1199 | patch: 1200 | 1201 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/Mozilla/23.334; U; en) Presto/2.5.25 Version/10.54' 1202 | family: 'Opera Mini' 1203 | major: 1204 | minor: 1205 | patch: 1206 | 1207 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini/(Windows; U; Windows NT 5.1; en-US) AppleWebKit/23.411; U; en) Presto/2.5.25 Version/10.54' 1208 | family: 'Opera Mini' 1209 | major: 1210 | minor: 1211 | patch: 1212 | 1213 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini; U; zh) Presto/2.8.119 Version/11.10' 1214 | family: 'Opera Mini' 1215 | major: 1216 | minor: 1217 | patch: 1218 | 1219 | - user_agent_string: 'Opera/9.80 (J2ME/MIDP; Opera Mini; U; en) Presto/2.8.119 Version/11.1019 Version/11.10.10' 1220 | family: 'Opera Mini' 1221 | major: 1222 | minor: 1223 | patch: 1224 | 1225 | -------------------------------------------------------------------------------- /UAParser.FormFactor.Tests/Resources/podcasting_user_agent_strings.yaml: -------------------------------------------------------------------------------- 1 | test_cases: 2 | 3 | - user_agent_string: 'okhttp/2.7.5' 4 | family: 'okhttp' 5 | major: '2' 6 | minor: '7' 7 | patch: '5' 8 | - user_agent_string: 'Stitcher/iOS' 9 | family: 'Stitcher' 10 | major: 11 | minor: 12 | patch: 13 | - user_agent_string: 'Stitcher/Android' 14 | family: 'Stitcher' 15 | major: 16 | minor: 17 | patch: 18 | - user_agent_string: 'Mozilla/5.0 (Linux; U; en-us; BeyondPod 4)' 19 | family: 'BeyondPod' 20 | major: '4' 21 | minor: 22 | patch: 23 | - user_agent_string: 'NSPlayer/10.0.0.3702 WMFSDK/10.0' 24 | family: 'NSPlayer' 25 | major: '10' 26 | minor: '0' 27 | patch: '0' 28 | patch_minor: '3702' 29 | - user_agent_string: 'NSPlayer/12.00.10011.16384 WMFSDK/12.00.10011.16384' 30 | family: 'NSPlayer' 31 | major: '12' 32 | minor: '00' 33 | patch: '10011' 34 | patch_minor: '16384' 35 | - user_agent_string: 'Pocket Casts' 36 | family: 'Pocket Casts' 37 | major: 38 | minor: 39 | patch: 40 | - user_agent_string: 'Shifty Jelly Pocket Casts, Android v4.3.5' 41 | family: 'Pocket Casts' 42 | major: 43 | minor: 44 | patch: 45 | - user_agent_string: 'Player/LG Player 1.0 for Android 4.4.2 (stagefright alternative), Pocket Casts' 46 | family: 'Pocket Casts' 47 | major: 48 | minor: 49 | patch: 50 | - user_agent_string: 'PocketTunes/5.5.8' 51 | family: 'PocketTunes' 52 | major: '5' 53 | minor: '5' 54 | patch: '8' 55 | - user_agent_string: 'Overcast/2.0 (+http://overcast.fm/; iOS podcast app)' 56 | family: 'Overcast' 57 | major: '2' 58 | minor: '0' 59 | patch: 60 | - user_agent_string: 'Overcast/1.0 Podcast Sync (+http://overcast.fm/)' 61 | family: 'Overcast' 62 | major: '1' 63 | minor: '0' 64 | patch: 65 | - user_agent_string: 'Player FM' 66 | family: 'Player FM' 67 | major: 68 | minor: 69 | patch: 70 | - user_agent_string: 'Player/LG Player 1.0 for Android 4.4.2 (stagefright alternative), Player FM' 71 | family: 'Player FM' 72 | major: 73 | minor: 74 | patch: 75 | - user_agent_string: 'AppleCoreMedia/1.0.0.9A405 (iPad; U; CPU OS 5_0_1 like Mac OS X; zh_cn), Player FM' 76 | family: 'Player FM' 77 | major: 78 | minor: 79 | patch: 80 | - user_agent_string: 'Player FM BMID/E6804C1C77' 81 | family: 'Player FM' 82 | major: 'E6804C1C77' 83 | minor: 84 | patch: 85 | - user_agent_string: 'ExoPlayerDemo/4.11 (Linux;Android 5.1.1) ExoPlayerLib/1.5.2' 86 | family: 'ExoPlayerDemo' 87 | major: '4' 88 | minor: '11' 89 | patch: 90 | - user_agent_string: 'Radio/1.0 (Linux;Android 6.0.1) ExoPlayerLib/1.5.2' 91 | family: 'Radio' 92 | major: '1' 93 | minor: '0' 94 | patch: 95 | - user_agent_string: 'AlexaMediaPlayer/5.3.1-21 (Linux;Android 5.1) ExoPlayerLib/1.3.3 ' 96 | family: 'AlexaMediaPlayer' 97 | major: '5' 98 | minor: '3' 99 | patch: '1-21' 100 | - user_agent_string: 'Podkicker/2.2.4' 101 | family: 'Podkicker' 102 | major: '2' 103 | minor: '2' 104 | patch: '4' 105 | - user_agent_string: 'Podkicker Pro/2.2.2 ' 106 | family: 'Podkicker' 107 | major: '2' 108 | minor: '2' 109 | patch: '2' 110 | - user_agent_string: 'Podkicker Classic/1.2.9' 111 | family: 'Podkicker' 112 | major: '1' 113 | minor: '2' 114 | patch: '9' 115 | - user_agent_string: 'Downcast/2.9.13 (iPhone; iOS 9.2.1; Scale/2.00)' 116 | family: 'Downcast' 117 | major: '2' 118 | minor: '9' 119 | patch: '13' 120 | - user_agent_string: 'iTunes/10.7 Downcast/5608' 121 | family: 'Downcast' 122 | major: '5608' 123 | minor: 124 | patch: 125 | - user_agent_string: 'Downcast/2.9.10 (Mac OS X Version 10.11.3 (Build 15D21))' 126 | family: 'Downcast' 127 | major: '2' 128 | minor: '9' 129 | patch: '10' 130 | - user_agent_string: 'iTunes/10.7 Downcast/2.8.14.1002' 131 | family: 'Downcast' 132 | major: '2' 133 | minor: '8' 134 | patch: '14' 135 | patch_minor: '1002' 136 | - user_agent_string: 'ESPN%20Radio/3.2.113 CFNetwork/485.12.30 Darwin/10.4.0' 137 | family: 'ESPN' 138 | major: '3' 139 | minor: '2' 140 | patch: '113' 141 | - user_agent_string: 'ESPN Radio/3.2.113 CFNetwork/485.12.30 Darwin/10.4.0' 142 | family: 'ESPN' 143 | major: '3' 144 | minor: '2' 145 | patch: '113' 146 | - user_agent_string: 'Stitcher/28420 CFNetwork/548.1.4 Darwin/11.0.0' 147 | family: 'Stitcher' 148 | major: '28420' 149 | minor: 150 | patch: 151 | - user_agent_string: 'Stitcher/3.310746 CFNetwork/459 Darwin/10.0.0d3' 152 | family: 'Stitcher' 153 | major: '3' 154 | minor: '310746' 155 | patch: 156 | - user_agent_string: 'Mark%20Levin%20Show/11 CFNetwork/758.3.15 Darwin/15.4.0' 157 | family: 'Mark%20Levin%20Show' 158 | major: '11' 159 | minor: 160 | patch: 161 | - user_agent_string: 'The%20Dan%20Patrick%20Show/11 CFNetwork/758.2.8 Darwin/15.0.0' 162 | family: 'The%20Dan%20Patrick%20Show' 163 | major: '11' 164 | minor: 165 | patch: 166 | - user_agent_string: 'The Dan Patrick Show/11 CFNetwork/758.2.8 Darwin/15.0.0' 167 | family: 'The Dan Patrick Show' 168 | major: '11' 169 | minor: 170 | patch: 171 | - user_agent_string: '77%20WABC/11 CFNetwork/758.3.15 Darwin/15.4.0' 172 | family: '77%20WABC' 173 | major: '11' 174 | minor: 175 | patch: 176 | - user_agent_string: '77 WABC/11 CFNetwork/758.3.15 Darwin/15.4.0' 177 | family: '77 WABC' 178 | major: '11' 179 | minor: 180 | patch: 181 | - user_agent_string: 'KNBR%20680/11 CFNetwork/758.3.15 Darwin/15.4.0' 182 | family: 'KNBR%20680' 183 | major: '11' 184 | minor: 185 | patch: 186 | - user_agent_string: 'PodcastOne/3.0.6 CFNetwork/758.3.15 Darwin/15.4.0' 187 | family: 'PodcastOne' 188 | major: '3' 189 | minor: '0' 190 | patch: '6' 191 | - user_agent_string: 'PodcastOne/2.0 CFNetwork/758.2.8 Darwin/15.0.0 ' 192 | family: 'PodcastOne' 193 | major: '2' 194 | minor: '0' 195 | patch: 196 | - user_agent_string: 'AudioBoom/226 CFNetwork/758.3.15 Darwin/15.4.0' 197 | family: 'AudioBoom' 198 | major: '226' 199 | minor: 200 | patch: 201 | - user_agent_string: 'https://audioboom.com/boos/' 202 | family: 'AudioBoom' 203 | major: 204 | minor: 205 | patch: 206 | - user_agent_string: 'Sports%20Talk%201050/10 CFNetwork/758.3.15 Darwin/15.4.0' 207 | family: 'Sports%20Talk%201050' 208 | major: '10' 209 | minor: 210 | patch: 211 | - user_agent_string: 'PodCruncher/3.2 CFNetwork/758.2.8 Darwin/15.0.0' 212 | family: 'PodCruncher' 213 | major: '3' 214 | minor: '2' 215 | patch: 216 | - user_agent_string: 'iTunes/10.5.2 (PodCruncher 2.2)' 217 | family: 'PodCruncher' 218 | major: '2' 219 | minor: '2' 220 | patch: 221 | - user_agent_string: 'Zune/4.8' 222 | family: 'Zune' 223 | major: '4' 224 | minor: '8' 225 | patch: 226 | - user_agent_string: 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; Zune 4.7)' 227 | family: 'Zune' 228 | major: '4' 229 | minor: '7' 230 | patch: 231 | - user_agent_string: 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; OverDrive Download Station 1.0; Zune 4.7; .NET4.0C)' 232 | family: 'Zune' 233 | major: '4' 234 | minor: '7' 235 | patch: 236 | - user_agent_string: 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Zune 4.0; InfoPath.3; MS-RTC LM 8; .NET4.0C; .NET4.0E)' 237 | family: 'Zune' 238 | major: '4' 239 | minor: '0' 240 | patch: 241 | - user_agent_string: 'RSSRadio/8899 (iPhone,iPhone OS,9.3)' 242 | family: 'RSSRadio' 243 | major: '8899' 244 | minor: 245 | patch: 246 | - user_agent_string: 'RSSRadio (Push Notification Scanner;support@dorada.co.uk)' 247 | family: 'RSSRadio' 248 | major: 249 | minor: 250 | patch: 251 | - user_agent_string: 'RSS_Radio 1.5' 252 | family: 'RSSRadio' 253 | major: '1' 254 | minor: '5' 255 | patch: 256 | - user_agent_string: 'RSSRadio/2.68.14049 CFNetwork/672.1.15 Darwin/14.0.0' 257 | family: 'RSSRadio' 258 | major: '2' 259 | minor: '68' 260 | patch: '14049' 261 | - user_agent_string: 'Lavf/56.15.102' 262 | family: 'WMPlayer' 263 | major: 264 | minor: 265 | patch: 266 | - user_agent_string: 'Lavf52.64.2' 267 | family: 'WMPlayer' 268 | major: 269 | minor: 270 | patch: 271 | - user_agent_string: 'Lavf53.32.100/WinampMPEG/2.8' 272 | family: 'WMPlayer' 273 | major: 274 | minor: 275 | patch: 276 | - user_agent_string: 'Lavf52.104.0 WMPlayer/10.0.0.364 guid/3300AD50-2C39-46C0-AE0A-AC7B8159E203' 277 | family: 'WMPlayer' 278 | major: '10' 279 | minor: '0' 280 | patch: '0' 281 | patch_minor: '364' 282 | - user_agent_string: 'WMPlayer/10.0.0.364 guid/3300AD50-2C39-46C0-AE0A-AC7B8159E203' 283 | family: 'WMPlayer' 284 | major: '10' 285 | minor: '0' 286 | patch: '0' 287 | patch_minor: '364' 288 | - user_agent_string: 'AntennaPod/1.5.2.0' 289 | family: 'AntennaPod' 290 | major: '1' 291 | minor: '5' 292 | patch: '2' 293 | patch_minor: '0' 294 | - user_agent_string: 'Antenna/965 CFNetwork/758.2.8 Darwin/15.0.0' 295 | family: 'AntennaPod' 296 | major: '965' 297 | minor: 298 | patch: 299 | - user_agent_string: 'AntennaPod/1.2.1' 300 | family: 'AntennaPod' 301 | major: '1' 302 | minor: '2' 303 | patch: '1' 304 | - user_agent_string: 'HTC Streaming Player htc / 1.0 / cingular_us / 5.0.2' 305 | family: 'HTC' 306 | major: '5' 307 | minor: '0' 308 | patch: '2' 309 | - user_agent_string: 'HTC Streaming Player utstarcom_wwe-generic / 1.0 / htc_kingdom / 2.3.4' 310 | family: 'HTC' 311 | major: '2' 312 | minor: '3' 313 | patch: '4' 314 | - user_agent_string: 'HTC Streaming Player telus_wwe / 1.0 / htc_ruby / 4.0.3' 315 | family: 'HTC' 316 | major: '4' 317 | minor: '0' 318 | patch: '3' 319 | - user_agent_string: 'HTC Streaming Player htc / 1.0 / himauhl_htc_asia_tw / 6.0 ' 320 | family: 'HTC' 321 | major: '6' 322 | minor: '0' 323 | patch: 324 | - user_agent_string: 'ZDM/4.0; Windows Mobile 8.1' 325 | family: 'ZDM' 326 | major: '4' 327 | minor: '0' 328 | patch: 329 | - user_agent_string: 'bPod' 330 | family: 'bPod' 331 | major: 332 | minor: 333 | patch: 334 | - user_agent_string: 'bPod BMID/E679FACD4C' 335 | family: 'bPod' 336 | major: 'E679FACD4C' 337 | minor: 338 | patch: 339 | - user_agent_string: 'PodcastAddict/v2 - Dalvik/2.1.0 (Linux; U; Android 6.0; LG-H811 Build/MRA58K)' 340 | family: 'PodcastAddict' 341 | major: '2' 342 | minor: 343 | patch: 344 | - user_agent_string: 'Podcast Addict - Dalvik/2.1.0 (Linux; U; Android 5.1.1; SM-G920P Build/LMY47X)' 345 | family: 'PodcastAddict' 346 | major: 347 | minor: 348 | patch: 349 | - user_agent_string: 'LG-H345/V10f Player/LG Player 1.0 for Android 5.1.1 (stagefright alternative)' 350 | family: 'LG Player' 351 | major: '1' 352 | minor: '0' 353 | patch: 354 | - user_agent_string: 'Player/LG Player 1.0 for Android 6.0 (stagefright alternative)' 355 | family: 'LG Player' 356 | major: '1' 357 | minor: '0' 358 | patch: 359 | - user_agent_string: 'EspnDownloadManager' 360 | family: 'ESPN' 361 | major: 362 | minor: 363 | patch: 364 | - user_agent_string: 'ESPN Radio 4.7.4 rv:1032 (iPhone; iPhone OS 9.2.1; en_US)' 365 | family: 'ESPN' 366 | major: '4' 367 | minor: '7' 368 | patch: '4' 369 | patch_minor: '1032' 370 | - user_agent_string: 'ESPN Radio 4.5.1 (iPhone; iPhone OS 5.1.1; en_US)' 371 | family: 'ESPN' 372 | major: '4' 373 | minor: '5' 374 | patch: '1' 375 | - user_agent_string: 'ESPN Radio 4.0 (iPhone; iPhone OS 7.1.2; en_AU)' 376 | family: 'ESPN' 377 | major: '4' 378 | minor: '0' 379 | patch: 380 | - user_agent_string: 'http://c.espnradio.com/s:' 381 | family: 'ESPN' 382 | major: 383 | minor: 384 | patch: 385 | - user_agent_string: 'Mozilla/5.0 (Linux; Android 4.4.4; HP Slate 17 Build/KTU84P) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Safari/537.36ESPN APP' 386 | family: 'ESPN' 387 | major: 388 | minor: 389 | patch: 390 | - user_agent_string: 'Mozilla/5.0 (compatible; heritrix/3.2.0 +http://espn.go.com' 391 | family: 'ESPN' 392 | major: 393 | minor: 394 | patch: 395 | - user_agent_string: 'Custom-Feed Reader' 396 | family: 'Custom' 397 | major: 398 | minor: 399 | patch: 400 | - user_agent_string: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.34 (KHTML, like Gecko) amarok/2.8.0 Safari/534.34' 401 | family: 'Amarok' 402 | major: '2' 403 | minor: '8' 404 | patch: '0' 405 | - user_agent_string: 'amarok/2.8.0 (Phonon/4.8.0; Phonon-VLC/0.8.0) LibVLC/2.2.1' 406 | family: 'Amarok' 407 | major: '2' 408 | minor: '8' 409 | patch: '0' 410 | - user_agent_string: 'Banshee/2.6.2 (http://banshee-project.org/)' 411 | family: 'Banshee' 412 | major: '2' 413 | minor: '6' 414 | patch: '2' 415 | - user_agent_string: 'gPodder/3.7.0 (+http://gpodder.org/)' 416 | family: 'gPodder' 417 | major: '3' 418 | minor: '7' 419 | patch: '0' 420 | - user_agent_string: 'jPodder v 1.1 RC3' 421 | family: 'jPodder' 422 | major: '1' 423 | minor: '1' 424 | patch: 425 | - user_agent_string: 'iPodder/2.1 +http://ipodder.sf.net/' 426 | family: 'iPodder' 427 | major: '2' 428 | minor: '1' 429 | patch: 430 | - user_agent_string: 'massyn.net philpodder/1.6 (linux)' 431 | family: 'philpodder' 432 | major: '1' 433 | minor: '6' 434 | patch: 435 | - user_agent_string: 'BashPodder' 436 | family: 'BashPodder' 437 | major: 438 | minor: 439 | patch: 440 | - user_agent_string: 'Clementine-qt5 1.2.3' 441 | family: 'Clementine' 442 | major: '1' 443 | minor: '2' 444 | patch: '3' 445 | - user_agent_string: 'Clementine 1.2.3-1457-g4db358a' 446 | family: 'Clementine' 447 | major: '1' 448 | minor: '2' 449 | patch: '3-1457-g4db358a' 450 | - user_agent_string: 'Clementine 1.2.3' 451 | family: 'Clementine' 452 | major: '1' 453 | minor: '2' 454 | patch: '3' 455 | - user_agent_string: 'Clementine 1.2' 456 | family: 'Clementine' 457 | major: '1' 458 | minor: '2' 459 | patch: 460 | - user_agent_string: 'Clementine 1.2.2 Clementine 1.2.2 Clementine 1.2.2' 461 | family: 'Clementine' 462 | major: '1' 463 | minor: '2' 464 | patch: '2' 465 | - user_agent_string: 'foobar2000/1.1.14a' 466 | family: 'foobar' 467 | major: '1' 468 | minor: '1' 469 | patch: '14a' 470 | - user_agent_string: 'foobar2000/1.2.3' 471 | family: 'foobar' 472 | major: '1' 473 | minor: '2' 474 | patch: '3' 475 | - user_agent_string: 'Juice/2.2 (Windows) +http://juicereceiver.sf.net/' 476 | family: 'Juice' 477 | major: '2' 478 | minor: '2' 479 | patch: 480 | - user_agent_string: 'Liferea/0.x.x (Linux; en_US.UTF-8; http://liferea.sf.net/)' 481 | family: 'Liferea' 482 | major: '0' 483 | minor: 'x' 484 | patch: 'x' 485 | - user_agent_string: 'MediaGo' 486 | family: 'MediaGo' 487 | major: 488 | minor: 489 | patch: 490 | - user_agent_string: 'MediaGo/3.0.0.403 (Windows NT 6.3; WOW64) NetworkDownloader/1.6.01.0 PlaybackEngine/2.20.103.05220' 491 | family: 'MediaGo' 492 | major: '3' 493 | minor: '0' 494 | patch: '0' 495 | patch_minor: '403' 496 | - user_agent_string: 'MediaMonkey' 497 | family: 'MediaMonkey' 498 | major: 499 | minor: 500 | patch: 501 | - user_agent_string: 'MediaMonkey 4.1.9.1764' 502 | family: 'MediaMonkey' 503 | major: '4' 504 | minor: '1' 505 | patch: '9' 506 | patch_minor: '1764' 507 | - user_agent_string: 'Miro/6.0 (http://www.getmiro.com/; Windows post2008Server x86) ' 508 | family: 'Miro' 509 | major: '6' 510 | minor: '0' 511 | patch: 512 | - user_agent_string: 'Miro/3.0.3 (http://www.getmiro.com/; Microsoft Windows )' 513 | family: 'Miro' 514 | major: '3' 515 | minor: '0' 516 | patch: '3' 517 | - user_agent_string: 'Fancy Cloud Music 1.4 build 2 (iPhone; iPhone OS 9.2.1; en_US)' 518 | family: 'FancyMusic' 519 | major: '1' 520 | minor: '4' 521 | patch: 522 | - user_agent_string: 'FancyMusic 1.5.0 build 5 (iPod touch; iPhone OS 9.2.1; en_US)' 523 | family: 'FancyMusic' 524 | major: '1' 525 | minor: '5' 526 | patch: '0' 527 | - user_agent_string: 'VOX Music Player' 528 | family: 'VOX' 529 | major: 530 | minor: 531 | patch: 532 | - user_agent_string: 'NetNewsWire/3.3 (Mac OS X; http://netnewswireapp.com/mac/; gzip-happy)' 533 | family: 'NetNewsWire' 534 | major: '3' 535 | minor: '3' 536 | patch: 537 | - user_agent_string: 'NetNewsWire/3.1.7 (Mac OS X; http://www.newsgator.com/Individuals/NetNewsWire/)' 538 | family: 'NetNewsWire' 539 | major: '3' 540 | minor: '1' 541 | patch: '7' 542 | - user_agent_string: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/601.4.4 (KHTML, like Gecko) NetNewsWire/3.2' 543 | family: 'NetNewsWire' 544 | major: '3' 545 | minor: '2' 546 | patch: 547 | - user_agent_string: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/600.8.9 (KHTML, like Gecko) NetNewsWire/3.3.2' 548 | family: 'NetNewsWire' 549 | major: '3' 550 | minor: '3' 551 | patch: '2' 552 | - user_agent_string: 'Mozilla/5.0 (Linux; Android 5.0; Rivo RHYTHM RX75 Build/LRX21M) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Mobile Safari/537.36; | 2016-04-07 14:37:04' 553 | family: 'Rivo' 554 | major: 555 | minor: 556 | patch: 557 | - user_agent_string: 'Spotify' 558 | family: 'Spotify' 559 | major: 560 | minor: 561 | patch: 562 | - user_agent_string: 'Spotify/1.0' 563 | family: 'Spotify' 564 | major: '1' 565 | minor: '0' 566 | patch: 567 | - user_agent_string: 'VLC/2.0.6 LibVLC/2.0.6' 568 | family: 'VLC' 569 | major: '2' 570 | minor: '0' 571 | patch: '6' 572 | - user_agent_string: 'vlc/1.1.0 LibVLC/1.1.0' 573 | family: 'VLC' 574 | major: '1' 575 | minor: '1' 576 | patch: '0' 577 | - user_agent_string: 'VLC/3.0.0-git LibVLC/3.0.0-git BMID/E67AB28521' 578 | family: 'VLC' 579 | major: '3' 580 | minor: '0' 581 | patch: '0-git' 582 | - user_agent_string: 'Mozilla/5.0 (iPhone; CPU OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/9.3 Mobile/11A465 Safari/9537.53 VLC for iOS/2.7.2' 583 | family: 'VLC' 584 | major: 585 | minor: 586 | patch: 587 | - user_agent_string: 'VLC media player - version 1.0.3 Goldeneye - (c) 1996-2009 the VideoLAN team' 588 | family: 'VLC' 589 | major: '1' 590 | minor: '0' 591 | patch: '3' 592 | - user_agent_string: 'VLC/2.2.0-rc1 LibVLC/2.2.0-rc1' 593 | family: 'VLC' 594 | major: '2' 595 | minor: '2' 596 | patch: '0-rc1' 597 | - user_agent_string: 'VLC/2.2.0-pre4 LibVLC/2.2.0-pre4' 598 | family: 'VLC' 599 | major: '2' 600 | minor: '2' 601 | patch: '0-pre4' 602 | - user_agent_string: 'CITA RSS Aggregator/2.7' 603 | family: 'CITA' 604 | major: '2' 605 | minor: '7' 606 | patch: 607 | - user_agent_string: 'Doppler 2.9.5.4' 608 | family: 'Doppler' 609 | major: '2' 610 | minor: '9' 611 | patch: '5' 612 | patch_minor: '4' 613 | - user_agent_string: 'GoldenPod/0.8.4 (GNU/Linux; podcatcher; Using LWP) libwwwperl' 614 | family: 'GoldenPod' 615 | major: '0' 616 | minor: '8' 617 | patch: '4' 618 | - user_agent_string: 'Replay AV' 619 | family: 'Replay' 620 | major: 621 | minor: 622 | patch: 623 | - user_agent_string: 'MusicDownloaderLite/1.0.1 CFNetwork/609.1.4 Darwin/13.0.0' 624 | family: 'MusicDownloader' 625 | major: '1' 626 | minor: '0' 627 | patch: '1' 628 | - user_agent_string: 'MusicDownloader/2.0.3 CFNetwork/548.0.4 Darwin/11.0.0' 629 | family: 'MusicDownloader' 630 | major: '2' 631 | minor: '0' 632 | patch: '3' 633 | - user_agent_string: 'Plugged%20-%20Stream%20Podcasts%2C%20Music%20&%20More%20Free/5.0 CFNetwork/711.5.6 Darwin/14.0.0' 634 | family: 'Plugged%20-%20Stream%20Podcasts%2C%20Music%20&%20More%20Free' 635 | major: '5' 636 | minor: '0' 637 | patch: 638 | - user_agent_string: 'PodWrangler/1.1 CFNetwork/672.1.15 Darwin/14.0.0' 639 | family: 'PodWrangler' 640 | major: '1' 641 | minor: '1' 642 | patch: 643 | - user_agent_string: 'Custom/12 CFNetwork/758.2.8 Darwin/15.0.0' 644 | family: 'Custom' 645 | major: '12' 646 | minor: 647 | patch: 648 | - user_agent_string: 'GoodReader4/100 CFNetwork/758.3.15 Darwin/15.4.0' 649 | family: 'GoodReader4' 650 | major: '100' 651 | minor: 652 | patch: 653 | - user_agent_string: 'Free-Podcasts/132 CFNetwork/758.2.8 Darwin/15.0.0' 654 | family: 'Free-Podcasts' 655 | major: '132' 656 | minor: 657 | patch: 658 | - user_agent_string: 'Free-Podcasts/1.05 CFNetwork/609 Darwin/13.0.0' 659 | family: 'Free-Podcasts' 660 | major: '1' 661 | minor: '05' 662 | patch: 663 | - user_agent_string: 'TopPodcasts/261 CFNetwork/758.0.2 Darwin/15.0.0' 664 | family: 'TopPodcasts' 665 | major: '261' 666 | minor: 667 | patch: 668 | - user_agent_string: 'TopPodcastsPro/201 CFNetwork/758.2.8 Darwin/15.0.0' 669 | family: 'TopPodcasts' 670 | major: '201' 671 | minor: 672 | patch: 673 | - user_agent_string: 'TopPodcasts/2.1.4 CFNetwork/672.1.15 Darwin/14.0.0' 674 | family: 'TopPodcasts' 675 | major: '2' 676 | minor: '1' 677 | patch: '4' 678 | - user_agent_string: 'Podcasts/2.2' 679 | family: 'Podcasts' 680 | major: '2' 681 | minor: '2' 682 | patch: 683 | - user_agent_string: 'Podcasts/1.4.113' 684 | family: 'Podcasts' 685 | major: '1' 686 | minor: '4' 687 | patch: '113' 688 | - user_agent_string: 'Peapod/pre1.0 +http://www.peapodpy.org.uk' 689 | family: 'Peapod' 690 | major: 'pre1' 691 | minor: '0' 692 | patch: 693 | - user_agent_string: 'Peapod/1.0 +http://www.peapodpy.org.uk' 694 | family: 'Peapod' 695 | major: '1' 696 | minor: '0' 697 | patch: 698 | - user_agent_string: 'podracer v1.4.1; GNU/Linux; x86_64' 699 | family: 'podracer' 700 | major: '1' 701 | minor: '4' 702 | patch: '1' 703 | - user_agent_string: 'Kinoma5' 704 | family: 'Kinoma' 705 | major: '5' 706 | minor: 707 | patch: 708 | - user_agent_string: 'QuickTime/7.6' 709 | family: 'QuickTime' 710 | major: '7' 711 | minor: '6' 712 | patch: 713 | - user_agent_string: 'QuickTime.7.6.6' 714 | family: 'QuickTime' 715 | major: '7' 716 | minor: '6' 717 | patch: '6' 718 | - user_agent_string: 'QuickNews/1.25' 719 | family: 'QuickNews' 720 | major: '1' 721 | minor: '25' 722 | patch: 723 | - user_agent_string: 'Mozilla/5.0 (Linux; U; Windows NT 6.1; en-us; dream) DoggCatcher' 724 | family: 'DoggCatcher' 725 | major: 726 | minor: 727 | patch: 728 | - user_agent_string: 'DoggCatcher/1.2' 729 | family: 'DoggCatcher' 730 | major: '1' 731 | minor: '2' 732 | patch: 733 | -------------------------------------------------------------------------------- /UAParser.FormFactor.Tests/UAParser.FormFactor.Tests.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | net472;net462 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /UAParser.FormFactor.Tests/UserAgentOsResourceTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | 3 | namespace UAParser.FormFactor.Tests 4 | { 5 | [TestFixture] 6 | [Parallelizable] 7 | public class UserAgentOsResourceTests : ResourceTests 8 | { 9 | [Test] 10 | public void CanRunUserAgentParserOsTests() 11 | { 12 | RunTests("UAParser.FormFactor.Tests.Resources.test_os.yaml", OSYamlTestCase.ReadFromMap); 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /UAParser.FormFactor.Tests/UserAgentResourceTests.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | 3 | namespace UAParser.FormFactor.Tests 4 | { 5 | [TestFixture] 6 | [Parallelizable] 7 | public class UserAgentResourceTests : ResourceTests 8 | { 9 | [Test] 10 | public void CanRunUserAgentParserTests() 11 | { 12 | RunTests("UAParser.FormFactor.Tests.Resources.test_ua.yaml", UserAgentYamlTestCase.ReadFromMap); 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /UAParser.FormFactor.Tests/UserAgentYamlTestCase.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using NUnit.Framework; 3 | using UAParser.FormFactor.Models; 4 | 5 | namespace UAParser.FormFactor.Tests 6 | { 7 | public class UserAgentYamlTestCase : YamlTestCase 8 | { 9 | public string Family { get; set; } 10 | 11 | public string Major { get; set; } 12 | 13 | public string Minor { get; set; } 14 | 15 | public string Patch { get; set; } 16 | 17 | public static UserAgentYamlTestCase ReadFromMap(Dictionary map) 18 | { 19 | var tc = new UserAgentYamlTestCase() 20 | { 21 | UserAgent = map["user_agent_string"], 22 | Family = map["family"], 23 | Major = map["major"], 24 | Minor = map["minor"], 25 | Patch = map["patch"], 26 | }; 27 | return tc; 28 | } 29 | 30 | public override void Verify(ClientInfo clientInfo) 31 | { 32 | Assert.NotNull(clientInfo); 33 | AssertMatch(Family, clientInfo.UA.Family, "Family"); 34 | AssertMatch(Major, clientInfo.UA.Major, "Major"); 35 | AssertMatch(Minor, clientInfo.UA.Minor, "Minor"); 36 | AssertMatch(Patch, clientInfo.UA.Patch, "Patch"); 37 | } 38 | } 39 | } -------------------------------------------------------------------------------- /UAParser.FormFactor.Tests/YamlParsingTests.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using System.Linq; 4 | using NUnit.Framework; 5 | using UAParser.FormFactor.Utils; 6 | using YamlDotNet.RepresentationModel; 7 | 8 | namespace UAParser.FormFactor.Tests 9 | { 10 | [TestFixture] 11 | [Parallelizable] 12 | public class YamlParsingTests 13 | { 14 | [Test] 15 | public void CanParseSameRegexesUsingMinimalYamlParser() 16 | { 17 | //read in the yaml file in fully functional yaml parser 18 | var yamlContent = this.GetTestResources("UAParser.FormFactor.Tests.Resources.regexes.yaml"); 19 | Assert.NotNull(yamlContent); 20 | Assert.AreNotEqual("", yamlContent); 21 | 22 | var yaml = new YamlStream(); 23 | yaml.Load(new StringReader(yamlContent)); 24 | 25 | // read into the minimal parser 26 | var minimal = new MinimalYamlParser(yamlContent); 27 | 28 | var entries = 29 | from doc in yaml.Documents 30 | select doc.RootNode as YamlMappingNode into rn 31 | where rn != null 32 | from e in rn.Children 33 | select new 34 | { 35 | Key = e.Key as YamlScalarNode, 36 | Value = e.Value as YamlSequenceNode 37 | } into e 38 | where e.Key != null && e.Value != null 39 | select e; 40 | 41 | var config = entries.ToDictionary(e => e.Key.Value, 42 | e => e.Value, 43 | StringComparer.OrdinalIgnoreCase); 44 | 45 | foreach (var kvPair in config) 46 | { 47 | var configNode = kvPair.Value; 48 | var valueDic = from node in configNode ?? Enumerable.Empty() 49 | select node as YamlMappingNode 50 | into node 51 | where node != null 52 | select node.Children 53 | .Where(e => e.Key is YamlScalarNode && e.Value is YamlScalarNode) 54 | .GroupBy(e => e.Key.ToString(), e => e.Value.ToString(), StringComparer.OrdinalIgnoreCase) 55 | .ToDictionary(e => e.Key, e => e.Last(), StringComparer.OrdinalIgnoreCase) 56 | into cm 57 | select cm; 58 | 59 | var name = kvPair.Key; 60 | var minimalLookupList = minimal.ReadMapping(name).ToList(); 61 | var yamlDictionaryList = valueDic.ToList(); 62 | 63 | Assert.AreEqual(yamlDictionaryList.Count, minimalLookupList.Count); 64 | for (var i = 0; i < yamlDictionaryList.Count; i++) 65 | { 66 | var yamlDic = yamlDictionaryList[i]; 67 | var minimalLookup = minimalLookupList[i]; 68 | 69 | foreach (var seqKVPair in yamlDic) 70 | { 71 | Assert.True(minimalLookup.ContainsKey(seqKVPair.Key), seqKVPair.Key); 72 | var lookupResult = minimalLookup[seqKVPair.Key]; 73 | Assert.AreEqual(seqKVPair.Value, lookupResult); 74 | } 75 | } 76 | } 77 | } 78 | } 79 | } -------------------------------------------------------------------------------- /UAParser.FormFactor.Tests/YamlTestCase.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | using UAParser.FormFactor.Models; 3 | 4 | namespace UAParser.FormFactor.Tests 5 | { 6 | public abstract class YamlTestCase 7 | { 8 | public string UserAgent { get; set; } 9 | 10 | public abstract void Verify(ClientInfo clientInfo); 11 | 12 | protected void AssertMatch(T expected, T actual, string type) 13 | { 14 | if (typeof(T) == typeof(string)) 15 | { 16 | var exp = expected as string; 17 | var act = actual as string; 18 | 19 | if (string.IsNullOrEmpty(exp) && string.IsNullOrEmpty(act)) 20 | { 21 | return; 22 | } 23 | } 24 | 25 | Assert.True(expected.Equals(actual), type + " did not match. (expected:" + expected + " actual:" + actual + ") in " + UserAgent); 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /UAParser.FormFactor.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.26730.16 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Other", "Other", "{A45DE873-394D-411A-B56F-DBF95B8CBEE4}" 7 | ProjectSection(SolutionItems) = preProject 8 | LICENSE.md = LICENSE.md 9 | README.md = README.md 10 | EndProjectSection 11 | EndProject 12 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UAParser.FormFactor", "UAParser.FormFactor\UAParser.FormFactor.csproj", "{E4AA0437-E276-4D4C-B131-D720B76F648E}" 13 | EndProject 14 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UAParser.FormFactor.Tests", "UAParser.FormFactor.Tests\UAParser.FormFactor.Tests.csproj", "{6DD717D0-3E82-4FD9-88A8-3BDEA8E02DA4}" 15 | EndProject 16 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{A18B149D-9CD1-4046-8FA8-6621155C09D9}" 17 | ProjectSection(SolutionItems) = preProject 18 | appveyor.yml = appveyor.yml 19 | EndProjectSection 20 | EndProject 21 | Global 22 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 23 | Debug|Any CPU = Debug|Any CPU 24 | Release|Any CPU = Release|Any CPU 25 | EndGlobalSection 26 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 27 | {E4AA0437-E276-4D4C-B131-D720B76F648E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 28 | {E4AA0437-E276-4D4C-B131-D720B76F648E}.Debug|Any CPU.Build.0 = Debug|Any CPU 29 | {E4AA0437-E276-4D4C-B131-D720B76F648E}.Release|Any CPU.ActiveCfg = Release|Any CPU 30 | {E4AA0437-E276-4D4C-B131-D720B76F648E}.Release|Any CPU.Build.0 = Release|Any CPU 31 | {6DD717D0-3E82-4FD9-88A8-3BDEA8E02DA4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 32 | {6DD717D0-3E82-4FD9-88A8-3BDEA8E02DA4}.Debug|Any CPU.Build.0 = Debug|Any CPU 33 | {6DD717D0-3E82-4FD9-88A8-3BDEA8E02DA4}.Release|Any CPU.ActiveCfg = Release|Any CPU 34 | {6DD717D0-3E82-4FD9-88A8-3BDEA8E02DA4}.Release|Any CPU.Build.0 = Release|Any CPU 35 | EndGlobalSection 36 | GlobalSection(SolutionProperties) = preSolution 37 | HideSolutionNode = FALSE 38 | EndGlobalSection 39 | GlobalSection(ExtensibilityGlobals) = postSolution 40 | SolutionGuid = {67A261FB-9028-4778-9DEA-03B8E92DFF52} 41 | EndGlobalSection 42 | EndGlobal 43 | -------------------------------------------------------------------------------- /UAParser.FormFactor/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.CompilerServices; 2 | 3 | [assembly:InternalsVisibleTo("UAParser.FormFactor.Tests")] -------------------------------------------------------------------------------- /UAParser.FormFactor/IUAParser.cs: -------------------------------------------------------------------------------- 1 | using UAParser.FormFactor.Models; 2 | 3 | namespace UAParser.FormFactor 4 | { 5 | public interface IUAParser 6 | { 7 | /// 8 | /// Parse a user agent string and obtain all client information 9 | /// 10 | ClientInfo Parse(string uaString); 11 | 12 | /// 13 | /// Parse a user agent string and obtain the OS information 14 | /// 15 | OS ParseOS(string uaString); 16 | 17 | /// 18 | /// Parse a user agent string and obtain the device information 19 | /// 20 | Device ParseDevice(string uaString); 21 | 22 | /// 23 | /// Parse a user agent string and obtain the UserAgent information 24 | /// 25 | UserAgent ParseUserAgent(string uaString); 26 | } 27 | } -------------------------------------------------------------------------------- /UAParser.FormFactor/IUAParserOutput.cs: -------------------------------------------------------------------------------- 1 | using UAParser.FormFactor.Models; 2 | 3 | namespace UAParser.FormFactor 4 | { 5 | /// 6 | /// Representing the parse results. Structure of this class aligns with the 7 | /// ua-parser-output WebIDL structure defined in this document: https://github.com/ua-parser/uap-core/blob/master/docs/specification.md 8 | /// 9 | public interface IUAParserOutput 10 | { 11 | /// 12 | /// The user agent string, the input for the UAParser 13 | /// 14 | string String { get; } 15 | 16 | /// 17 | /// The OS parsed from the user agent string 18 | /// 19 | // ReSharper disable once InconsistentNaming 20 | OS OS { get; } 21 | 22 | /// 23 | /// The Device parsed from the user agent string 24 | /// 25 | Device Device { get; } 26 | 27 | // ReSharper disable once InconsistentNaming 28 | /// 29 | /// The User Agent parsed from the user agent string 30 | /// 31 | UserAgent UA { get; } 32 | } 33 | } -------------------------------------------------------------------------------- /UAParser.FormFactor/Models/ClientInfo.cs: -------------------------------------------------------------------------------- 1 | namespace UAParser.FormFactor.Models 2 | { 3 | /// 4 | /// Represents the user agent client information resulting from parsing 5 | /// a user agent string 6 | /// 7 | public class ClientInfo : IUAParserOutput 8 | { 9 | /// 10 | /// Constructs an instance of the ClientInfo with results of the user agent string parsing 11 | /// 12 | public ClientInfo(string inputString, OS os, Device device, UserAgent userAgent) 13 | { 14 | String = inputString; 15 | OS = os; 16 | Device = device; 17 | UA = userAgent; 18 | } 19 | 20 | /// 21 | /// The user agent string, the input for the UAParser 22 | /// 23 | public string String { get; } 24 | 25 | /// 26 | /// The OS parsed from the user agent string 27 | /// 28 | public OS OS { get; } 29 | 30 | /// 31 | /// The Device parsed from the user agent string 32 | /// 33 | public Device Device { get; } 34 | 35 | /// 36 | /// The User Agent parsed from the user agent string 37 | /// 38 | public UserAgent UserAgent => UA; 39 | 40 | /// 41 | /// The User Agent parsed from the user agent string 42 | /// 43 | public UserAgent UA { get; } 44 | 45 | /// 46 | /// A readable description of the user agent client information 47 | /// 48 | /// 49 | public override string ToString() 50 | { 51 | return $"{OS} {Device} {UA}"; 52 | } 53 | } 54 | } -------------------------------------------------------------------------------- /UAParser.FormFactor/Models/Device.cs: -------------------------------------------------------------------------------- 1 | namespace UAParser.FormFactor.Models 2 | { 3 | /// 4 | /// Represents the physical device the user agent is using 5 | /// 6 | public class Device 7 | { 8 | /// 9 | /// Constructs a Device instance 10 | /// 11 | public Device(string family, string brand, string model, DeviceFormFactor formFactor) 12 | { 13 | Family = family.Trim(); 14 | 15 | if (brand != null) 16 | { 17 | Brand = brand.Trim(); 18 | } 19 | 20 | if (model != null) 21 | { 22 | Model = model.Trim(); 23 | } 24 | 25 | FormFactor = formFactor; 26 | } 27 | 28 | /// 29 | /// Returns true if the device is likely to be a spider or a bot device 30 | /// 31 | public bool IsSpider => FormFactor == DeviceFormFactor.Spider; 32 | 33 | /// 34 | ///The brand of the device 35 | /// 36 | public string Brand { get; } 37 | 38 | /// 39 | /// The family of the device, if available 40 | /// 41 | public string Family { get; } 42 | 43 | /// 44 | /// The model of the device, if available 45 | /// 46 | public string Model { get; } 47 | 48 | /// 49 | /// A form factor of the device 50 | /// 51 | public DeviceFormFactor FormFactor { get; } 52 | 53 | /// 54 | /// A readable description of the device 55 | /// 56 | public override string ToString() 57 | { 58 | return Family; 59 | } 60 | } 61 | } -------------------------------------------------------------------------------- /UAParser.FormFactor/Models/DeviceFormFactor.cs: -------------------------------------------------------------------------------- 1 | namespace UAParser.FormFactor.Models 2 | { 3 | /// 4 | /// A form factor of the device 5 | /// 6 | public enum DeviceFormFactor 7 | { 8 | Unknown = -1, 9 | Mobile, 10 | Tablet, 11 | Desktop, 12 | Spider, 13 | TvOrConsole 14 | } 15 | } -------------------------------------------------------------------------------- /UAParser.FormFactor/Models/OS.cs: -------------------------------------------------------------------------------- 1 | using UAParser.FormFactor.Utils; 2 | 3 | namespace UAParser.FormFactor.Models 4 | { 5 | /// 6 | /// Represents the operating system the user agent runs on 7 | /// 8 | // ReSharper disable once InconsistentNaming 9 | public class OS 10 | { 11 | /// 12 | /// Constructs an OS instance 13 | /// 14 | public OS(string family, string major, string minor, string patch, string patchMinor) 15 | { 16 | Family = family; 17 | Major = major; 18 | Minor = minor; 19 | Patch = patch; 20 | PatchMinor = patchMinor; 21 | } 22 | 23 | /// 24 | /// The familiy of the OS 25 | /// 26 | public string Family { get; } 27 | 28 | /// 29 | /// The major version of the OS, if available 30 | /// 31 | public string Major { get; } 32 | 33 | /// 34 | /// The minor version of the OS, if available 35 | /// 36 | public string Minor { get; } 37 | 38 | /// 39 | /// The patch version of the OS, if available 40 | /// 41 | public string Patch { get; } 42 | 43 | /// 44 | /// The minor patch version of the OS, if available 45 | /// 46 | public string PatchMinor { get; } 47 | 48 | /// 49 | /// A readable description of the OS 50 | /// 51 | /// 52 | public override string ToString() 53 | { 54 | var version = VersionString.Format(Major, Minor, Patch, PatchMinor); 55 | return Family + (!string.IsNullOrEmpty(version) ? " " + version : null); 56 | } 57 | } 58 | } -------------------------------------------------------------------------------- /UAParser.FormFactor/Models/UserAgent.cs: -------------------------------------------------------------------------------- 1 | using UAParser.FormFactor.Utils; 2 | 3 | namespace UAParser.FormFactor.Models 4 | { 5 | /// 6 | /// Represents a user agent, commonly a browser 7 | /// 8 | public class UserAgent 9 | { 10 | /// 11 | /// Construct a UserAgent instance 12 | /// 13 | public UserAgent(string family, string major, string minor, string patch) 14 | { 15 | Family = family; 16 | Major = major; 17 | Minor = minor; 18 | Patch = patch; 19 | } 20 | 21 | /// 22 | /// The family of user agent 23 | /// 24 | public string Family { get; } 25 | 26 | /// 27 | /// Major version of the user agent, if available 28 | /// 29 | public string Major { get; } 30 | 31 | /// 32 | /// Minor version of the user agent, if available 33 | /// 34 | public string Minor { get; } 35 | 36 | /// 37 | /// Patch version of the user agent, if available 38 | /// 39 | public string Patch { get; } 40 | 41 | /// 42 | /// The user agent as a readbale string 43 | /// 44 | /// 45 | public override string ToString() 46 | { 47 | var version = VersionString.Format(Major, Minor, Patch); 48 | return Family + (!string.IsNullOrEmpty(version) ? " " + version : null); 49 | } 50 | } 51 | } -------------------------------------------------------------------------------- /UAParser.FormFactor/Parser.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Reflection; 6 | using System.Text.RegularExpressions; 7 | using UAParser.FormFactor.Models; 8 | using UAParser.FormFactor.Utils; 9 | 10 | namespace UAParser.FormFactor 11 | { 12 | /// 13 | /// Represents a parser of a user agent string 14 | /// 15 | public class Parser : IUAParser 16 | { 17 | private static readonly Regex _mobileUserAgentCommon = CreateFormFactorRegex(@"(android|bb\d+|meego|tizen).+?mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino"); 18 | private static readonly Regex _mobileUserAgentExtra = CreateFormFactorRegex(@"1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-"); 19 | private static readonly Regex _tabletUserAgent = CreateFormFactorRegex(@"android|ipad|playbook|silk|tablet"); 20 | private static readonly Regex _tvUserAgent = CreateFormFactorRegex(@"smart[- ]?tv|apple\s?tv|googletv|android tv|opera tv|dtvnetbrowser|sonycebrowser|bravia 4k|netflix|pov_tv-hdmi-200bt| dlnadoc\/|hbbtv|tv safari|roku\/dvp|nsz-gs7\/gx70|crkey| aftm | aftt | gtv100|nintendobrowser|playstation"); 21 | private static readonly Regex _desktopUserAgent = CreateFormFactorRegex(@"windows nt |windows;|firefox| chrome|netscape|iceweasel|seamonkey|icedove|iceowl|iceape|opera"); 22 | 23 | private readonly Func _osParser; 24 | private readonly Func _deviceParser; 25 | private readonly Func _userAgentParser; 26 | 27 | private Parser(MinimalYamlParser yamlParser, ParserOptions options) 28 | { 29 | const string other = "Other"; 30 | 31 | var config = new Config(options ?? new ParserOptions()); 32 | 33 | _userAgentParser = CreateParser(Read(yamlParser.ReadMapping("user_agent_parsers"), config.UserAgentSelector), new UserAgent(other, null, null, null)); 34 | _osParser = CreateParser(Read(yamlParser.ReadMapping("os_parsers"), config.OSSelector), new OS(other, null, null, null, null)); 35 | _deviceParser = CreateParser(Read(yamlParser.ReadMapping("device_parsers"), config.DeviceSelector), new Device(other, string.Empty, string.Empty, DeviceFormFactor.Desktop)); 36 | } 37 | 38 | private static Regex CreateFormFactorRegex(string pattern) 39 | { 40 | return new Regex(pattern, RegexOptions.Multiline | RegexOptions.IgnoreCase | RegexOptions.Compiled); 41 | } 42 | 43 | private static IEnumerable Read(IEnumerable> entries, Func, T> selector) 44 | { 45 | return from cm in entries select selector(cm.Find); 46 | } 47 | 48 | /// 49 | /// Returns a instance based on the regex definitions in a yaml string 50 | /// 51 | /// a string containing yaml definitions of reg-ex 52 | /// specifies the options for the parser 53 | /// A instance parsing user agent strings based on the regexes defined in the yaml string 54 | public static IUAParser FromYaml(string yaml, ParserOptions parserOptions = null) 55 | { 56 | return new Parser(new MinimalYamlParser(yaml), parserOptions); 57 | } 58 | 59 | /// 60 | /// Returns a instance based on the embedded regex definitions. 61 | /// The embedded regex definitions may be outdated. Consider passing in external yaml definitions using 62 | /// 63 | /// specifies the options for the parser 64 | /// 65 | public static IUAParser GetDefault(ParserOptions parserOptions = null) 66 | { 67 | using (var stream = typeof(Parser).GetTypeInfo().Assembly.GetManifestResourceStream("UAParser.FormFactor.regexes.yaml")) 68 | using (var reader = new StreamReader(stream)) 69 | { 70 | return new Parser(new MinimalYamlParser(reader.ReadToEnd()), parserOptions); 71 | } 72 | } 73 | 74 | /// 75 | /// Parse a user agent string and obtain all client information 76 | /// 77 | public ClientInfo Parse(string uaString) 78 | { 79 | var os = ParseOS(uaString); 80 | var device = ParseDevice(uaString); 81 | var ua = ParseUserAgent(uaString); 82 | 83 | return new ClientInfo(uaString, os, device, ua); 84 | } 85 | 86 | /// 87 | /// Parse a user agent string and obtain the OS information 88 | /// 89 | public OS ParseOS(string uaString) 90 | { 91 | return _osParser(uaString); 92 | } 93 | 94 | /// 95 | /// Parse a user agent string and obtain the device information 96 | /// 97 | public Device ParseDevice(string uaString) 98 | { 99 | return _deviceParser(uaString); 100 | } 101 | 102 | /// 103 | /// Parse a user agent string and obtain the UserAgent information 104 | /// 105 | public UserAgent ParseUserAgent(string uaString) 106 | { 107 | return _userAgentParser(uaString); 108 | } 109 | 110 | private static Func CreateParser(IEnumerable> parsers, T defaultValue) 111 | where T : class 112 | { 113 | return CreateParser(parsers, defaultValue, t => t); 114 | } 115 | 116 | private static Func CreateParser(IEnumerable> parsers, T defaultValue, Func selector) 117 | where T : class 118 | { 119 | parsers = parsers?.ToArray() ?? Enumerable.Empty>(); 120 | return ua => selector(parsers.Select(p => p(ua)).FirstOrDefault(m => m != null) ?? defaultValue); 121 | } 122 | 123 | #region CLASSES 124 | 125 | private class Config 126 | { 127 | private readonly ParserOptions _options; 128 | 129 | internal Config(ParserOptions options) 130 | { 131 | _options = options; 132 | } 133 | 134 | public Func OSSelector(Func indexer) 135 | { 136 | var regex = Regex(indexer, "OS"); 137 | var os = indexer("os_replacement"); 138 | var v1 = indexer("os_v1_replacement"); 139 | var v2 = indexer("os_v2_replacement"); 140 | var v3 = indexer("os_v3_replacement"); 141 | var v4 = indexer("os_v4_replacement"); 142 | 143 | return Parsers.OS(regex, os, v1, v2, v3, v4); 144 | } 145 | 146 | public Func UserAgentSelector(Func indexer) 147 | { 148 | var regex = Regex(indexer, "User agent"); 149 | var family = indexer("family_replacement"); 150 | var v1 = indexer("v1_replacement"); 151 | var v2 = indexer("v2_replacement"); 152 | var v3 = indexer("v3_replacement"); 153 | 154 | return Parsers.UserAgent(regex, family, v1, v2, v3); 155 | } 156 | 157 | public Func DeviceSelector(Func indexer) 158 | { 159 | var regex = Regex(indexer, "Device", indexer("regex_flag")); 160 | var device = indexer("device_replacement"); 161 | var brand = indexer("brand_replacement"); 162 | var model = indexer("model_replacement"); 163 | 164 | return Parsers.Device(regex, device, brand, model); 165 | } 166 | 167 | private Regex Regex(Func indexer, string key, string regexFlag = null) 168 | { 169 | var pattern = indexer("regex"); 170 | if (pattern == null) 171 | { 172 | throw new Exception($"{key} is missing regular expression specification."); 173 | } 174 | 175 | // Some expressions in the regex.yaml file causes parsing errors 176 | // in .NET such as the \_ token so need to alter them before 177 | // proceeding. 178 | 179 | if (pattern.IndexOf(@"\_", StringComparison.Ordinal) >= 0) 180 | { 181 | pattern = pattern.Replace(@"\_", "_"); 182 | } 183 | 184 | // TODO: potentially allow parser to specify e.g. to use 185 | // compiled regular expressions which are faster but increase 186 | // startup time 187 | var options = RegexOptions.None; 188 | if ("i".Equals(regexFlag)) 189 | { 190 | options |= RegexOptions.IgnoreCase; 191 | } 192 | 193 | #if REGEX_COMPILATION 194 | if (_options.UseCompiledRegex) 195 | { 196 | options |= RegexOptions.Compiled; 197 | } 198 | #endif 199 | 200 | return new Regex(pattern, options); 201 | } 202 | } 203 | 204 | private static class Parsers 205 | { 206 | private static bool IsMobile(string ua) 207 | { 208 | var userAgent = ua.ToLower(); 209 | return _mobileUserAgentCommon.IsMatch(userAgent) || 210 | (userAgent.Length >= 4 && _mobileUserAgentExtra.IsMatch(userAgent.Substring(0, 4))); 211 | } 212 | 213 | private static bool IsTablet(string ua) 214 | { 215 | var userAgent = ua.ToLower(); 216 | return _tabletUserAgent.IsMatch(userAgent); 217 | } 218 | 219 | private static bool IsTv(string ua) 220 | { 221 | var userAgent = ua.ToLower(); 222 | return _tvUserAgent.IsMatch(userAgent); 223 | } 224 | 225 | private static bool IsDesktop(string ua) 226 | { 227 | var userAgent = ua.ToLower(); 228 | return _desktopUserAgent.IsMatch(userAgent); 229 | } 230 | 231 | private static DeviceFormFactor GetFormFactor(string userAgent, bool isSpider) 232 | { 233 | if (isSpider) 234 | { 235 | return DeviceFormFactor.Spider; 236 | } 237 | 238 | if (IsMobile(userAgent)) 239 | { 240 | return DeviceFormFactor.Mobile; 241 | } 242 | 243 | if (IsTablet(userAgent)) 244 | { 245 | return DeviceFormFactor.Tablet; 246 | } 247 | 248 | if (IsTv(userAgent)) 249 | { 250 | return DeviceFormFactor.TvOrConsole; 251 | } 252 | 253 | if (IsDesktop(userAgent)) 254 | { 255 | return DeviceFormFactor.Desktop; 256 | } 257 | 258 | return DeviceFormFactor.Unknown; 259 | } 260 | 261 | private static bool IsSpider(string family) 262 | { 263 | return "Spider".Equals(family, StringComparison.OrdinalIgnoreCase); 264 | } 265 | 266 | public static Func OS(Regex regex, string osReplacement, string v1Replacement, string v2Replacement, string v3Replacement, string v4Replacement) 267 | { 268 | if (v1Replacement == "$1") 269 | { 270 | if (v2Replacement == "$2") 271 | { 272 | return Create(regex, from v1 in Replace(v1Replacement, "$1") 273 | from v2 in Replace(v2Replacement, "$2") 274 | from v3 in Replace(v3Replacement, "$3") 275 | from v4 in Replace(v4Replacement, "$4") 276 | from family in Replace(osReplacement, "$5") 277 | select new OS(family, v1, v2, v3, v4)); 278 | } 279 | 280 | return Create(regex, from v1 in Replace(v1Replacement, "$1") 281 | from family in Replace(osReplacement, "$2") 282 | from v2 in Replace(v2Replacement, "$3") 283 | from v3 in Replace(v3Replacement, "$4") 284 | from v4 in Replace(v4Replacement, "$5") 285 | select new OS(family, v1, v2, v3, v4)); 286 | } 287 | 288 | return Create(regex, from family in Replace(osReplacement, "$1") 289 | from v1 in Replace(v1Replacement, "$2") 290 | from v2 in Replace(v2Replacement, "$3") 291 | from v3 in Replace(v3Replacement, "$4") 292 | from v4 in Replace(v4Replacement, "$5") 293 | select new OS(family, v1, v2, v3, v4)); 294 | } 295 | 296 | public static Func Device(Regex regex, string familyReplacement, string brandReplacement, string modelReplacement) 297 | { 298 | return Create(regex, (input, match, nums) => 299 | { 300 | var binder = 301 | from family in ReplaceAll(familyReplacement) 302 | from brand in ReplaceAll(brandReplacement) 303 | from model in ReplaceAll(modelReplacement) 304 | select new 305 | { 306 | Family = family, 307 | Brand = brand, 308 | Model = model 309 | }; 310 | 311 | var parsedDevice = binder(match, nums); 312 | 313 | return new Device(parsedDevice.Family, parsedDevice.Brand, parsedDevice.Model, GetFormFactor(input, IsSpider(parsedDevice.Family))); 314 | }); 315 | } 316 | 317 | public static Func UserAgent(Regex regex, string familyReplacement, string majorReplacement, string minorReplacement, string patchReplacement) 318 | { 319 | return Create(regex, from family in Replace(familyReplacement, "$1") 320 | from v1 in Replace(majorReplacement, "$2") 321 | from v2 in Replace(minorReplacement, "$3") 322 | from v3 in Replace(patchReplacement, "$4") 323 | select new UserAgent(family, v1, v2, v3)); 324 | } 325 | 326 | private static Func, string> Replace(string replacement) 327 | { 328 | if (replacement != null) 329 | { 330 | return Select(_ => replacement); 331 | } 332 | 333 | return Select(); 334 | } 335 | 336 | private static Func, string> Replace(string replacement, string token) 337 | { 338 | if (replacement != null) 339 | { 340 | if (replacement.Contains(token)) 341 | { 342 | return Select(s => s != null ? replacement.ReplaceFirstOccurence(token, s) : replacement); 343 | } 344 | else if (replacement.Contains("$")) 345 | { 346 | return ReplaceAll(replacement); 347 | } 348 | } 349 | 350 | return Replace(replacement); 351 | } 352 | 353 | private static readonly string[] _allReplacementTokens = new string[] 354 | { 355 | "$1","$2","$3","$4","$5","$6","$7","$8","$9" 356 | }; 357 | 358 | private static Func, string> ReplaceAll(string replacement) 359 | { 360 | if (replacement == null) 361 | { 362 | return Select(); 363 | } 364 | 365 | string ReplaceFunction(string replacementString, string matchedGroup, string token) 366 | { 367 | return matchedGroup != null 368 | ? replacementString.ReplaceFirstOccurence(token, matchedGroup) 369 | : replacementString; 370 | } 371 | 372 | return (m, num) => 373 | { 374 | var finalString = replacement; 375 | if (finalString.Contains("$")) 376 | { 377 | var groups = m.Groups; 378 | for (var i = 0; i < _allReplacementTokens.Length; i++) 379 | { 380 | var tokenNumber = i + 1; 381 | var token = _allReplacementTokens[i]; 382 | if (finalString.Contains(token)) 383 | { 384 | var replacementText = string.Empty; 385 | Group group; 386 | if (tokenNumber <= groups.Count && (group = groups[tokenNumber]).Success) 387 | { 388 | replacementText = group.Value; 389 | } 390 | 391 | finalString = ReplaceFunction(finalString, replacementText, token); 392 | } 393 | 394 | if (!finalString.Contains("$")) 395 | { 396 | break; 397 | } 398 | } 399 | } 400 | 401 | return finalString; 402 | }; 403 | } 404 | 405 | private static Func, string> Select() 406 | { 407 | return Select(v => v); 408 | } 409 | 410 | private static Func, T> Select(Func selector) 411 | { 412 | return (m, num) => 413 | { 414 | if (!num.MoveNext()) 415 | { 416 | throw new InvalidOperationException(); 417 | } 418 | 419 | var groups = m.Groups; 420 | Group group; 421 | return selector(num.Current <= groups.Count && (group = groups[num.Current]).Success 422 | ? group.Value : null); 423 | }; 424 | } 425 | 426 | private static Func Create(Regex regex, Func, T> binder) 427 | { 428 | return input => 429 | { 430 | var m = regex.Match(input); 431 | var num = Generate(1, n => n + 1); 432 | return m.Success ? binder(input, m, num) : default; 433 | }; 434 | } 435 | 436 | private static Func Create(Regex regex, Func, T> binder) 437 | { 438 | return Create(regex, (input, match, nums) => binder(match, nums)); 439 | } 440 | 441 | private static IEnumerator Generate(T initial, Func next) 442 | { 443 | for (var state = initial; ; state = next(state)) 444 | { 445 | yield return state; 446 | } 447 | } 448 | } 449 | 450 | #endregion CLASSES 451 | } 452 | } -------------------------------------------------------------------------------- /UAParser.FormFactor/ParserOptions.cs: -------------------------------------------------------------------------------- 1 | namespace UAParser.FormFactor 2 | { 3 | /// 4 | /// Options available for the parser 5 | /// 6 | public class ParserOptions 7 | { 8 | #if REGEX_COMPILATION 9 | /// 10 | /// If true, will use compiled regular expressions for slower startup time 11 | /// but higher throughput 12 | /// 13 | public bool UseCompiledRegex { get; set; } 14 | #endif 15 | } 16 | } -------------------------------------------------------------------------------- /UAParser.FormFactor/UAParser.FormFactor.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | netstandard2.0 5 | 6 | latest 7 | false 8 | $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb 9 | 10 | 1.0.0 11 | 1.0.0 12 | 1.0.0.0 13 | 1.0.0.0 14 | 1.0.0.0 15 | uaparser;useragent;factor;parser;device;form 16 | A .net wrapper for the ua-parser library with form factors (Mobile,Table,Desktop,Spider). No hidden references to System.Net.Http 17 | 18 | false 19 | Aleksey Gordeev, Igor Eroshkin 20 | Copyright © 2016 Aleksey Gordeev, Igor Eroshkin 21 | https://raw.githubusercontent.com/thyn/ua-parser-formfactor/master/LICENSE.md 22 | https://github.com/thyn/ua-parser-formfactor 23 | https://github.com/thyn/ua-parser-formfactor 24 | git 25 | 26 | 27 | 28 | 29 | full 30 | true 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /UAParser.FormFactor/Utils/DictionaryExtensions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace UAParser.FormFactor.Utils 5 | { 6 | internal static class DictionaryExtensions 7 | { 8 | public static TValue Find(this IDictionary dictionary, TKey key) 9 | { 10 | if (dictionary == null) 11 | { 12 | throw new ArgumentNullException(nameof(dictionary)); 13 | } 14 | 15 | return dictionary.TryGetValue(key, out var result) ? result : default; 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /UAParser.FormFactor/Utils/MinimalYamlParser.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace UAParser.FormFactor.Utils 5 | { 6 | /// 7 | /// Just enough string parsing to recognize the regexes.yaml file format. Introduced to remove 8 | /// dependency on large Yaml parsing lib. Note that a unittest ensures compatibility 9 | /// by ensuring regexes and properties are read similar to using the full yaml lib 10 | /// 11 | internal class MinimalYamlParser 12 | { 13 | private readonly Dictionary _mappings = new Dictionary(); 14 | 15 | public MinimalYamlParser(string yamlString) 16 | { 17 | ReadIntoMappingModel(yamlString); 18 | } 19 | 20 | internal IDictionary Mappings => _mappings; 21 | 22 | public IEnumerable> ReadMapping(string mappingName) 23 | { 24 | if (_mappings.TryGetValue(mappingName, out var mapping)) 25 | { 26 | foreach (var s in mapping.Sequences) 27 | { 28 | var temp = s; 29 | yield return temp; 30 | } 31 | } 32 | } 33 | 34 | private static string ReadQuotedValue(string value) 35 | { 36 | if (value.StartsWith("'") && value.EndsWith("'")) 37 | { 38 | return value.Substring(1, value.Length - 2); 39 | } 40 | 41 | if (value.StartsWith("\"") && value.EndsWith("\"")) 42 | { 43 | return value.Substring(1, value.Length - 2); 44 | } 45 | 46 | return value; 47 | } 48 | 49 | private void ReadIntoMappingModel(string yamlInputString) 50 | { 51 | // line splitting using various splitting characters 52 | var lines = yamlInputString.Split(new[] { Environment.NewLine, "\r", "\n", "\r\n" }, StringSplitOptions.RemoveEmptyEntries); 53 | var lineCount = 0; 54 | Mapping activeMapping = null; 55 | 56 | foreach (var line in lines) 57 | { 58 | lineCount++; 59 | if (line.Trim().StartsWith("#")) //skipping comments 60 | { 61 | continue; 62 | } 63 | 64 | if (line.Trim().Length == 0) 65 | { 66 | continue; 67 | } 68 | 69 | //is this a new mapping entity 70 | if (line[0] != ' ') 71 | { 72 | var indexOfMappingColon = line.IndexOf(':'); 73 | if (indexOfMappingColon == -1) 74 | { 75 | throw new ArgumentException("YamlParsing: Expecting mapping entry to contain a ':', at line " + lineCount); 76 | } 77 | 78 | var name = line.Substring(0, indexOfMappingColon).Trim(); 79 | activeMapping = new Mapping(); 80 | _mappings.Add(name, activeMapping); 81 | continue; 82 | } 83 | 84 | //reading scalar entries into the active mapping 85 | if (activeMapping == null) 86 | { 87 | throw new ArgumentException("YamlParsing: Expecting mapping entry to contain a ':', at line " + lineCount); 88 | } 89 | 90 | var seqLine = line.Trim(); 91 | if (seqLine[0] == '-') 92 | { 93 | activeMapping.BeginSequence(); 94 | seqLine = seqLine.Substring(1); 95 | } 96 | 97 | var indexOfColon = seqLine.IndexOf(':'); 98 | if (indexOfColon == -1) 99 | { 100 | throw new ArgumentException("YamlParsing: Expecting scalar mapping entry to contain a ':', at line " + lineCount); 101 | } 102 | 103 | var key = seqLine.Substring(0, indexOfColon).Trim(); 104 | var value = ReadQuotedValue(seqLine.Substring(indexOfColon + 1).Trim()); 105 | activeMapping.AddToSequence(key, value); 106 | } 107 | } 108 | 109 | #region CLASSES 110 | 111 | internal class Mapping 112 | { 113 | private Dictionary _lastEntry; 114 | 115 | public Mapping() 116 | { 117 | Sequences = new List>(); 118 | } 119 | 120 | public List> Sequences { get; } 121 | 122 | public void BeginSequence() 123 | { 124 | _lastEntry = new Dictionary(); 125 | Sequences.Add(_lastEntry); 126 | } 127 | 128 | public void AddToSequence(string key, string value) 129 | { 130 | _lastEntry[key] = value; 131 | } 132 | } 133 | 134 | #endregion CLASSES 135 | } 136 | } -------------------------------------------------------------------------------- /UAParser.FormFactor/Utils/RegexBinderBuilder.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text.RegularExpressions; 4 | 5 | namespace UAParser.FormFactor.Utils 6 | { 7 | internal static class RegexBinderBuilder 8 | { 9 | public static Func, TResult> SelectMany( 10 | this Func, T1> binder, 11 | Func, T2>> continuation, 12 | Func projection 13 | ) 14 | { 15 | return (m, num) => 16 | { 17 | var bound = binder(m, num); 18 | var continued = continuation(bound)(m, num); 19 | var projected = projection(bound, continued); 20 | return projected; 21 | }; 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /UAParser.FormFactor/Utils/StringExtensions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UAParser.FormFactor.Utils 4 | { 5 | internal static class StringExtensions 6 | { 7 | public static string ReplaceFirstOccurence(this string input, string search, string replacement) 8 | { 9 | if (input == null) 10 | { 11 | throw new ArgumentNullException(nameof(input)); 12 | } 13 | 14 | var index = input.IndexOf(search, StringComparison.Ordinal); 15 | return index >= 0 16 | ? input.Substring(0, index) + replacement + input.Substring(index + search.Length) 17 | : input; 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /UAParser.FormFactor/Utils/VersionString.cs: -------------------------------------------------------------------------------- 1 | using System.Linq; 2 | 3 | namespace UAParser.FormFactor.Utils 4 | { 5 | internal static class VersionString 6 | { 7 | public static string Format(params string[] parts) 8 | { 9 | return string.Join(".", parts.Where(v => !string.IsNullOrEmpty(v)).ToArray()); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- 1 | # common configuration 2 | 3 | environment: 4 | project_version: '3.0.4' 5 | project_informational_version: '$(project_version)' 6 | project_version_is_prerelease: false 7 | 8 | version: '$(project_version).{build}' 9 | image: Visual Studio 2017 10 | skip_tags: true 11 | 12 | dotnet_csproj: 13 | patch: true 14 | file: '**\*.csproj' 15 | version: '$(project_informational_version)' 16 | package_version: '$(project_informational_version)' 17 | assembly_version: '$(project_version)' 18 | file_version: '{version}' 19 | informational_version: '$(project_informational_version)' 20 | 21 | nuget: 22 | disable_publish_on_pr: true 23 | project_feed: true 24 | 25 | before_build: 26 | - cmd: dotnet restore 27 | 28 | build: 29 | publish_nuget: true 30 | verbosity: normal 31 | 32 | for: 33 | 34 | - 35 | branches: 36 | only: 37 | - production 38 | 39 | configuration: Release 40 | 41 | deploy: 42 | - provider: NuGet 43 | api_key: 44 | secure: AjuAoTW1aeNJE9hlLbZafvXoiT83LOqjevO9DuTJS9oZdvp3QN7mCEFP9Dqysuyl 45 | skip_symbols: false 46 | - provider: GitHub 47 | tag: 'v$(project_informational_version)' 48 | auth_token: 49 | secure: 9F8Uho8Ir0uU1TQUFDOb6MzZTmPr7fnHw4UowLPiNsMtxf/WXb0ODVvjEnsaiaKt 50 | prerelease: $(project_version_is_prerelease) 51 | 52 | #development configuration (build) 53 | - 54 | branches: 55 | only: 56 | - master 57 | 58 | environment: 59 | project_dev_version: '$(project_informational_version)-dev' 60 | 61 | configuration: Debug 62 | 63 | dotnet_csproj: 64 | version: '$(project_dev_version).{build}' 65 | package_version: '$(project_dev_version).{build}' 66 | informational_version: '$(project_dev_version).{build}' 67 | --------------------------------------------------------------------------------