Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

On OS X, from the terminal, how do i set allow and remember flash for specific sites.

  • 1 reply
  • 2 have this problem
  • 2 views
  • Last reply by cor-el

more options

After I mass update my computer labs, the allow and remember settings get reset for websites which I need flash to run. (about 40 computers per lab). I'm updating flash and firefox using Apple Remote Desktop.

What terminal command, or configuration file can I push out on El Cap to keep this setting?

After I mass update my computer labs, the allow and remember settings get reset for websites which I need flash to run. (about 40 computers per lab). I'm updating flash and firefox using Apple Remote Desktop. What terminal command, or configuration file can I push out on El Cap to keep this setting?

All Replies (1)

more options

That is not possible AFAIK.

Such site specific settings are stored in the permissions.sqlite database. You can check this database with an SQL viewing application to see how this works because current Firefox releases no longer support Legacy extensions like SQLite Manager to inspect SQLite database files.

Easiest would be to set Flash to always activate (plugin.state.flash = 2) via the mozilla.cfg file via pref() or lockPref().

//
pref("plugin.state.flash", 2);

You can use the mozilla.cfg file in the Firefox program folder to set or lock preferences and run privileged JavaScript code.

The mozilla.cfg file needs to be in the main Firefox program folder.

These functions can be used in the mozilla.cfg file:

defaultPref();	// set new default value
pref();	// set pref, allow changes in current session
lockPref();	// lock pref, disallow changes

This requires a local-settings.js file in the "defaults/pref" folder where the channel-prefs.js file is located that specifies to use mozilla.cfg.

//
pref("general.config.filename", "mozilla.cfg");
pref("general.config.obscure_value", 0);

The mozilla.cfg and local-settings.js files need to start with a comment line (//).

See Configuration:

See also: