Skip to content

Instantly share code, notes, and snippets.

@berstend
Last active January 22, 2020 10:21
Show Gist options
  • Save berstend/bcd64a4a2db28afbd6486daf69f4e787 to your computer and use it in GitHub Desktop.
Save berstend/bcd64a4a2db28afbd6486daf69f4e787 to your computer and use it in GitHub Desktop.
Allow flash content to run by default in Chromium by using a management policy file

Tested on Ubuntu 14.04 and Chromium 65

Steps

apt-get install chromium-browser adobe-flashplugin

mkdir -p /etc/chromium/policies/managed

vim /etc/chromium/policies/managed/foo_policy.json

Add the following content to foo_policy.json

{
  "RunAllFlashInAllowMode": true,
  "AllowOutdatedPlugins": true,
  "DefaultPluginsSetting": 1,
  "PluginsAllowedForUrls": ["https://*", "http://*"]
}

Verify that Chromium picked up the policies by navigating to chrome://policy.

Test flash auto play with e.g. http://ultrasounds.com

@berstend
Copy link
Author

For Google Chrome instead of Chromium

mkdir -p /etc/opt/chrome/policies/managed
vim /etc/opt/chrome/policies/managed/foo_policy.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment