Skip to content

Instantly share code, notes, and snippets.

@salmoni
Created April 8, 2014 15:23
Show Gist options
  • Save salmoni/10141890 to your computer and use it in GitHub Desktop.
Save salmoni/10141890 to your computer and use it in GitHub Desktop.
Changing Windows registry so that IE emulates IE10. For all codes, see http://msdn.microsoft.com/en-us/library/ee330730(v=vs.85).aspx
import _winreg as wreg
current_file = __file__
key = wreg.CreateKey(wreg.HKEY_CURRENT_USER, "Software\\Microsoft\\Internet Explorer\\Main\\FeatureControl\\FEATURE_BROWSER_EMULATION")
wreg.SetValueEx(key, current_file, 0, wreg.REG_DWORD, 10001)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment