Mac:

  1. zip /usr/local/lib/node_modules/uirecorder/tool/uirecorder.crx
  2. unzip and change
  3. chrome://extensions/ gen .crx
  4. change start.js
  5. it works

Windows:

  1. unzip C:\Users\supdev\AppData\Roaming\npm\node_modules\uirecorder\tool\uirecorder.crx
  2. change C:\Users\supdev\AppData\Roaming\npm\node_modules\uirecorder\tool\uirecorder\uirecorder\start.html to any display
  3. open chrome developer mode and goto chrome://extensions/ click "打包扩展程序" and upload "C:\Users\supdev\AppData\Roaming\npm\node_modules\uirecorder\tool\uirecorder\uirecorder"
  4. generate new uirecorder.crx
  5. drag uirecorder.crx to chrome://extensions/ and get id
  6. open C:\Users\supdev\AppData\Roaming\npm\node_modules\uirecorder\lib\start.js
  7. change yield browser.url('chrome-extension://' + (debug ? 'cpeoaoofllichfgeklkgdehjfhmbgeaa' : 'gdgcededodoknhpogghdgdmejoopabmo')+'/'+(mobile?'mobile':'start')+'.html?port='+serverPort); to (debug ? 'cpeoaoofllichfgeklkgdehjfhmbgeaa' : 'id')
  8. it works


↙↙↙阅读原文可查看相关链接,并与作者交流