We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cae8777 commit a73bee8Copy full SHA for a73bee8
script.js
@@ -1,7 +1,7 @@
1
// ==UserScript==
2
// @name 尚硅谷-bilibili视频删去前缀-tampermonkey-removePrefix-bilibili
3
// @namespace http://tampermonkey.net/
4
-// @version 0.3
+// @version 0.4
5
// @description 一个脚本去除bilibili视频分集的过长的前缀
6
// @author SoonIter
7
// @match https://www.bilibili.com/video/**
@@ -26,6 +26,13 @@
26
let flag = false; //是否已经执行
27
28
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);
36
document.querySelectorAll('span.part').forEach(ele => {
37
ele.style.whiteSpace = 'normal';
38
ele.style.lineHeight = '20px';
0 commit comments