Chrome extensions/registry/conf files ebable Flash

23 views
Skip to first unread message

Дмитрий Зорин

unread,
Aug 8, 2017, 4:33:37 AM8/8/17
to Chromium-Extensions-Announce
I need programmatically enable Flash into Chromium, permissible only for one site. Preferably with the tools available from the extension, but permissible with edit Windows registry or edit conf-files.
Please, tell me how can I enable it.
P.S. I writing extension for auto-settings Chromium for one web-resource.

Дмитрий Зорин

unread,
Aug 8, 2017, 4:57:38 AM8/8/17
to Chromium-Extensions-Announce
The question is closed. If someone also encountered such a problem, use the following:

in manifest.json:

add "permissions": ["contentSettings"]

In any executable JS:

chrome.contentSettings.plugins.set({
  primaryPattern: '<all_urls>',
  resourceIdentifier: {
    id: 'adobe-flash-player'
  },
  setting: 'allow'
});
Reply all
Reply to author
Forward
0 new messages