We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

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

  • 1 回覆
  • 2 有這個問題
  • 2 次檢視
  • 最近回覆由 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?

所有回覆 (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: