- Регистрация
- 22.04.2017
- Сообщения
- 207
- Благодарностей
- 31
- Баллы
- 28
Same bug as in previous version of zenno, this is a big issue
For those interested here a c# code to check the user agent with forbidden strings (adjust according to your needs):
var userAgent = project.Profile.UserAgent.ToString();
string[] keywords = { "YaBrowser", "Windows", "Vivaldi", "Firefox", "Macintosh" };
foreach (string x in keywords)
{
if (userAgent.IndexOf(x, StringComparison.OrdinalIgnoreCase) >= 0)
return "yes";
}
return "no";
For those interested here a c# code to check the user agent with forbidden strings (adjust according to your needs):
var userAgent = project.Profile.UserAgent.ToString();
string[] keywords = { "YaBrowser", "Windows", "Vivaldi", "Firefox", "Macintosh" };
foreach (string x in keywords)
{
if (userAgent.IndexOf(x, StringComparison.OrdinalIgnoreCase) >= 0)
return "yes";
}
return "no";