Created
July 14, 2016 16:34
-
-
Save djangofan/24652ffe0c7d3648a3f0ff2d49c82365 to your computer and use it in GitHub Desktop.
Turns off IE save-as dialog for JSON files and JavaScript warnings in browser.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO off | |
reg add "HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/json" /v CLSID /t REG_SZ /d {25336920-03F9-11cf-8FD0-00AA00686F13} /f | |
if errorlevel 1 ( | |
echo Failure Reason Given is %errorlevel% | |
exit /b %errorlevel% | |
) | |
req query "HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/json" /v CLSID | |
reg add "HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/json" /v Encoding /t REG_SZ /d hex:08,00,00,00 /f | |
if errorlevel 1 ( | |
echo Failure Reason Given is %errorlevel% | |
exit /b %errorlevel% | |
) | |
req query "HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/json" /v Encoding | |
reg add "HKEY_CLASSES_ROOT\MIME\Database\Content Type\text/json" /v CLSID /t REG_SZ /d {25336920-03F9-11cf-8FD0-00AA00686F13} /f | |
if errorlevel 1 ( | |
echo Failure Reason Given is %errorlevel% | |
exit /b %errorlevel% | |
) | |
req query "HKEY_CLASSES_ROOT\MIME\Database\Content Type\text/json" /v CLSID | |
reg add "HKEY_CLASSES_ROOT\MIME\Database\Content Type\text/json" /v Encoding /t REG_SZ /d hex:08,00,00,00 /f | |
if errorlevel 1 ( | |
echo Failure Reason Given is %errorlevel% | |
exit /b %errorlevel% | |
) | |
req query "HKEY_CLASSES_ROOT\MIME\Database\Content Type\text/json" /v Encoding | |
reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Styles" /v MaxScriptStatements /t REG_DWORD /d 10000000 /f | |
if errorlevel 1 ( | |
echo Failure Reason Given is %errorlevel% | |
exit /b %errorlevel% | |
) | |
reg query "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Styles" /v MaxScriptStatements | |
echo End of pre-run script. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment