- 安装nodejs环境
- 启动后台服务。进入nodeServer目录,执行
node index.js
启动服务 - 启动成功后,终端会显示
Proxy server listening at http://localhost:3000
- 打开chrome浏览器,进入
chrome://extensions/
页面 - 打开开发者模式
- 点击
加载已解压的扩展程序
,选择browserExtension
目录 - 启动成功后,浏览器右上角会出现插件图标
- 进入文心一言,选择视频插件,点击'run'按钮,插件启动
- 将content.js中的词条替换为需要的词条
- 刷新插件
- 刷新页面
- 浏览器出现需要获取多个视频下载权限,点击允许
- run按钮点击后,会终止上次的运行
- 出现localhost代表后台服务没开
- 页面需要处于选中状态。最好将页面设置睡眠的白名单 !!!