Skip to content

Commit a73bee8

Browse files
committed
V0.4
1 parent cae8777 commit a73bee8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

script.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name 尚硅谷-bilibili视频删去前缀-tampermonkey-removePrefix-bilibili
33
// @namespace http://tampermonkey.net/
4-
// @version 0.3
4+
// @version 0.4
55
// @description 一个脚本去除bilibili视频分集的过长的前缀
66
// @author SoonIter
77
// @match https://www.bilibili.com/video/**
@@ -26,6 +26,13 @@
2626
let flag = false; //是否已经执行
2727

2828
function modifyCss() {
29+
let styleDom = document.createElement('style');
30+
styleDom.innerHTML = `
31+
.video-episode-card__info-title{
32+
white-space:normal !important;
33+
}
34+
`;
35+
document.head.appendChild(styleDom);
2936
document.querySelectorAll('span.part').forEach(ele => {
3037
ele.style.whiteSpace = 'normal';
3138
ele.style.lineHeight = '20px';

0 commit comments

Comments
 (0)