Skip to content

Commit 224dadc

Browse files
committed
V0.5
1 parent a73bee8 commit 224dadc

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

script.js

+22-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// ==UserScript==
2-
// @name 尚硅谷-bilibili视频删去前缀-tampermonkey-removePrefix-bilibili
2+
// @name bilibili视频选集拉长-删去前缀-tampermonkey-removePrefix-bilibili
33
// @namespace http://tampermonkey.net/
4-
// @version 0.4
5-
// @description 一个脚本去除bilibili视频分集的过长的前缀
4+
// @version 0.5
5+
// @description 一个脚本解决bilibili视频分集的过长的问题
66
// @author SoonIter
77
// @match https://www.bilibili.com/video/**
88
// @icon https://www.google.com/s2/favicons?sz=64&domain=bilibili.com
@@ -30,6 +30,24 @@
3030
styleDom.innerHTML = `
3131
.video-episode-card__info-title{
3232
white-space:normal !important;
33+
max-height:100px !important;
34+
}
35+
.video-episode-card {
36+
height:auto !important;
37+
min-height:auto !important;
38+
}
39+
.video-section-list{
40+
height:auto !important;
41+
min-height:auto !important;
42+
}
43+
.video-episode-card__info{
44+
height:auto !important;
45+
min-height:auto !important;
46+
}
47+
48+
.video-sections-content-list{
49+
height:500px !important;
50+
max-height:500px !important;
3351
}
3452
`;
3553
document.head.appendChild(styleDom);
@@ -45,9 +63,9 @@
4563
}
4664
function doIt() {
4765
try {
48-
wrap && modifyCss();
4966
flag === false &&
5067
(function () {
68+
wrap && modifyCss();
5169
const title = document.querySelector('h1').title;
5270
const item = configs.find(i => title.search(i.h1Title) !== -1);
5371
if (item === undefined) {

0 commit comments

Comments
 (0)