Chrome扩展程序可启用Flash插件 [英] Chrome extension to enable flash plugin

查看:653
本文介绍了Chrome扩展程序可启用Flash插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为一个在Adobe Flash中运行的游戏工作.从Chrome 69开始,每次用户重新启动浏览器时,使用Flash的网站都将需要显式权限才能运行它.我们预计很多玩家会在每次重新启动浏览器时都要经过点击播放流程而退出.(Flash Roadmap->

I am working for a game which runs in Adobe Flash. From Chrome 69, sites using Flash will require explicit permission to run it, every time the user restarts the browser. We are expecting lot of our players will get dropped off as they need to go through click-to-play flow every time they restart the browser.(Flash Roadmap -> https://www.chromium.org/flash-roadmap)

因此,我们提出了使用chrome扩展程序的想法,该扩展程序可以在我们的游戏网站的后台启用Flash插件.我们使用"chrome.contentSettings"来创建此扩展程序.

So we came up with an idea of using chrome extension which can enable flash plugin in background for our game website. We used 'chrome.contentSettings' for creating this extension.

有人可以确认chrome是否有任何计划,以停止控制chrome.contentSettings中的"adobe-flash-player"插件.

Can someone please confirm if there is any roadmap plan from chrome to stop controlling of 'adobe-flash-player' plugin from 'chrome.contentSettings'.

其他话请告诉我api代码下面的代码能工作多长时间?

Other words pls tell me how long below api code will work ?

var flashResIdentifier; chrome.contentSettings.plugins.getResourceIdentifiers(function(resIdentifiers){ for(var i = 0; ihttps://abc.xyz.com/','resourceIdentifier':flashResIdentifier,'setting':'allow'});

var flashResIdentifier; chrome.contentSettings.plugins.getResourceIdentifiers(function(resIdentifiers) { for (var i=0; ihttps://abc.xyz.com/', 'resourceIdentifier':flashResIdentifier, 'setting':'allow'});

推荐答案

Chrome 71之后,您可以通过注册表设置为Windows上的特定网站持续重新启用Flash.转到或创建HKEY_LOCAL_MACHINE \ SOFTWARE \ Policies \ Google \ Chrome \ PluginsAllowedForUrls,并添加以"1"开头的字符串值和希望为其启用Flash的URL值(因此,HKEY_LOCAL_MACHINE \ SOFTWARE \ Policies \ Google \ Chrome \ PluginsAllowedForUrls \ 1 =" http://myawesomesite.com/ *"为myawesomesite下的所有内容启用Flash .com).

After Chrome 71, you can persistently reenable flash for specific websites on Windows via a registry setting. Go to or create HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\PluginsAllowedForUrls, and add string values starting with a name of "1" and a value of the URL you wish to enable flash for (so, HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\PluginsAllowedForUrls\1 = "http://myawesomesite.com/*" to enable Flash for everything under myawesomesite.com).

对于OSX和Android也有类似的设置.有关更多信息,请参见此处.

There is a similar setting for OSX and Android. See here for more information.

这篇关于Chrome扩展程序可启用Flash插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆