Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用external_extensions.json文件在chrome中添加外部插件(neptune)_Json_Google Chrome_Npapi_Activexobject - Fatal编程技术网

如何使用external_extensions.json文件在chrome中添加外部插件(neptune)

如何使用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

我想在运行我的外部程序的chrome中添加外部插件,根据这一点,我们可以在chrome中添加外部插件。我编辑了external_plugin.json文件和类似的html代码,但chrome仍然说插件不受支持。我知道chrome中的NPAPI正在被淘汰。但他们还说,只有在没有其他方法可用时才应该使用。 除了使用chrome,我别无选择,请帮助

{
"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中覆盖它的人)