Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sooniter/tampermonkey-removeprefix-bilibili
一个脚本解决bilibili视频选集中标题过长的问题
https://github.com/sooniter/tampermonkey-removeprefix-bilibili
bilibili script tampermonkey tampermonkey-script tampermonkey-userscript useful useful-scripts userscript utility
Last synced: 18 days ago
JSON representation
一个脚本解决bilibili视频选集中标题过长的问题
- Host: GitHub
- URL: https://github.com/sooniter/tampermonkey-removeprefix-bilibili
- Owner: SoonIter
- License: mit
- Created: 2022-07-18T05:54:46.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-12T10:35:51.000Z (9 months ago)
- Last Synced: 2024-10-03T09:25:58.040Z (about 1 month ago)
- Topics: bilibili, script, tampermonkey, tampermonkey-script, tampermonkey-userscript, useful, useful-scripts, userscript, utility
- Language: JavaScript
- Homepage:
- Size: 1.56 MB
- Stars: 10
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tampermonkey-removePrefix-bilibili
一个脚本解决 bilibili 视频分集过长的问题
[下载链接(Go to Greasyfork and Download)](https://greasyfork.org/zh-CN/scripts/448038-%E5%B0%9A%E7%A1%85%E8%B0%B7-bilibili%E8%A7%86%E9%A2%91%E5%88%A0%E5%8E%BB%E5%89%8D%E7%BC%80-tampermonkey-removeprefix-bilibili)
[查看源码(Go to Github)](https://github.com/SoonIter/tampermonkey-removePrefix-bilibili)
![effect](https://raw.githubusercontent.com/SoonIter/tampermonkey-removePrefix-bilibili/main/docs/imgs/effect.jpg)
## 功能 1. 视频分集换行
![video-section-list](https://raw.githubusercontent.com/SoonIter/tampermonkey-removePrefix-bilibili/2885558aab6f297dd44fa2e74d376cb529742bc3/docs/imgs/section-list.png)
## 功能 2. 删除前缀
```javascript
// 通过修改脚本中的 configs 激活
const configs = [
{
h1Title: '2022版Flink1.13实战教程', // 当前视频的 h1标题 的一部分即可
reg: /\d{2,}_(第(.*)章_)?/, // 前缀 正则 或 string
},
{
h1Title: '尚硅谷Java入门视频教程',
reg: /\d{2,}\.尚硅谷\_/,
},
];
```![worked](https://raw.githubusercontent.com/SoonIter/tampermonkey-removePrefix-bilibili/main/docs/imgs/worked.png)