如何使用external_extensions.json文件在chrome中添加外部插件(neptune)
我想在运行我的外部程序的chrome中添加外部插件,根据这一点,我们可以在chrome中添加外部插件。我编辑了external_plugin.json文件和类似的html代码,但chrome仍然说插件不受支持。我知道chrome中的NPAPI正在被淘汰。但他们还说,只有在没有其他方法可用时才应该使用。 除了使用chrome,我别无选择,请帮助如何使用external_extensions.json文件在chrome中添加外部插件(neptune),json,google-chrome,npapi,activexobject,Json,Google Chrome,Npapi,Activexobject,我想在运行我的外部程序的chrome中添加外部插件,根据这一点,我们可以在chrome中添加外部插件。我编辑了external_plugin.json文件和类似的html代码,但chrome仍然说插件不受支持。我知道chrome中的NPAPI正在被淘汰。但他们还说,只有在没有其他方法可用时才应该使用。 除了使用chrome,我别无选择,请帮助 { "name": "npmeadax.dll", ... "plugins": [ { "path": "C:\Program Files (x
{
"name": "npmeadax.dll",
...
"plugins": [
{ "path": "C:\Program Files (x86)\MeadCo Neptune\npmeadax.dll" }
],
...
}
<script type="text/javascript">
function loadPage() {
var lh = location.href;
var embed = document.createElement('embed');
embed.setAttribute('width','70%');
embed.setAttribute('height','90%');
embed.setAttribute('type','application/x-meadco-neptune-ax');
embed.setAttribute('param-location',lh);
var tbody = document.getElementsByTagName('body')[0];
tbody.appendChild(embed);
try {
WshShell = new ActiveXObject("WScript.Shell");
WshShell.run("C:/folderName/myfile.exe");
}
catch(e) {}
}
</script>
{
“名称”:“npmeadax.dll”,
...
“插件”:[
{“路径”:“C:\ProgramFiles(x86)\MeadCo-Neptune\npmeadax.dll”}
],
...
}
函数loadPage(){
var lh=location.href;
var embed=document.createElement('embed');
setAttribute('width','70%');
setAttribute('height','90%');
setAttribute('type','application/x-meadco-neptune-ax');
embed.setAttribute('param-location',左侧);
var tbody=document.getElementsByTagName('body')[0];
t正文。附加子项(嵌入);
试一试{
WshShell=newActiveXObject(“WScript.Shell”);
运行(“C:/folderName/myfile.exe”);
}
捕获(e){}
}
你不能再这样做了;Chrome在Chrome 45中完全放弃了对NPAPI插件的支持(以及所有没有在Chrome 42中覆盖它的人)