Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WebClient wc = new WebClient();
- wc.Proxy = null;
- try
- {
- RegistryKey registryKey = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Internet Explorer\\Main\\FeatureControl\\FEATURE_BROWSER_EMULATION", true);
- string friendlyName = AppDomain.CurrentDomain.FriendlyName;
- bool flag2 = registryKey.GetValue(friendlyName) == null;
- if (flag2)
- {
- registryKey.SetValue(friendlyName, 11001, RegistryValueKind.DWord);
- }
- registryKey = null;
- friendlyName = null;
- }
- catch (Exception)
- {
- }
- Input.Url = new Uri(string.Format("file:///{0}/Monaco/Monaco.html", Directory.GetCurrentDirectory()));
- await Task.Delay(500);
- Input.Document.InvokeScript("SetTheme", new string[]
- {
- "Dark"
- /*
- There are 2 Themes Dark and Light
- */
- });
- addBase();
- addMath();
- addGlobalNS();
- addGlobalV();
- addGlobalF();
- Input.Document.InvokeScript("SetText", new object[]
- {
- ""
- });
Add Comment
Please, Sign In to add comment