UserAgents.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace XUnity.AutoTranslator.Plugin.Core.Constants
  6. {
  7. /// <summary>
  8. /// Class defining user agents for various browsers.
  9. ///
  10. /// Updated 2019-02-09.
  11. /// </summary>
  12. public static class UserAgents
  13. {
  14. /// <summary>
  15. /// Latest Chrome Win10 user-agent as of 2019-02-09.
  16. /// </summary>
  17. public static readonly string Chrome_Win10_Latest = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36";
  18. /// <summary>
  19. /// Latest Chrome Win7 user-agent as of 2019-02-09.
  20. /// </summary>
  21. public static readonly string Chrome_Win7_Latest = "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36";
  22. /// <summary>
  23. /// Latest Firefox Win10 user-agent as of 2019-02-09.
  24. /// </summary>
  25. public static readonly string Firefox_Win10_Latest = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0";
  26. /// <summary>
  27. /// Latest Edge Win10 user-agent as of 2019-02-09.
  28. /// </summary>
  29. public static readonly string Edge_Win10_Latest = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134";
  30. }
  31. }