mirror of
https://github.com/SDraw/ml_mods_cvr.git
synced 2026-05-04 01:07:02 +00:00
ml_vpc: added options to use cookies from browsers and enable/disable the mod completely
This commit is contained in:
parent
da9dc508d0
commit
7ada4c4d86
7 changed files with 302 additions and 3 deletions
12
ml_vpc/Utils.cs
Normal file
12
ml_vpc/Utils.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
using ABI_RC.Core.UI;
|
||||
using System.Reflection;
|
||||
|
||||
namespace ml_vpc
|
||||
{
|
||||
static class Utils
|
||||
{
|
||||
static readonly FieldInfo ms_view = typeof(CohtmlControlledViewWrapper).GetField("_view", BindingFlags.Instance | BindingFlags.NonPublic);
|
||||
|
||||
public static void ExecuteScript(this CohtmlControlledViewWrapper p_instance, string p_script) => (ms_view?.GetValue(p_instance) as cohtml.Net.View)?.ExecuteScript(p_script);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue