- Регистрация
- 25.07.2021
- Сообщения
- 165
- Благодарностей
- 31
- Баллы
- 28
C#:
string script = @"window.localStorage;";
instance.ActiveTab.MainDocument.EvaluateScript(script).
пробовал и так
C#:
string script = @"return window.localStorage;";
C#:
string script = @"console.log(localStorage);";
C#:
string script = @"
var localStorageData = {};
for (var i = 0; i < localStorage.length; i++) {
var key = localStorage.key(i);
var value = localStorage.getItem(key);
localStorageData[key] = value;
}
JSON.stringify(localStorageData);
";
string result = CM.instance.ActiveTab.MainFrame.EvaluateScript(script).ToString();
return result;