LevitateDev

Untitled

Apr 7th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. WebClient wc = new WebClient();
  2. wc.Proxy = null;
  3. try
  4. {
  5. RegistryKey registryKey = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Internet Explorer\\Main\\FeatureControl\\FEATURE_BROWSER_EMULATION", true);
  6. string friendlyName = AppDomain.CurrentDomain.FriendlyName;
  7. bool flag2 = registryKey.GetValue(friendlyName) == null;
  8. if (flag2)
  9. {
  10. registryKey.SetValue(friendlyName, 11001, RegistryValueKind.DWord);
  11. }
  12. registryKey = null;
  13. friendlyName = null;
  14. }
  15. catch (Exception)
  16. {
  17. }
  18. Input.Url = new Uri(string.Format("file:///{0}/Monaco/Monaco.html", Directory.GetCurrentDirectory()));
  19. await Task.Delay(500);
  20. Input.Document.InvokeScript("SetTheme", new string[]
  21. {
  22. "Dark"
  23. /*
  24. There are 2 Themes Dark and Light
  25. */
  26. });
  27. addBase();
  28. addMath();
  29. addGlobalNS();
  30. addGlobalV();
  31. addGlobalF();
  32. Input.Document.InvokeScript("SetText", new object[]
  33. {
  34. ""
  35. });
Add Comment
Please, Sign In to add comment