mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Merge branch 'preview' of https://github.com/the1812/Bilibili-Evolved into preview
This commit is contained in:
commit
37e64ec4bf
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
.link-footer,.payment-active,.app-body .section-block{background-color:#222!important;}.wrapper .elec-btn.disabled,.f-list-hover:hover,.status_box .status_btn.disabled,.game-groom-m .num,.container .pagination,.fjw-case-detail .ban-detail .content-box .video-model,.app-body .section-block.with-bottom-radius,.app-body .section-block.with-radius,.pagination-container li.pagination{background-color:#444!important;}blockquote,blockquote *,blockquote .color-blue-01,blockquote .color-blue-02,blockquote .color-blue-03,blockquote .color-blue-04,blockquote .color-gray-01,blockquote .color-gray-02,blockquote .color-gray-03,blockquote .color-green-01,blockquote .color-green-02,blockquote .color-green-03,blockquote .color-green-04,blockquote .color-lblue-01,blockquote .color-lblue-02,blockquote .color-lblue-03,blockquote .color-lblue-04,blockquote .color-pink-01,blockquote .color-pink-02,blockquote .color-pink-03,blockquote .color-pink-04,blockquote .color-purple-01,blockquote .color-purple-02,blockquote .color-purple-03,blockquote .color-purple-04,blockquote .color-yellow-01,blockquote .color-yellow-02,blockquote .color-yellow-03,blockquote .color-yellow-04,.status_box .status_btn.disabled{color:#aaa!important;}.home-page .sticky-bar .bar-content .message,.cover .disabled-cover,.el-input__inner,.commnent-screen-wrap .el-input__inner,.tag-list li.tag-item.on,.bp-popup-panel .title-ctnr .popup-title{color:#eee!important;}.link-footer,.el-input__inner,.commnent-screen-wrap .el-input__inner,.ui-input-textarea.focus,.user-setting-warp .el-radio-button__orig-radio:checked + .el-radio-button__inner,.tabs-bar{border-color:transparent!important;}.home-page .sticky-bar .bar-content .message:hover,.other a a:hover,.more-data a:hover,.rank-item .content .info .detail a a:hover,.rank-item .content .other a:hover,.rank-item .content .more-data:hover,.edit-button:hover > .icon-font,.edit-button:hover > span .left-nav-item-childed:hover,.router-link-exact-active on left-nav-list .active .left-nav-item-child,.router-link-exact-active on left-nav-list .active,.router-link-exact-active on left-nav-list .advice-btn:hover,.router-link-exact-active on left-nav-list .left-nav-item.active,.router-link-exact-active on left-nav-list .left-nav-item.active i.active,.router-link-exact-active on left-nav-list .left-nav-list.on .left-nav-item .icon,.router-link-exact-active on left-nav-list .left-nav-list.on .left-nav-item{color:$customStyleColor!important;}.season-timeline .season-group.today,.season-timeline .season-group.today .group-time::before,.aside-ctnr .author-info .communicate-btn,.tag-list li.tag-item.on,.tag-list li.tag-item:hover{border-color:$customStyleColor!important;}.season-timeline .season-group.today.is-published .group-time::before,.bg-blue,.security-list .child-list li a.bg-blue:hover,.face-g-tab li.current,.el-date-table td.current:not(.disabled),.el-date-table td.end-date,.el-date-table td.start-date,.tag-list li.tag-item.on,.face-g-list#my-g-list .face-g-block .my-mp-block .mp-info .btn-white,.user-setting-warp .el-radio-button__orig-radio:checked + .el-radio-button__inner,.user-my-btn .el-button--primary{background-color:$customStyleColor!important;}.face-g-tab li.current,.current .tab-btn-link,.el-date-table td.current:not(.disabled),.el-date-table td.end-date,.el-date-table td.start-date{color:$foreground!important;}
|
||||
.link-footer,.payment-active,.app-body .section-block{background-color:#222!important;}.wrapper .elec-btn.disabled,.f-list-hover:hover,.status_box .status_btn.disabled,.game-groom-m .num,.container .pagination,.fjw-case-detail .ban-detail .content-box .video-model,.app-body .section-block.with-bottom-radius,.app-body .section-block.with-radius,.pagination-container li.pagination{background-color:#444!important;}blockquote,blockquote *,blockquote .color-blue-01,blockquote .color-blue-02,blockquote .color-blue-03,blockquote .color-blue-04,blockquote .color-gray-01,blockquote .color-gray-02,blockquote .color-gray-03,blockquote .color-green-01,blockquote .color-green-02,blockquote .color-green-03,blockquote .color-green-04,blockquote .color-lblue-01,blockquote .color-lblue-02,blockquote .color-lblue-03,blockquote .color-lblue-04,blockquote .color-pink-01,blockquote .color-pink-02,blockquote .color-pink-03,blockquote .color-pink-04,blockquote .color-purple-01,blockquote .color-purple-02,blockquote .color-purple-03,blockquote .color-purple-04,blockquote .color-yellow-01,blockquote .color-yellow-02,blockquote .color-yellow-03,blockquote .color-yellow-04,.status_box .status_btn.disabled{color:#aaa!important;}.home-page .sticky-bar .bar-content .message,.cover .disabled-cover,.el-input__inner,.commnent-screen-wrap .el-input__inner,.tag-list li.tag-item.on,.bp-popup-panel .title-ctnr .popup-title{color:#eee!important;}.link-footer,.el-input__inner,.commnent-screen-wrap .el-input__inner,.ui-input-textarea.focus,.user-setting-warp .el-radio-button__orig-radio:checked + .el-radio-button__inner,.tabs-bar{border-color:transparent!important;}.home-page .sticky-bar .bar-content .message:hover,.other a a:hover,.more-data a:hover,.rank-item .content .info .detail a a:hover,.rank-item .content .other a:hover,.rank-item .content .more-data:hover,.edit-button:hover > .icon-font,.edit-button:hover > span .left-nav-item-childed:hover,.router-link-exact-active.on.left-nav-list .active .left-nav-item-child,.router-link-exact-active.on.left-nav-list .active,.router-link-exact-active.on.left-nav-list .advice-btn:hover,.router-link-exact-active.on.left-nav-list .left-nav-item.active,.router-link-exact-active.on.left-nav-list .left-nav-item.active i.active,.router-link-exact-active.on.left-nav-list .left-nav-list.on .left-nav-item .icon,.router-link-exact-active.on.left-nav-list .left-nav-list.on .left-nav-item{color:$customStyleColor!important;}.season-timeline .season-group.today,.season-timeline .season-group.today .group-time::before,.aside-ctnr .author-info .communicate-btn,.tag-list li.tag-item.on,.tag-list li.tag-item:hover{border-color:$customStyleColor!important;}.season-timeline .season-group.today.is-published .group-time::before,.bg-blue,.security-list .child-list li a.bg-blue:hover,.face-g-tab li.current,.el-date-table td.current:not(.disabled),.el-date-table td.end-date,.el-date-table td.start-date,.tag-list li.tag-item.on,.face-g-list#my-g-list .face-g-block .my-mp-block .mp-info .btn-white,.user-setting-warp .el-radio-button__orig-radio:checked + .el-radio-button__inner,.user-my-btn .el-button--primary{background-color:$customStyleColor!important;}.face-g-tab li.current,.current .tab-btn-link,.el-date-table td.current:not(.disabled),.el-date-table td.end-date,.el-date-table td.start-date{color:$foreground!important;}
|
||||
@ -1 +1 @@
|
||||
.bili-header-m .nav-menu .nav-con .nav-item:hover,.right-part>.shortcuts-ctnr .shortcut-item:hover,#link-navbar-vm>.link-navbar .nav-item:hover,.z_top .z_top_nav ul li:hover,.uns_box ul.menu li:not(.b-post):hover{background-color:#222;}.bili-header-m .nav-menu .nav-mask,#link-navbar-vm>.link-navbar,#navbar-vm>.link-navbar,#app>.link-navbar,#app>.nav-header-wrapper,.b-header-mask-wrp .b-header-mask{background-color:#444;}.z_top .i-link:hover,.z_top .z_top_nav ul li.home:hover{background-color:transparent;}#app>.nav-header-wrapper>.nav-header{background:transparent;}.bili-header-m .nav-menu .nav-con .nav-item .t,#link-navbar-vm>.link-navbar .main-ctnr .nav-logo,.right-part>.shortcuts-ctnr,.right-part>.shortcuts-ctnr .shortcut-item,.right-part>.shortcuts-ctnr .shortcut-item:hover,#link-navbar-vm>.link-navbar .nav-item:hover,.my-link-btn .label,#app>.link-navbar .main-ctnr .nav-logo,#app>.link-navbar .nav-item.selected .label,#app>.link-navbar .nav-item:hover .icon-font,#app>.nav-header-wrapper>.nav-header .nav-header-mainsite,#app>.nav-header-wrapper>.nav-header .order-center,.z_top.b-header-blur .z_top_nav li a.i-link,.z_top.b-header-blur .uns_box li.u-i a.i-link,.z_top a,.uns_box li.u-i a.i-link{color:#eee;}.uns_box li.u-i:hover a.i-link,.z_top .i-link:hover{color:$customStyleColor;}#link-navbar-vm>.link-navbar-ctnr,#app>.link-navbar{box-shadow:none;}#link-navbar-vm>.link-navbar .main-ctnr .nav-logo::before,#app>.link-navbar .main-ctnr .nav-logo::before{filter:$blueImageFileter!important;}#app>.nav-header-wrapper .nav-header .order-icon{filter:brightness(0) invert(1)!important;}
|
||||
.bili-header-m .nav-menu .nav-con .nav-item:hover,.right-part>.shortcuts-ctnr .shortcut-item:hover,#link-navbar-vm>.link-navbar .nav-item:hover,.z_top .z_top_nav ul li:hover,.uns_box ul.menu li:not(.b-post):hover{background-color:#222;}.bili-header-m .nav-menu .nav-mask,#link-navbar-vm>.link-navbar,#app>.link-navbar,#app>.nav-header-wrapper,.b-header-mask-wrp .b-header-mask{background-color:#444;}#navbar-vm>.link-navbar{background-color:#444!important;}.z_top .i-link:hover,.z_top .z_top_nav ul li.home:hover{background-color:transparent;}#app>.nav-header-wrapper>.nav-header{background:transparent;}.bili-header-m .nav-menu .nav-con .nav-item .t,#link-navbar-vm>.link-navbar .main-ctnr .nav-logo,.right-part>.shortcuts-ctnr,.right-part>.shortcuts-ctnr .shortcut-item:hover,#link-navbar-vm>.link-navbar .nav-item:hover,.my-link-btn .label,#app>.link-navbar .main-ctnr .nav-logo,#app>.link-navbar .nav-item.selected .label,#app>.link-navbar .nav-item:hover .icon-font,#app>.nav-header-wrapper>.nav-header .nav-header-mainsite,#app>.nav-header-wrapper>.nav-header .order-center,.z_top.b-header-blur .z_top_nav li a.i-link,.z_top.b-header-blur .uns_box li.u-i a.i-link,.z_top a,.uns_box li.u-i a.i-link{color:#eee;}.uns_box li.u-i:hover a.i-link,.z_top .i-link:hover{color:$customStyleColor;}#link-navbar-vm>.link-navbar-ctnr,#app>.link-navbar{box-shadow:none;}#link-navbar-vm>.link-navbar .main-ctnr .nav-logo::before,#app>.link-navbar .main-ctnr .nav-logo::before{filter:$blueImageFileter!important;}#app>.nav-header-wrapper .nav-header .order-icon{filter:brightness(0) invert(1)!important;}.shortcuts-ctnr .shortcut-item,.link-navbar .main-ctnr .custom-link>a{color:#eee!important;}.search-bar-ctnr .search-bar input{color:#eee!important;}.search-bar-ctnr .search-bar .placeholder,.search-bar-ctnr .search-bar .search-btn{color:#878787!important;}.search-bar-ctnr .search-bar{border:none!important;box-shadow:0px 2px 10px 1px #0002!important;}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
min/view-cover.min.js
vendored
2
min/view-cover.min.js
vendored
@ -1 +1 @@
|
||||
(()=>{return(e,t)=>{class n{constructor(e){this.url=e;if($(".image-viewer").length===0){this.createDom()}this.viewer=$(".image-viewer-container");this.downloadImage()}createDom(){$("body").append(t.data.imageViewerDom.text);$(".image-viewer-container .close").on("click",()=>this.hide());t.applyStyle("imageViewerStyle")}downloadImage(){const e=new XMLHttpRequest;e.open("GET",this.url.replace("http:","https:"),true);e.responseType="blob";e.onload=(()=>{const t=document.title.replace("_哔哩哔哩 (゜-゜)つロ 干杯~-bilibili","");const n=URL.createObjectURL(e.response);this.imageData=n;this.viewer.find(".download").attr("href",n).attr("download",t);this.viewer.find(".image").prop("src",n)});e.send()}show(){this.viewer.addClass("opened")}hide(){this.viewer.removeClass("opened")}}if($("meta[itemprop='image'],meta[property='og:image']").length>0){return{widget:{content:`\n <button\n class="gui-settings-flat-button"\n id="view-cover">\n <i class="icon-view"></i>\n <span>查看封面</span>\n </button>`,condition:async()=>{const e=await SpinQuery.condition(()=>$("meta[itemprop='image'],meta[property='og:image']"),e=>e.length>0&&e.prop("content"));return typeof e!=="undefined"},success:async()=>{const e=$("meta[itemprop='image'],meta[property='og:image']");const t=new n(e.prop("content"));$("#view-cover").on("click",()=>{t.show()})}}}}else{return{widget:{content:`\n <button\n class="gui-settings-flat-button"\n id="view-cover">\n <i class="icon-view"></i>\n <span>查看封面</span>\n </button>`,condition:async()=>{const e=await SpinQuery.any(()=>$(".header-info-ctnr .room-cover"));return typeof e!=="undefined"},success:async()=>{const e=$(".header-info-ctnr .room-cover");const t=e.attr("href").match(/space\.bilibili\.com\/([\d]+)/);if(t&&t[1]){const e=t[1];const i=`https://api.live.bilibili.com/bili/getRoomInfo/${e}`;const o=await downloadText(i);const a=o.slice(1,-2);const s=JSON.parse(a).data.cover;const c=new n(s);$("#view-cover").on("click",()=>{c.show()})}}}}}}})();
|
||||
(()=>{return(e,t)=>{class n{constructor(e){this.url=e;if($(".image-viewer").length===0){this.createDom()}this.viewer=$(".image-viewer-container");this.downloadImage()}createDom(){$("body").append(t.data.imageViewerDom.text);$(".image-viewer-container .close").on("click",()=>this.hide());t.applyStyle("imageViewerStyle")}downloadImage(){const e=new XMLHttpRequest;e.open("GET",this.url.replace("http:","https:"),true);e.responseType="blob";e.onload=(()=>{const t=document.title.replace("_哔哩哔哩 (゜-゜)つロ 干杯~-bilibili","");const n=URL.createObjectURL(e.response);this.imageData=n;this.viewer.find(".download").attr("href",n).attr("download",t);this.viewer.find(".image").prop("src",n)});e.send()}show(){this.viewer.addClass("opened")}hide(){this.viewer.removeClass("opened")}}if($("meta[itemprop='image'],meta[property='og:image']").length>0){return{widget:{content:`\n <button\n class="gui-settings-flat-button"\n id="view-cover">\n <i class="icon-view"></i>\n <span>查看封面</span>\n </button>`,condition:async()=>{const e=await SpinQuery.condition(()=>$("meta[itemprop='image'],meta[property='og:image']"),e=>e.length>0&&e.prop("content"));return typeof e!=="undefined"},success:async()=>{const e=$("meta[itemprop='image'],meta[property='og:image']");const t=new n(e.prop("content"));$("#view-cover").on("click",()=>{t.show()})}}}}else{return{widget:{content:`\n <button\n class="gui-settings-flat-button"\n id="view-cover">\n <i class="icon-view"></i>\n <span>查看封面</span>\n </button>`,condition:async()=>{const e=await SpinQuery.any(()=>$(".header-info-ctnr .room-cover"));return typeof e!=="undefined"},success:async()=>{const e=$(".header-info-ctnr .room-cover");const t=e.attr("href").match(/space\.bilibili\.com\/([\d]+)/);if(t&&t[1]){const e=t[1];const o=`https://api.live.bilibili.com/room/v1/Room/getRoomInfoOld?mid=${e}`;const i=await downloadText(o);const a=JSON.parse(i).data.cover;const s=new n(a);$("#view-cover").on("click",()=>{s.show()})}}}}}}})();
|
||||
@ -8,13 +8,16 @@
|
||||
}
|
||||
.bili-header-m .nav-menu .nav-mask,
|
||||
#link-navbar-vm>.link-navbar,
|
||||
#navbar-vm>.link-navbar,
|
||||
#app>.link-navbar,
|
||||
#app>.nav-header-wrapper,
|
||||
.b-header-mask-wrp .b-header-mask
|
||||
{
|
||||
background-color: #444;
|
||||
}
|
||||
#navbar-vm>.link-navbar
|
||||
{
|
||||
background-color: #444 !important;
|
||||
}
|
||||
.z_top .i-link:hover,
|
||||
.z_top .z_top_nav ul li.home:hover
|
||||
{
|
||||
@ -27,7 +30,6 @@
|
||||
.bili-header-m .nav-menu .nav-con .nav-item .t,
|
||||
#link-navbar-vm>.link-navbar .main-ctnr .nav-logo,
|
||||
.right-part>.shortcuts-ctnr,
|
||||
.right-part>.shortcuts-ctnr .shortcut-item,
|
||||
.right-part>.shortcuts-ctnr .shortcut-item:hover,
|
||||
#link-navbar-vm>.link-navbar .nav-item:hover,
|
||||
.my-link-btn .label,
|
||||
@ -61,4 +63,23 @@
|
||||
#app>.nav-header-wrapper .nav-header .order-icon
|
||||
{
|
||||
filter: brightness(0) invert(1) !important;
|
||||
}
|
||||
.shortcuts-ctnr .shortcut-item,
|
||||
.link-navbar .main-ctnr .custom-link>a
|
||||
{
|
||||
color: #eee !important;
|
||||
}
|
||||
.search-bar-ctnr .search-bar input
|
||||
{
|
||||
color: #eee !important;
|
||||
}
|
||||
.search-bar-ctnr .search-bar .placeholder,
|
||||
.search-bar-ctnr .search-bar .search-btn
|
||||
{
|
||||
color: #878787 !important;
|
||||
}
|
||||
.search-bar-ctnr .search-bar
|
||||
{
|
||||
border: none !important;
|
||||
box-shadow: 0px 2px 10px 1px #0002 !important;
|
||||
}
|
||||
@ -60,7 +60,8 @@ div#square.container,
|
||||
#community_msg,
|
||||
.gui-settings-dropdown>ul,
|
||||
.toast-card,
|
||||
.gui-settings-widgets-box
|
||||
.gui-settings-widgets-box,
|
||||
.user-panel-ctnr .user-avatar
|
||||
{
|
||||
background-color: #222 !important;
|
||||
}
|
||||
|
||||
@ -59,7 +59,8 @@ div.stardust-player
|
||||
.link-navbar .nav-item.selected .label,
|
||||
.link-navbar .nav-item .icon-font,
|
||||
.nav-header-wrapper .nav-header .nav-header-mainsite,
|
||||
.nav-header-wrapper .nav-header .order-center
|
||||
.nav-header-wrapper .nav-header .order-center,
|
||||
.link-navbar .main-ctnr .custom-link>a
|
||||
{
|
||||
color: $foregroundd !important;
|
||||
}
|
||||
@ -154,10 +155,21 @@ div.up-load
|
||||
{
|
||||
border-radius: 0 !important;
|
||||
}
|
||||
.slot-ctnr a
|
||||
.slot-ctnr a,
|
||||
.main-ctnr .search-bar-ctnr .search-bar input
|
||||
{
|
||||
color: #222 !important;
|
||||
}
|
||||
.main-ctnr .search-bar-ctnr .search-bar .placeholder,
|
||||
.main-ctnr .search-bar-ctnr .search-bar .search-btn
|
||||
{
|
||||
color: #878787 !important;
|
||||
}
|
||||
.main-ctnr .search-bar-ctnr .search-bar
|
||||
{
|
||||
border: none !important;
|
||||
box-shadow: 0px 2px 10px 1px #0002 !important;
|
||||
}
|
||||
.u-link
|
||||
{
|
||||
background: transparent !important;
|
||||
|
||||
@ -106,11 +106,9 @@
|
||||
if (match && match[1])
|
||||
{
|
||||
const uid = match[1];
|
||||
const url = `https://api.live.bilibili.com/bili/getRoomInfo/${uid}`;
|
||||
const url = `https://api.live.bilibili.com/room/v1/Room/getRoomInfoOld?mid=${uid}`;
|
||||
const text = await downloadText(url);
|
||||
// remove the surrounding "(...);"
|
||||
const jsonText = text.slice(1, -2);
|
||||
const coverUrl = JSON.parse(jsonText).data.cover;
|
||||
const coverUrl = JSON.parse(text).data.cover;
|
||||
const imageViewer = new ImageViewer(coverUrl);
|
||||
$("#view-cover").on("click", () =>
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user