Install chrome extension as external extensions

匆匆过客 提交于 2019-12-22 11:37:10

问题


I need install chrome extension as a manual way. So I follow this page https://developer.chrome.com/extensions/external_extensions. I install chrome extension with registry. Everything was fine. But the problem is: that extension cannot "remember anything". Each time I close and open chrome, it was installed again (extension show a welcome page) and everything it save from last session has gone. That problem does not exists if I install it as a normal way. So there are anyway to solve it?


回答1:


  • Navigate to "chrome://extensions/" in the url bar...
  • Click "Developer mode" in the top right hand corner.
  • Click "Pack extension..."
  • In the "Extension root directory" field, choose the folder that contains all your extension files.
  • Leave the "Private key file" blank...
  • Click OK

Your extension will now be packed into a .crx file wherever your parent extension directory was on your computer... there will also be a .pem file, which is irrelevant really, it just holds your private key in case you won't to update this same extension, in which case you would pack the extension with the private key file...

Open the .crx in chrome... It will give you a message saying extensions and themes may harm your computer... click OK, this message only shows up because the extension has not been tested by google in the extension gallery... Your extension will install and will remember all your data



来源:https://stackoverflow.com/questions/5208408/install-chrome-extension-as-external-extensions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!