0
在Firefox this code可以安裝新插件:在Chrome擴展中是否有與firefox AddonInstall等價的東西?
Components.utils.import("resource://gre/modules/AddonManager.jsm");
AddonManager.getInstallForURL("http://www.foo.com/test.xpi", function(aInstall) {
// aInstall is an instance of {{AMInterface("AddonInstall")}}
aInstall.install();
}, "application/x-xpinstall");
我用了一個自定義更新和工作得很好。現在我想知道是否有類似的Chrome擴展?