File tree 1 file changed +22
-4
lines changed
1 file changed +22
-4
lines changed Original file line number Diff line number Diff line change 1
1
// ==UserScript==
2
- // @name 尚硅谷-bilibili视频删去前缀 -tampermonkey-removePrefix-bilibili
2
+ // @name bilibili视频选集拉长-删去前缀 -tampermonkey-removePrefix-bilibili
3
3
// @namespace http://tampermonkey.net/
4
- // @version 0.4
5
- // @description 一个脚本去除bilibili视频分集的过长的前缀
4
+ // @version 0.5
5
+ // @description 一个脚本解决bilibili视频分集的过长的问题
6
6
// @author SoonIter
7
7
// @match https://www.bilibili.com/video/**
8
8
// @icon https://www.google.com/s2/favicons?sz=64&domain=bilibili.com
30
30
styleDom . innerHTML = `
31
31
.video-episode-card__info-title{
32
32
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;
33
51
}
34
52
` ;
35
53
document . head . appendChild ( styleDom ) ;
45
63
}
46
64
function doIt ( ) {
47
65
try {
48
- wrap && modifyCss ( ) ;
49
66
flag === false &&
50
67
( function ( ) {
68
+ wrap && modifyCss ( ) ;
51
69
const title = document . querySelector ( 'h1' ) . title ;
52
70
const item = configs . find ( i => title . search ( i . h1Title ) !== - 1 ) ;
53
71
if ( item === undefined ) {
You can’t perform that action at this time.
0 commit comments