|
1 | 1 | // ==UserScript== |
2 | 2 | // @name 哔哩哔哩自定义视频信息条 |
3 | 3 | // @namespace ckylin-bilibili-display-video-id |
4 | | -// @version 1.19.2 |
| 4 | +// @version 1.19.3 |
5 | 5 | // @description 完全自定义你的视频标题下方信息栏,排序,增加,删除! |
6 | 6 | // @author CKylinMC |
7 | 7 | // @match https://www.bilibili.com/video* |
|
668 | 668 | ct_span.innerHTML = config.defaultTextTime ? txttime : rawtime |
669 | 669 | if (config.hideTime) ct_span.innerHTML += ` |
670 | 670 | <style> |
671 | | - .video-data>span:nth-child(3),.video-data>span.pupdate{ |
| 671 | + .video-info-detail span:nth-child(3),.video-info-detail span.pupdate{ |
672 | 672 | display:none!important; |
673 | 673 | } |
674 | 674 | </style>`; |
|
687 | 687 | })(); |
688 | 688 | v_span.innerHTML += ` |
689 | 689 | <style> |
690 | | - .video-data>span.view{ |
| 690 | + .video-info-detail span.view{ |
691 | 691 | display:none!important; |
692 | 692 | } |
693 | 693 | </style>`; |
|
706 | 706 | })(); |
707 | 707 | dmk_span.innerHTML += ` |
708 | 708 | <style> |
709 | | - .video-data>span.dm{ |
| 709 | + .video-info-detail span.dm{ |
710 | 710 | display:none!important; |
711 | 711 | } |
712 | 712 | </style>`; |
|
722 | 722 | top_span.innerHTML = '' |
723 | 723 | top_span.innerHTML += ` |
724 | 724 | <style> |
725 | | - .video-data>span.rank,.video-data>a.honor{ |
| 725 | + .video-info-detail span.rank,.video-info-detail a.honor{ |
726 | 726 | display:none!important; |
727 | 727 | } |
728 | 728 | </style>`; |
|
996 | 996 | } |
997 | 997 | console.log('ShowAV start inject') |
998 | 998 |
|
999 | | - CKTools.addStyle(`.video-container-v1>.copyright.item{display:none!important;}.video-container-v1>.video-data{flex-wrap: wrap!important;}`,"showav_patchNewPlayer","update",document.head); |
| 999 | + CKTools.addStyle(`.video-container-v1 .copyright.item{display:none!important;}.video-container-v1 .video-info-detail{flex-wrap: wrap!important;}`,"showav_patchNewPlayer","update",document.head); |
1000 | 1000 |
|
1001 | 1001 | if (config.forceGap) { |
1002 | 1002 | CKTools.addStyle(`#bilibiliShowInfos{margin-left: 12px!important;}`,"showav_forceGapCss","update",document.head); |
|
1005 | 1005 | } |
1006 | 1006 |
|
1007 | 1007 | if(config.forceRemoveAllItem){ |
1008 | | - CKTools.addStyle(`.video-container-v1 .video-data>.item{display:none!important}.video-data>span:not(#bilibiliShowInfos){display:none!important}`,"showav_hideall", "update", document.head); |
| 1008 | + CKTools.addStyle(`.video-container-v1 .video-info-detail>.item{display:none!important}.video-info-detail>span:not(#bilibiliShowInfos){display:none!important}`,"showav_hideall", "update", document.head); |
1009 | 1009 | }else{ |
1010 | 1010 | CKTools.addStyle(``,"showav_hideall", "update", document.head); |
1011 | 1011 | } |
|
1032 | 1032 | } |
1033 | 1033 | globalinfos.p = getUrlParam("p") || getPageFromCid(unsafeWindow.cid, globalinfos); |
1034 | 1034 |
|
1035 | | - const av_infobar = await waitForDom(".video-data"); |
| 1035 | + //const av_infobar = await waitForDom(".video-data"); |
| 1036 | + const av_infobar = await waitForDom(".video-info-detail"); |
1036 | 1037 | if (!av_infobar) return log('Can not load info-bar in time.'); |
1037 | 1038 | let av_root; |
1038 | 1039 | if (config.showInNewLine) { |
|
2489 | 2490 | `, 'showav_dragablecss', "unique", document.head); |
2490 | 2491 |
|
2491 | 2492 | CKTools.addStyle(` |
2492 | | - .video-data-list{ |
| 2493 | + .video-info-detail-list{ |
2493 | 2494 | display: none!important; |
2494 | 2495 | } |
2495 | 2496 | #bilibiliShowInfos{ |
|
0 commit comments