Coursera SubEx / Coursera multiple subtitles show below the video / Coursera多字幕显示在视频下方插件

Coursera SubEx: 根据你的选择,同时显示多种语言的字幕显示在coursera.org课程学习页面的视频播放器下方。 不占用视频内容区域,还可以方便拷贝字幕做笔记。

目前为 2022-11-09 提交的版本。查看 最新版本

作者
DryTofu
评分
0 0 0
版本
0.1
创建于
2022-11-09
更新于
2022-11-09
大小
13.9 KB
许可证
MIT
适用于

使用说明

  1. 在coursera视频播放页面,点击左上角 SubEx 按钮 (如图1)
  2. 视频播放器下方将出现当前视频所有字幕的的选择框,点击checkbox选中你想要显示语言的字幕,在语言选择工具栏上方将出现对应语言的字幕显示区(如图2)
  3. 播放视频,视频播放器下放的ex字幕显示区将显示你选中语言的字幕。播放过程中你可以随时调整想显示的字幕语言。(如图3、图4)
  4. 如果你想在视频中查看字幕,则用coursera播放器的字幕选择菜单选中某个语言,之后本插件的ex字幕区域字幕可能不会再随时更新(如图5)
  5. 如果你进入步骤4,又想从coursera视频播放器内自带字幕切换到本插件的多字幕显示,点击左上角绿色 SubEx 按钮即可。

注意

  1. 本人自用插件, 不通前端,代码已经糊了,见谅。
  2. 语言选择区域,把中文英文排序到前面,如果你有其他排序需求,搜索 lngWeightMap 修改即可,值越小越排在前面
  3. 字幕css调整,搜索 .ex-subtitle-line 自行修改
  4. 进入到下一课程、切换视频后,都需要再次点击左上角 SubEx 按钮进行插件初始化
  5. 如果遇到任何错误,点击 左上角 SubEx 按钮试试。

Instructions for use

  1. On the coursera video playback page, click the SubEx button in the upper left corner (Figure 1)

  2. A selection box for all subtitles of the current video will appear below the video player, click the checkbox to select the subtitles in the language you want to display, and the subtitle display area for the corresponding language will appear above the language selection toolbar (as shown in Figure 2)

  3. Play the video, and the subtitle display area of ​​the video player will display the subtitles in the language you selected. During playback, you can adjust the language of the subtitles you want to display at any time. (As shown in Figure 3 and Figure 4)

  4. If you want to view the subtitles in the video, use the subtitle selection menu of the coursera player to select a language, then the subtitles in the ex subtitles area of ​​this plugin may not be updated at any time (as shown in Figure 5)

  5. If you go to step 4 and want to switch from the subtitles in the coursera video player to the multi-subtitle display of this plugin, click the green SubEx button in the upper left corner.

Notice

  1. I use the plug-in for myself, the front-end is not available, the code has been blurred, sorry.

  2. In the language selection area, sort Chinese and English to the front. If you have other sorting requirements, search for lngWeightMap and modify it. The smaller the value, the higher the ranking.

  3. Subtitle css adjustment, search for .ex-subtitle-line and modify it yourself

  4. After entering the next course and switching videos, you need to click the SubEx button in the upper left corner again to initialize the plugin

  5. If you encounter any errors, click the SubEx button in the upper left corner to try

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址