Mac:
- zip /usr/local/lib/node_modules/uirecorder/tool/uirecorder.crx
- unzip and change
- chrome://extensions/ gen .crx
- change start.js
- it works
Windows:
- unzip C:\Users\supdev\AppData\Roaming\npm\node_modules\uirecorder\tool\uirecorder.crx
- change C:\Users\supdev\AppData\Roaming\npm\node_modules\uirecorder\tool\uirecorder\uirecorder\start.html to any display
- open chrome developer mode and goto chrome://extensions/ click "打包扩展程序" and upload "C:\Users\supdev\AppData\Roaming\npm\node_modules\uirecorder\tool\uirecorder\uirecorder"
- generate new uirecorder.crx
- drag uirecorder.crx to chrome://extensions/ and get id
- open C:\Users\supdev\AppData\Roaming\npm\node_modules\uirecorder\lib\start.js
- change yield browser.url('chrome-extension://' + (debug ? 'cpeoaoofllichfgeklkgdehjfhmbgeaa' : 'gdgcededodoknhpogghdgdmejoopabmo')+'/'+(mobile?'mobile':'start')+'.html?port='+serverPort); to (debug ? 'cpeoaoofllichfgeklkgdehjfhmbgeaa' : 'id')
- it works
↙↙↙阅读原文可查看相关链接,并与作者交流