Skip to content

Instantly share code, notes, and snippets.

@PassionPenguin
Last active February 19, 2022 07:30
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PassionPenguin/1df2d3d8dab8ea5b9dd03b787dadad52 to your computer and use it in GitHub Desktop.
Save PassionPenguin/1df2d3d8dab8ea5b9dd03b787dadad52 to your computer and use it in GitHub Desktop.
Enable Flash
REM Enable Flash in Chrome via Reg.
@echo off
echo Windows Registry Editor Version 5.00 > com.google.Chrome.reg
echo.>>com.google.Chrome.reg
echo [HKEY_CURRENT_USER\Software\Policies\Google\Chrome\PluginsAllowedForUrls]>>com.google.Chrome.reg
echo "1"="https://*">>com.google.Chrome.reg
echo "2"="http://*" >> com.google.Chrome.reg
REGEDIT com.google.Chrome.reg
del /f /s /q com.google.Chrome.reg
# Enable Flash => in macOS X
curl https://raw.githubusercontent.com/timsutton/mcxToProfile/master/mcxToProfile.py --output mtp.py
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE plist PUBLIC \"-//Apple/DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\"><plist version=\"1.0\"><dict> <key>PluginsAllowedForUrls</key> <array> <string>https://*</string> <string>http://*\"</string> </array></dict></plist>" >> com.google.Chrome.plist
sudo python ./mtp.py --plist com.google.Chrome.plist --identifier com.google.Chrome
open ./com.google.Chrome.mobileconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment