From b314ff30a76a394731ad1f0db98cdf44ad6dc20b Mon Sep 17 00:00:00 2001 From: the1812 Date: Sun, 5 Jan 2020 17:29:17 +0800 Subject: [PATCH] Change layout of ranklist --- bilibili-evolved.offline.user.js | 10 +-- bilibili-evolved.preview-offline.user.js | 10 +-- bilibili-evolved.preview.user.js | 8 +-- bilibili-evolved.user.js | 8 +-- min/bundle.json | 8 +-- min/bundle.zip | Bin 1526864 -> 1526345 bytes min/simple-home-feeds.vue.min.js | 2 +- min/simple-home-normal-category.vue.min.js | 2 +- min/slideshow-cards.vue.min.js | 2 +- min/trending-videos.vue.min.js | 2 +- .../simple-home-normal-category.vue | 61 +++++++++--------- .../simple-home/simple-home-feeds.vue | 6 +- .../simple-home/slideshow-cards.vue | 5 +- .../simple-home/trending-videos.vue | 10 +-- 14 files changed, 68 insertions(+), 66 deletions(-) diff --git a/bilibili-evolved.offline.user.js b/bilibili-evolved.offline.user.js index 0cddcca10..0743ffa88 100644 --- a/bilibili-evolved.offline.user.js +++ b/bilibili-evolved.offline.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name Bilibili Evolved (Offline) -// @version 537.27 +// @version 538.02 // @description Bilibili Evolved 的离线版, 所有功能都已内置于脚本中. // @author Grant Howard, Coulomb-G // @copyright 2019, Grant Howard (https://github.com/the1812) & Coulomb-G (https://github.com/Coulomb-G) @@ -1225,8 +1225,8 @@ offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/m offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/show-dead-video-title.min.js"] = (()=>{return(e,t)=>{(async()=>{if(!document.URL.startsWith("https://space.bilibili.com")){return}class t{}class i extends t{convertToDeadVideoInfo(e,t){return{aid:e,title:t.title,cover:t.pic}}async queryInfo(e){const t=[];if(e.length<=i.MaxCountPerRequest){const s=await Ajax.getJson(`${i.BiliplusHost}/api/aidinfo?aid=${e.join(",")}`);if(s.code===0){t.push(...e.map(e=>{if(e in s.data){return this.convertToDeadVideoInfo(e,s.data[e])}else{return{aid:e,title:"已失效视频",cover:""}}}))}else{console.error(`[显示失效视频信息] Biliplus API 未成功. message=${s.message}`)}}else{t.push(...await this.queryInfo(e.slice(0,i.MaxCountPerRequest)));t.push(...await this.queryInfo(e.slice(i.MaxCountPerRequest)))}return t}}i.BiliplusHost=`https://hd.biliplus.com`;i.MaxCountPerRequest=30;class s extends t{async toggleWatchlater(e,t){for(const i of t){await Ajax.postTextWithCredentials(`https://api.bilibili.com/x/v2/history/toview/${e?"add":"del"}`,`aid=${i}&csrf=${getCsrf()}}`)}}async queryInfo(e){const t=[];await this.toggleWatchlater(true,e);const i=await Ajax.getJsonWithCredentials("https://api.bilibili.com/x/v2/history/toview/web");if(i.code===0){const s=i.data.list.map(e=>{return{aid:e.aid.toString(),title:e.title,cover:e.pic}});t.push(...e.map(e=>s.find(t=>t.aid===e)).filter(e=>e!==undefined));await this.toggleWatchlater(false,e)}else{console.error(`[显示失效视频信息] 稍后再看 API 未成功. message=${i.message}`)}return t}}const a=await SpinQuery.select("#app>.s-space");if(!a){return}Observer.childListSubtree(a,async()=>{const t=dqa(".disabled[data-aid]");if(t.length===0){return}const a=t.map(e=>e.getAttribute("data-aid"));const o=e.deadVideoTitleProvider==="BiliPlus"?new i:new s;const r=await o.queryInfo(a);console.log(`[显示失效视频信息]`,`deadVideos:`,t,`infos:`,r);t.forEach((t,i)=>{t.classList.remove("disabled");const s=t.getAttribute("data-aid");const a=(()=>{if(e.useBiliplusRedirect){return`https://hd.biliplus.com/video/av${s}`}else{return`//www.bilibili.com/video/av${s}`}})();const o=r.find(e=>e.aid===s);console.log(`[显示失效视频信息]`,"#"+i,o);if(o===undefined){console.error(`[显示失效视频信息]信息获取失败, aid=${s}`);return}const n=t.querySelector("a.cover");n.target="_blank";n.href=a;if(o.cover!==""){n.querySelector("img").src=o.cover.replace("http:","https:")}const l=t.querySelector("a.title");l.target="_blank";l.title=o.title;l.href=a;l.innerText=o.title})})})()}})(); offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/simple-home.vue.min.js"] = (()=>{return(e,o)=>{const t=`
`;o.applyStyleFromText(`.simple-home{--title-color:black;color:#444;display:grid;grid-template-areas:"blackboards trendings trendings" "feeds feeds info" "categories categories categories";grid-template-columns:repeat(3,auto);grid-template-rows:repeat(3,auto);column-gap:32px;row-gap:16px}.simple-home,.simple-home *{transition:.2s ease-out}body.dark .simple-home{--title-color:white;color:#ddd}.simple-home .jump-dots{grid-area:dots;align-self:center;justify-self:center}.simple-home .jump-dots label{display:block}.simple-home .jump-dots label:not(:last-child){margin-bottom:6px}.simple-home .jump-dots .jump-dot{background-color:#ddd;width:8px;height:20px;border-radius:8px;cursor:pointer}body.dark .simple-home .jump-dots .jump-dot{background-color:#444}.simple-home .hidden-input{display:none}.simple-home .hidden-input:checked:nth-of-type(1)~.jump-dots label:nth-child(1) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(1)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 0 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(2)~.jump-dots label:nth-child(2) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(2)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 1 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(3)~.jump-dots label:nth-child(3) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(3)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 2 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(4)~.jump-dots label:nth-child(4) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(4)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 3 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(5)~.jump-dots label:nth-child(5) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(5)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 4 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(6)~.jump-dots label:nth-child(6) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(6)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 5 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(7)~.jump-dots label:nth-child(7) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(7)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 6 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(8)~.jump-dots label:nth-child(8) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(8)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 7 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(9)~.jump-dots label:nth-child(9) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(9)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 8 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(10)~.jump-dots label:nth-child(10) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(10)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 9 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(11)~.jump-dots label:nth-child(11) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(11)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 10 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(12)~.jump-dots label:nth-child(12) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(12)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 11 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(13)~.jump-dots label:nth-child(13) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(13)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 12 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(14)~.jump-dots label:nth-child(14) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(14)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 13 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(15)~.jump-dots label:nth-child(15) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(15)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 14 * var(--blackboard-height)))}.simple-home .more,.simple-home .toggle-reorder{cursor:pointer;padding:4px 12px 4px 8px;display:flex;align-items:center;border-radius:16px;font-size:13px;font-weight:700}.simple-home .more .be-icon,.simple-home .toggle-reorder .be-icon{margin-right:8px;transition:.3s cubic-bezier(.25,.46,.45,.94);font-size:22px;font-weight:400}.simple-home .more:not(.toggle-reorder):hover .be-icon,.simple-home .toggle-reorder:not(.toggle-reorder):hover .be-icon{transform:rotate(180deg)}.simple-home .more,.simple-home .more.hover,.simple-home .toggle-reorder,.simple-home .toggle-reorder.hover{color:inherit!important;background-color:#ddd!important}body.dark .simple-home .more,body.dark .simple-home .more:hover,body.dark .simple-home .toggle-reorder,body.dark .simple-home .toggle-reorder:hover{color:inherit!important;background-color:#333!important}.simple-home .header{grid-area:header;display:flex;justify-content:space-between;align-items:center}.simple-home .header .title{color:var(--title-color);font-weight:700;font-size:22px}.simple-home .header .tabs{display:flex;align-items:center}.simple-home .header .tabs .tab{cursor:pointer;position:relative;white-space:nowrap}.simple-home .header .tabs .tab .tab-name{opacity:.5;font-size:14px}.simple-home .header .tabs .tab:not(:last-child){margin-right:24px}.simple-home .header .tabs .tab::after{content:"";width:calc(80%);height:3px;border-radius:2px;position:absolute;background-color:var(--theme-color);left:10%;bottom:-6px;transform:scaleX(0);transition:.2s ease-out}.simple-home .header .tabs .tab.active::after{transform:scaleX(1)}.simple-home .header .tabs .tab.active .tab-name{font-weight:700;opacity:1;transform:scale(1.1)}.simple-home .sub-header{color:var(--title-color);font-weight:700;font-size:18px;display:flex;align-items:center}.simple-home .sub-header::before{content:"";display:block;width:12px;height:12px;background-color:var(--theme-color);border-radius:50%;margin-right:8px}.simple-home .blackboards{grid-area:blackboards;justify-self:start}.simple-home .trendings{grid-area:trendings;transform:translateX(8px);justify-self:end}.simple-home .info-row{grid-area:info;justify-self:end}.simple-home .feeds{grid-area:feeds;transform:translateX(-8px);justify-self:start}.simple-home .categories{grid-area:categories;padding-bottom:32px}@media screen and (max-width:900px){.simple-home{grid-template-areas:"blackboards" "trendings" "info" "feeds" "categories";grid-template-columns:1fr;grid-template-rows:repeat(5,auto)}.simple-home .blackboards,.simple-home .categories,.simple-home .feeds,.simple-home .info-row,.simple-home .trendings{justify-self:center}}`,"simple-home-style");return{export:Object.assign({template:t},{components:{Blackboards:()=>o.importAsync("blackboard.vue"),TrendingVideos:()=>o.importAsync("trending-videos.vue"),InfoRow:()=>o.importAsync("online-info-row.vue"),Feeds:()=>o.importAsync("simple-home-feeds.vue"),Categories:()=>o.importAsync("simple-home-categories.vue")}})}}})(); offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/simple-home-categories.vue.min.js"] = (()=>{return(e,t)=>{const r=`
分区
{{t.name}}
{{reordering ? '完成' : '排序'}}
`;t.applyStyleFromText(`.simple-home .categories{display:flex;flex-direction:column}.simple-home .categories,.simple-home .categories *,.simple-home .categories ::after,.simple-home .categories ::before{transition:.2s ease-out}.simple-home .categories .header .tabs{display:flex;flex:1 1 0;margin:0 32px;justify-content:space-between;overflow:auto;width:0;height:42px;scrollbar-width:none!important}.simple-home .categories .header .tabs::-webkit-scrollbar{height:0!important;width:0!important}.simple-home .categories .header .tabs .tab{transition:none;margin-right:24px}.simple-home .categories .category-content{margin-top:12px;margin-bottom:36px}.simple-home .categories .category-content-enter,.simple-home .categories .category-content-leave-to{opacity:0}`,"simple-home-categories-style");const o={anime:"动画",bangumi:"番剧",china:"国创",manga:"漫画",music:"音乐",dance:"舞蹈",game:"游戏",tech:"科技",digital:"数码",life:"生活",kichiku:"鬼畜",fashion:"时尚",ads:"广告",entertainment:"娱乐",column:"专栏",movie:"电影",tv:"TV剧",film:"影视",documentary:"纪录片"};return{export:Object.assign({template:r},{components:{Icon:()=>t.importAsync("icon.vue"),NormalCategory:()=>t.importAsync("simple-home-normal-category.vue")},data(){return{tabs:Object.entries(o).map(([e,t])=>{return{key:e,name:t}}),selectedTab:Object.entries(e.simpleHomeCategoryOrders).sort((e,t)=>e[1]-t[1])[0][0],reordering:false,reorder:null,regionCodes:null}},async mounted(){const r=this.$refs.reorderContainer;const{RegionCodes:o}=await t.importAsync("category-regions");this.regionCodes=o;const{Reorder:i}=await t.importAsync("reorder");const s=new i(r);this.reorder=s;s.addEventListener("reorder",t=>{const r=t.detail;for(const t of r){const{element:r,order:o}=t;e.simpleHomeCategoryOrders[r.getAttribute("data-key")]=o}e.simpleHomeCategoryOrders=e.simpleHomeCategoryOrders})},methods:{getOrder(t){return e.simpleHomeCategoryOrders[t]}},computed:{content(){if(["bangumi","china"].includes(this.selectedTab)){return null}else if(this.selectedTab==="manga"){return null}else if(this.selectedTab==="column"){return null}else{return"NormalCategory"}},rid(){if(!this.regionCodes){return-1}else{return this.regionCodes[this.selectedTab]}}}})}}})(); -offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/simple-home-feeds.vue.min.js"] = (()=>{return(e,t)=>{const a=`
`;t.applyStyleFromText(`.simple-home .feeds{justify-self:start;display:grid;grid-template-areas:"header header" "contents contents";grid-template-columns:repeat(2,auto);grid-template-rows:repeat(2,auto);row-gap:16px;column-gap:16px}.simple-home .feeds .header,.simple-home .feeds .sub-header{padding:0 8px}.simple-home .feeds .header .tab:nth-child(2),.simple-home .feeds .sub-header .tab:nth-child(2){margin-left:32px}.simple-home .feeds .header .online,.simple-home .feeds .sub-header .online{padding:8px 16px;height:32px;border-radius:16px;background-color:#8882;color:inherit;font-size:12px;display:flex;align-items:center;box-sizing:border-box}.simple-home .feeds .contents{grid-area:contents;display:flex;overflow:auto;--card-width:200px;--card-height:250px;--card-count:3;width:calc((var(--card-width) + 16px) * var(--card-count));padding-bottom:16px;scroll-snap-type:x mandatory;scrollbar-width:none!important;min-height:var(--card-height)}@media screen and (min-width:1100px){.simple-home .feeds .contents{--card-count:4}}@media screen and (min-width:1300px){.simple-home .feeds .contents{--card-count:5}}@media screen and (min-width:1550px){.simple-home .feeds .contents{--card-count:6}}@media screen and (min-width:1850px){.simple-home .feeds .contents{--card-count:7}}.simple-home .feeds .contents::-webkit-scrollbar{width:0!important;height:0!important}.simple-home .feeds .contents .card-wrapper{padding:0 8px;scroll-snap-align:start;flex-shrink:0}`,"simple-home-feeds-style");const i=[{name:"视频",type:"video",url:"https://t.bilibili.com/?tab=8"},{name:"番剧",type:"bangumi",url:"https://t.bilibili.com/?tab=512"}];return{export:Object.assign({template:a},{components:{VideoCard:()=>t.importAsync("video-card.vue"),Icon:()=>t.importAsync("icon.vue")},data(){return{online:"--",tabs:i,currentTab:i[0],feedCards:[]}},watch:{currentTab(e){this.updateFeedCards(e)}},methods:{async updateFeedCards(e){const{getVideoFeeds:a}=await t.importAsync("feeds-apis");this.feedCards=await a(e.type)},changeTab(e){if(this.currentTab===e){open(e.url,"_blank")}else{this.currentTab=e}}},async mounted(){this.updateFeedCards(this.currentTab);const e=await Ajax.getJson("https://api.bilibili.com/x/web-interface/online");if(e.code===0){this.online=e.data.web_online}}})}}})(); -offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/simple-home-normal-category.vue.min.js"] = (()=>{return(i,e)=>{const t=`
`;e.applyStyleFromText(`.category-view{--loading-from:#d4d4d4;--loading-to:#ddd;--rank-width:420px;--rank-height:250px;--slideshow-ratio:1.2;display:grid;grid-template:"new-activity rank" 1fr "new-post rank" 1fr/1fr var(--rank-width);grid-gap:24px;gap:24px;position:relative;--card-height:calc((8 * 34px + 20px + 1.5 * var(--rank-height)) / 2 - 32px);--card-width:calc(var(--card-height) * (42 / 25))}@media screen and (max-width:1800px){.category-view{--slideshow-ratio:1.2;--rank-width:390px;--rank-height:232.1428571429px}}@media screen and (max-width:1700px){.category-view{--slideshow-ratio:1.1333333333;--rank-width:360px;--rank-height:214.2857142857px}}@media screen and (max-width:1600px){.category-view{--slideshow-ratio:1.0666666667;--rank-width:330px;--rank-height:196.4285714286px}}@media screen and (max-width:1500px){.category-view{--slideshow-ratio:1;--rank-width:300px;--rank-height:178.5714285714px}}@media screen and (max-width:1400px){.category-view{--slideshow-ratio:0.9333333333;--rank-width:270px;--rank-height:160.7142857143px}}@media screen and (max-width:1300px){.category-view{--slideshow-ratio:0.8666666667;--rank-width:240px;--rank-height:142.8571428571px}}@media screen and (max-width:1200px){.category-view{--slideshow-ratio:0.8;--rank-width:210px;--rank-height:125px}}@media screen and (max-width:1000px){.category-view{--slideshow-ratio:0.8;--rank-width:210px;--rank-height:125px}}@media screen and (max-width:900px){.category-view{--slideshow-ratio:0.7333333333;--rank-width:180px;--rank-height:107.1428571429px}}@media screen and (max-width:800px){.category-view{--slideshow-ratio:0.6666666667;--rank-width:150px;--rank-height:89.2857142857px}}@media screen and (max-width:700px){.category-view{--slideshow-ratio:0.6;--rank-width:120px;--rank-height:71.4285714286px}}.category-view,.category-view *,.category-view ::after,.category-view ::before{transition:.2s ease-out}@keyframes normal-category-loading{from{background-color:var(--loading-from)}to{background-color:var(--loading-to)}}body.dark .category-view{--loading-from:#333;--loading-to:#262626}.category-view .loading{opacity:0;pointer-events:none;border-radius:16px;animation:.64s ease-in-out infinite alternate normal-category-loading;position:absolute}.category-view .area-header{grid-area:header;display:flex;align-items:center;justify-content:flex-start;font-weight:700;font-size:11pt;margin-bottom:12px}.category-view .area-header::before{content:"";display:inline-flex;height:10px;width:10px;background-color:var(--theme-color);border-radius:50%;margin-right:8px}.category-view .rank{display:grid;width:var(--rank-width);justify-self:right;grid-template:"header header" auto "first first" calc(10px + var(--rank-height)) "second third" calc(var(--rank-height)/ 2 + 10px)/calc(var(--rank-width)/ 2) calc(var(--rank-width)/ 2)}.category-view .rank .rank-item{grid-column:1/3;box-shadow:0 4px 8px 0 #0001;background-color:#fff;color:inherit!important;position:relative}body.dark .category-view .rank .rank-item{background-color:#282828}.category-view .rank .rank-item .cover{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:16px;overflow:hidden}.category-view .rank .rank-item .cover img{width:100%;height:100%;object-fit:cover}.category-view .rank .rank-item:hover .cover img{transform:scale(1.05)}.category-view .rank .rank-item .rank-number{position:absolute;top:6px;left:6px;width:22px;height:22px;line-height:22px;border-radius:50%;box-sizing:border-box;text-align:center;font-weight:700;font-size:13px;z-index:9;background-color:#8884}.category-view .rank .rank-item .watchlater{position:absolute;top:6px;right:6px;width:22px;height:22px;border-radius:50%;box-sizing:border-box;z-index:9;background-color:#000a;color:#fff;display:flex;align-items:center;justify-content:center;opacity:0}.category-view .rank .rank-item:hover .watchlater{opacity:1}.category-view .rank .rank-item .be-icon{font-size:16px}.category-view .rank .rank-item .be-icon.mdi-fire{transform:scale(calc(18 / 16));margin-right:2px}.category-view .rank .rank-item:not(:first-child)>.title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700;font-size:13px;line-height:34px;padding:0 8px 0 34px;opacity:.9}.category-view .rank .rank-item:not(:first-child):hover{background-color:var(--theme-color-30)}.category-view .rank .rank-item:not(:first-child):hover>.title{opacity:1}.category-view .rank .rank-item:not(:first-child) .details{position:absolute;top:50%;right:calc(100% + 10px);transform:translateY(-50%);width:var(--rank-width);padding:4px;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;z-index:10;opacity:0;pointer-events:none}.category-view .rank .rank-item:not(:first-child) .details .title{font-weight:700;font-size:14px;line-height:1.5;color:#fff;padding:8px;z-index:10}.category-view .rank .rank-item:not(:first-child) .details .cover{overflow:hidden;background-color:#000}.category-view .rank .rank-item:not(:first-child) .details .cover img{filter:blur(16px) brightness(.5);transform:scale(1.5)}.category-view .rank .rank-item:not(:first-child) .details .stats,.category-view .rank .rank-item:not(:first-child) .details .up{z-index:10;display:flex;color:#fff}.category-view .rank .rank-item:not(:first-child) .details .stats .be-icon:not(.mdi-fire),.category-view .rank .rank-item:not(:first-child) .details .up .be-icon:not(.mdi-fire){margin:0 4px 0 8px}.category-view .rank .rank-item:not(:first-child) .details .up{justify-content:space-between;margin:0 10px 0 6px}.category-view .rank .rank-item:not(:first-child) .details .up>*{display:flex;align-items:center}.category-view .rank .rank-item:not(:first-child) .details .stats{margin:8px}.category-view .rank .rank-item:not(:first-child) .details .stats .be-icon:first-child{margin-left:0}.category-view .rank .rank-item:not(:first-child):hover .details{opacity:1}.category-view .rank .rank-item:first-child,.category-view .rank .rank-item:nth-child(2),.category-view .rank .rank-item:nth-child(3){border-radius:16px}.category-view .rank .rank-item:first-child .rank-number,.category-view .rank .rank-item:nth-child(2) .rank-number,.category-view .rank .rank-item:nth-child(3) .rank-number{background-color:var(--theme-color);color:var(--foreground-color);opacity:.9}.category-view .rank .rank-item:nth-child(4){border-radius:16px 16px 0 0}.category-view .rank .rank-item:nth-last-child(2){border-radius:0 0 16px 16px}.category-view .rank .rank-item:first-child{grid-area:first;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;margin-bottom:10px}.category-view .rank .rank-item:first-child .details{align-self:stretch}.category-view .rank .rank-item:first-child .cover::after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-image:linear-gradient(to top,#000c 0,transparent 100%);z-index:0}.category-view .rank .rank-item:first-child .title{font-weight:700;font-size:16px;line-height:1.5;color:#fff;padding:0 8px;z-index:10;white-space:nowrap;overflow:hidden;max-width:100%;text-overflow:ellipsis}.category-view .rank .rank-item:first-child .up{display:flex;align-self:stretch;justify-content:space-between;align-items:center;opacity:.75;color:#fff;padding:0 12px 0 6px;margin:4px 0 8px;z-index:10}.category-view .rank .rank-item:first-child .up>*{display:flex;align-items:center}.category-view .rank .rank-item:first-child .up .be-iconfont-up{margin-right:4px}.category-view .rank .rank-item:first-child .up .points{flex-shrink:0;margin-right:8px}.category-view .rank .rank-item:first-child .up .up-info{max-width:61%}.category-view .rank .rank-item:first-child .up .up-info .up-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:break-all}.category-view .rank .rank-item:first-child .stats{display:flex;justify-content:flex-start;align-items:center;color:#fff;opacity:0;padding:0 8px;position:absolute;bottom:8px;left:0;z-index:10}.category-view .rank .rank-item:first-child .stats .be-icon{margin:0 2px 0 8px}.category-view .rank .rank-item:first-child .stats .be-icon:first-child{margin-left:0}.category-view .rank .rank-item:first-child:hover .up{opacity:0}.category-view .rank .rank-item:first-child:hover .stats{opacity:.75}.category-view .rank .rank-item:nth-child(2){grid-area:second;margin-right:5px;margin-bottom:10px}.category-view .rank .rank-item:nth-child(3){grid-area:third;margin-left:5px;margin-bottom:10px}.category-view .new-activity{align-self:start;grid-area:new-activity}.category-view .new-post{align-self:end;grid-area:new-post}.category-view.new-activity-loading .new-activity.loading{position:static;opacity:1;pointer-events:initial;width:100%;height:100%}.category-view.new-activity-loading .new-activity:not(.loading){opacity:0;pointer-events:none}.category-view.new-post-loading .new-post.loading{position:static;opacity:1;pointer-events:initial;width:100%;height:100%}.category-view.new-post-loading .new-post:not(.loading){opacity:0;pointer-events:none}.category-view .rank{grid-area:rank}.category-view.rank-loading .rank.loading{position:static;opacity:1;pointer-events:initial;width:100%;height:100%}.category-view.rank-loading .rank:not(.loading){opacity:0;pointer-events:none}@media screen and (max-width:1100px){.category-view{--slideshow-ratio:0.8666666667;--rank-width:240px;--rank-height:142.8571428571px;grid-template:"new-activity" 1fr "new-post" 1fr "rank" auto/1fr}.category-view .rank{--rank-width:420px;--rank-height:250px}}`,"simple-home-normal-category-style");return{export:Object.assign({template:t},{components:{SlideshowCards:()=>e.importAsync("slideshow-cards.vue"),Icon:()=>e.importAsync("icon.vue"),DpiImg:()=>e.importAsync("dpi-img.vue")},store:store,filters:{bigNumber(i){return formatCount(i)}},props:{rid:{type:Number,required:true}},data(){return{newActivity:{error:false,loading:true,videos:[]},newPost:{error:false,loading:true,videos:[]},rank:{error:false,loading:true,videos:[]},loaded:false}},computed:{...Vuex.mapState(["watchlaterList"])},methods:{async loadCards(i,e,t){if(t===undefined){t=(i=>{const e=getUID();const t=_.get(i,"data.archives",[]);return t.map(i=>{return{id:i.aid,aid:i.aid,coverUrl:i.pic.replace("http:","https:"),title:i.title,upName:i.owner.name,upFaceUrl:i.owner.face.replace("http:","https:"),upID:i.owner.mid,playCount:i.stat.view,danmakuCount:i.stat.danmaku,like:i.stat.like,coins:i.stat.coin,description:i.desc,type:i.tname,watchlater:e?this.watchlaterList.includes(i.aid):null}})})}try{this[i].loading=true;const a=await Ajax.getJson(e);if(a.code!==0){this[i].error=true}this[i].videos=t(a)}catch(e){logError(e);this[i].error=true}finally{this[i].loading=false}},async loadNewActivity(){await this.loadCards("newActivity",`https://api.bilibili.com/x/web-interface/dynamic/region?ps=10&rid=${this.rid}`)},async loadNewPost(){await this.loadCards("newPost",`https://api.bilibili.com/x/web-interface/newlist?ps=10&rid=${this.rid}`)},async loadRank(){await this.loadCards("rank",`https://api.bilibili.com/x/web-interface/ranking/region?rid=${this.rid}&day=3&original=0`,i=>{const e=getUID();const t=i.data;return t.map(i=>{return{id:i.aid,aid:parseInt(i.aid),title:i.title,playCount:i.play,favorites:i.favorites,upID:i.mid,upName:i.author,description:i.description,coverUrl:i.pic.replace("http:","https:"),coins:i.coins,durationText:i.duration,points:i.pts,watchlater:e?this.watchlaterList.includes(parseInt(i.aid)):null}})})},...Vuex.mapActions(["toggleWatchlater"]),updateVideos(){this.loadNewActivity();this.loadNewPost();this.loadRank()}},watch:{rid(i){if(i>0){if(this.loaded){this.updateVideos()}}else{console.warn(`rid=${i}`)}}},mounted(){const i=new IntersectionObserver(()=>{this.updateVideos();this.loaded=true;i.disconnect()});i.observe(this.$el)}})}}})(); +offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/simple-home-feeds.vue.min.js"] = (()=>{return(e,t)=>{const a=`
`;t.applyStyleFromText(`.simple-home .feeds{justify-self:start;display:grid;grid-template-areas:"header header" "contents contents";grid-template-columns:repeat(2,auto);grid-template-rows:repeat(2,auto);row-gap:16px;column-gap:16px}.simple-home .feeds .header,.simple-home .feeds .sub-header{padding:0 8px}.simple-home .feeds .header .tab:nth-child(2),.simple-home .feeds .sub-header .tab:nth-child(2){margin-left:32px}.simple-home .feeds .header .online,.simple-home .feeds .sub-header .online{padding:8px 16px;height:32px;border-radius:16px;background-color:#8882;color:inherit;font-size:12px;display:flex;align-items:center;box-sizing:border-box}.simple-home .feeds .contents{grid-area:contents;display:flex;overflow:auto;--card-width:200px;--card-height:250px;--card-count:3;width:calc((var(--card-width) + 16px) * var(--card-count));padding-bottom:16px;scroll-snap-type:x mandatory;scrollbar-width:none!important;min-height:var(--card-height)}@media screen and (min-width:1100px){.simple-home .feeds .contents{--card-count:4}}@media screen and (min-width:1300px){.simple-home .feeds .contents{--card-count:5}}@media screen and (min-width:1550px){.simple-home .feeds .contents{--card-count:6}}.simple-home .feeds .contents::-webkit-scrollbar{width:0!important;height:0!important}.simple-home .feeds .contents .card-wrapper{padding:0 8px;scroll-snap-align:start;flex-shrink:0}`,"simple-home-feeds-style");const i=[{name:"视频",type:"video",url:"https://t.bilibili.com/?tab=8"},{name:"番剧",type:"bangumi",url:"https://t.bilibili.com/?tab=512"}];return{export:Object.assign({template:a},{components:{VideoCard:()=>t.importAsync("video-card.vue"),Icon:()=>t.importAsync("icon.vue")},data(){return{online:"--",tabs:i,currentTab:i[0],feedCards:[]}},watch:{currentTab(e){this.updateFeedCards(e)}},methods:{async updateFeedCards(e){const{getVideoFeeds:a}=await t.importAsync("feeds-apis");this.feedCards=await a(e.type)},changeTab(e){if(this.currentTab===e){open(e.url,"_blank")}else{this.currentTab=e}}},async mounted(){this.updateFeedCards(this.currentTab);const e=await Ajax.getJson("https://api.bilibili.com/x/web-interface/online");if(e.code===0){this.online=e.data.web_online}}})}}})(); +offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/simple-home-normal-category.vue.min.js"] = (()=>{return(i,e)=>{const t=`
`;e.applyStyleFromText(`.category-view{--loading-from:#d4d4d4;--loading-to:#ddd;--rank-width:370px;--rank-height:calc(var(--rank-width) / 16 * 9);--slideshow-ratio:0.6;--card-height:300px;--card-width:calc(var(--card-height) * (42 / 25));display:grid;grid-template:"new-activity rank" 1fr "new-post rank" 1fr/1fr calc(1.5 * var(--rank-width) + 10px);grid-row-gap:24px;row-gap:24px;grid-column-gap:32px;column-gap:32px;position:relative}@media screen and (max-width:1800px){.category-view{--card-height:288px;--rank-width:350px}}@media screen and (max-width:1700px){.category-view{--card-height:276px;--rank-width:330px}}@media screen and (max-width:1600px){.category-view{--card-height:264px;--rank-width:310px}}@media screen and (max-width:1500px){.category-view{--card-height:252px;--rank-width:290px}}@media screen and (max-width:1400px){.category-view{--card-height:240px;--rank-width:270px}}@media screen and (max-width:1200px){.category-view{--card-height:216px;--rank-width:230px}}@media screen and (max-width:1100px){.category-view{--card-height:204px;--rank-width:210px}}@media screen and (max-width:1000px){.category-view{--card-height:192px;--rank-width:190px}}@media screen and (max-width:900px){.category-view{--card-height:180px;--rank-width:170px}}@media screen and (max-width:800px){.category-view{--card-height:168px;--rank-width:150px}}@media screen and (max-width:700px){.category-view{--card-height:156px;--rank-width:130px}}.category-view,.category-view *,.category-view ::after,.category-view ::before{transition:.2s ease-out}@keyframes normal-category-loading{from{background-color:var(--loading-from)}to{background-color:var(--loading-to)}}body.dark .category-view{--loading-from:#333;--loading-to:#262626}.category-view .loading{opacity:0;pointer-events:none;border-radius:16px;animation:.64s ease-in-out infinite alternate normal-category-loading;position:absolute}.category-view .area-header{grid-area:header;display:flex;align-items:center;justify-content:flex-start;font-weight:700;font-size:11pt;margin-bottom:12px}.category-view .area-header::before{content:"";display:inline-flex;height:10px;width:10px;background-color:var(--theme-color);border-radius:50%;margin-right:8px}.category-view .rank{display:grid;width:calc(1.5 * var(--rank-width) + 10px);justify-self:right;grid-template:"header header" auto "first second" calc(var(--rank-height)/ 2 + 10px) "first third" calc(var(--rank-height)/ 2 + 10px)/calc(var(--rank-width)) calc(10px + var(--rank-width)/ 2)}.category-view .rank .rank-item{grid-column:1/3;box-shadow:0 4px 8px 0 #0001;background-color:#fff;color:inherit!important;position:relative}body.dark .category-view .rank .rank-item{background-color:#282828}.category-view .rank .rank-item .cover{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:16px;overflow:hidden}.category-view .rank .rank-item .cover img{width:100%;height:100%;object-fit:cover}.category-view .rank .rank-item:hover .cover img{transform:scale(1.05)}.category-view .rank .rank-item .rank-number{position:absolute;top:6px;left:6px;width:22px;height:22px;line-height:22px;border-radius:50%;box-sizing:border-box;text-align:center;font-weight:700;font-size:13px;z-index:9;background-color:#8884}.category-view .rank .rank-item .watchlater{position:absolute;top:6px;right:6px;width:22px;height:22px;border-radius:50%;box-sizing:border-box;z-index:9;background-color:#000a;color:#fff;display:flex;align-items:center;justify-content:center;opacity:0}.category-view .rank .rank-item:hover .watchlater{opacity:1}.category-view .rank .rank-item .be-icon{font-size:16px}.category-view .rank .rank-item .be-icon.mdi-fire{transform:scale(calc(18 / 16));margin-right:2px}.category-view .rank .rank-item:not(:first-child)>.title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700;font-size:13px;line-height:34px;padding:0 8px 0 34px;opacity:.9}.category-view .rank .rank-item:not(:first-child):hover{background-color:var(--theme-color-30)}.category-view .rank .rank-item:not(:first-child):hover>.title{opacity:1}.category-view .rank .rank-item:not(:first-child) .details{position:absolute;top:50%;right:calc(100% + 10px);transform:translateY(-50%);width:var(--rank-width);padding:4px;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;z-index:10;opacity:0;pointer-events:none}.category-view .rank .rank-item:not(:first-child) .details .title{font-weight:700;font-size:14px;line-height:1.5;color:#fff;padding:8px;z-index:10}.category-view .rank .rank-item:not(:first-child) .details .cover{overflow:hidden;background-color:#000}.category-view .rank .rank-item:not(:first-child) .details .cover img{filter:blur(16px) brightness(.5);transform:scale(1.5)}.category-view .rank .rank-item:not(:first-child) .details .stats,.category-view .rank .rank-item:not(:first-child) .details .up{z-index:10;display:flex;color:#fff}.category-view .rank .rank-item:not(:first-child) .details .stats .be-icon:not(.mdi-fire),.category-view .rank .rank-item:not(:first-child) .details .up .be-icon:not(.mdi-fire){margin:0 4px 0 8px}.category-view .rank .rank-item:not(:first-child) .details .up{justify-content:space-between;margin:0 10px 0 6px}.category-view .rank .rank-item:not(:first-child) .details .up>*{display:flex;align-items:center}.category-view .rank .rank-item:not(:first-child) .details .stats{margin:8px}.category-view .rank .rank-item:not(:first-child) .details .stats .be-icon:first-child{margin-left:0}.category-view .rank .rank-item:not(:first-child):hover .details{opacity:1}.category-view .rank .rank-item:first-child,.category-view .rank .rank-item:nth-child(2),.category-view .rank .rank-item:nth-child(3){border-radius:16px}.category-view .rank .rank-item:first-child .rank-number,.category-view .rank .rank-item:nth-child(2) .rank-number,.category-view .rank .rank-item:nth-child(3) .rank-number{background-color:var(--theme-color);color:var(--foreground-color);opacity:.9}.category-view .rank .rank-item:nth-child(4){border-radius:16px 16px 0 0}.category-view .rank .rank-item:nth-last-child(2){border-radius:0 0 16px 16px}.category-view .rank .rank-item:first-child{grid-area:first;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;margin-bottom:10px}.category-view .rank .rank-item:first-child .details{align-self:stretch}.category-view .rank .rank-item:first-child .cover::after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-image:linear-gradient(to top,#000c 0,transparent 100%);z-index:0}.category-view .rank .rank-item:first-child .title{font-weight:700;font-size:16px;line-height:1.5;color:#fff;padding:0 8px;z-index:10;white-space:nowrap;overflow:hidden;max-width:100%;text-overflow:ellipsis}.category-view .rank .rank-item:first-child .up{display:flex;align-self:stretch;justify-content:space-between;align-items:center;opacity:.75;color:#fff;padding:0 12px 0 6px;margin:4px 0 8px;z-index:10}.category-view .rank .rank-item:first-child .up>*{display:flex;align-items:center}.category-view .rank .rank-item:first-child .up .be-iconfont-up{margin-right:4px}.category-view .rank .rank-item:first-child .up .points{flex-shrink:0;margin-right:8px}.category-view .rank .rank-item:first-child .up .up-info{max-width:61%}.category-view .rank .rank-item:first-child .up .up-info .up-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:break-all}.category-view .rank .rank-item:first-child .stats{display:flex;justify-content:flex-start;align-items:center;color:#fff;opacity:0;padding:0 8px;position:absolute;bottom:8px;left:0;z-index:10}.category-view .rank .rank-item:first-child .stats .be-icon{margin:0 2px 0 8px}.category-view .rank .rank-item:first-child .stats .be-icon:first-child{margin-left:0}.category-view .rank .rank-item:first-child:hover .up{opacity:0}.category-view .rank .rank-item:first-child:hover .stats{opacity:.75}.category-view .rank .rank-item:nth-child(2){grid-area:second;margin-bottom:10px;margin-left:10px}.category-view .rank .rank-item:nth-child(3){grid-area:third;margin-bottom:10px;margin-left:10px}.category-view .new-activity{align-self:start;grid-area:new-activity}.category-view .new-post{align-self:end;grid-area:new-post}.category-view.new-activity-loading .new-activity.loading{position:static;opacity:1;pointer-events:initial;width:100%;height:100%}.category-view.new-activity-loading .new-activity:not(.loading){opacity:0;pointer-events:none}.category-view.new-post-loading .new-post.loading{position:static;opacity:1;pointer-events:initial;width:100%;height:100%}.category-view.new-post-loading .new-post:not(.loading){opacity:0;pointer-events:none}.category-view .rank{grid-area:rank}.category-view.rank-loading .rank.loading{position:static;opacity:1;pointer-events:initial;width:100%;height:100%}.category-view.rank-loading .rank:not(.loading){opacity:0;pointer-events:none}@media screen and (max-width:1300px){.category-view{--card-height:228px;--rank-width:250px;grid-template:"new-activity" 1fr "new-post" 1fr "rank" auto/1fr;--card-height:300px}.category-view .rank{--rank-width:420px;justify-self:center}}`,"simple-home-normal-category-style");return{export:Object.assign({template:t},{components:{SlideshowCards:()=>e.importAsync("slideshow-cards.vue"),Icon:()=>e.importAsync("icon.vue"),DpiImg:()=>e.importAsync("dpi-img.vue")},store:store,filters:{bigNumber(i){return formatCount(i)}},props:{rid:{type:Number,required:true}},data(){return{newActivity:{error:false,loading:true,videos:[]},newPost:{error:false,loading:true,videos:[]},rank:{error:false,loading:true,videos:[]},loaded:false}},computed:{...Vuex.mapState(["watchlaterList"])},methods:{async loadCards(i,e,t){if(t===undefined){t=(i=>{const e=getUID();const t=_.get(i,"data.archives",[]);return t.map(i=>{return{id:i.aid,aid:i.aid,coverUrl:i.pic.replace("http:","https:"),title:i.title,upName:i.owner.name,upFaceUrl:i.owner.face.replace("http:","https:"),upID:i.owner.mid,playCount:i.stat.view,danmakuCount:i.stat.danmaku,like:i.stat.like,coins:i.stat.coin,description:i.desc,type:i.tname,watchlater:e?this.watchlaterList.includes(i.aid):null}})})}try{this[i].loading=true;const a=await Ajax.getJson(e);if(a.code!==0){this[i].error=true}this[i].videos=t(a)}catch(e){logError(e);this[i].error=true}finally{this[i].loading=false}},async loadNewActivity(){await this.loadCards("newActivity",`https://api.bilibili.com/x/web-interface/dynamic/region?ps=10&rid=${this.rid}`)},async loadNewPost(){await this.loadCards("newPost",`https://api.bilibili.com/x/web-interface/newlist?ps=10&rid=${this.rid}`)},async loadRank(){await this.loadCards("rank",`https://api.bilibili.com/x/web-interface/ranking/region?rid=${this.rid}&day=3&original=0`,i=>{const e=getUID();const t=i.data;return t.map(i=>{return{id:i.aid,aid:parseInt(i.aid),title:i.title,playCount:i.play,favorites:i.favorites,upID:i.mid,upName:i.author,description:i.description,coverUrl:i.pic.replace("http:","https:"),coins:i.coins,durationText:i.duration,points:i.pts,watchlater:e?this.watchlaterList.includes(parseInt(i.aid)):null}})})},...Vuex.mapActions(["toggleWatchlater"]),updateVideos(){this.loadNewActivity();this.loadNewPost();this.loadRank()}},watch:{rid(i){if(i>0){if(this.loaded){this.updateVideos()}}else{console.warn(`rid=${i}`)}}},mounted(){const i=new IntersectionObserver(()=>{this.updateVideos();this.loaded=true;i.disconnect()});i.observe(this.$el)}})}}})(); offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/simplify-home.min.css"] = `#app>.bili-header-m.stardust-common>.bili-wrapper,#app>.bili-wrapper,#app>.elevator-module,.bili-header-m .head-banner .head-content .head-logo,.international-footer,.international-header .b-wrap,.international-home>:not(.international-header){display:none!important}`; offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/simplify-home.min.js"] = (()=>{return(e,i)=>{(async()=>{if(document.URL.replace(window.location.search,"")!=="https://www.bilibili.com/"){i.removeStyle("simplifyHomeStyle");return}document.body.insertAdjacentHTML("beforeend",`\n\n`);const m=new Vue({el:"simplify-home",components:{SimplifyHome:()=>i.importAsync("simplify-home.vue")},data:{homeStyle:e.simplifyHomeStyle}});addSettingsListener("simplifyHomeStyle",e=>m.homeStyle=e,false)})()}})(); offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/simplify-home.vue.min.js"] = (()=>{return(e,o)=>{const m=`
`;o.applyStyleFromText(`.simplify-home{padding-top:32px;display:flex;align-items:flex-start;justify-content:center;min-height:100vh;background-color:#f4f4f4}body.dark .simplify-home{background-color:#181818}.simplify-home .simplify-home-component{max-width:100%}html{scroll-behavior:smooth}`,"simplify-home-style");return{export:Object.assign({template:m},{components:{"minimal-home":()=>o.importAsync("minimal-home.vue"),"simple-home":()=>o.importAsync("simple-home.vue")},computed:{activeComponent(){return this.homeStyle==="清爽"?"simple-home":"minimal-home"}},props:{homeStyle:String}})}}})(); @@ -1234,7 +1234,7 @@ offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/m offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/simplify-liveroom.min.js"] = (()=>{return(e,i)=>{const s={vip:"老爷图标",fansMedal:"粉丝勋章",title:"活动头衔",userLevel:"用户等级",guard:"舰长图标",systemMessage:"全区广播",welcomeMessage:"欢迎信息",giftMessage:"礼物弹幕",guardPurchase:"上舰提示",giftPanel:"付费礼物",kanban:"看板娘",eventsBanner:"活动横幅",popup:"抽奖提示",skin:"房间皮肤"};class t{constructor(i,s){this.skinDisabled=e.simplifyLiveroomSettings.skin;this.skinSelectors=i;this.skinClass=s;i.forEach(e=>{SpinQuery.select(e,i=>{Observer.attributes(e,e=>{e.forEach(e=>{if(e.attributeName==="class"){if(this.skinDisabled&&i.classList.contains(s)){i.classList.remove(s)}else if(!this.skinDisabled&&!i.classList.contains(s)){i.classList.add(s)}}})})})})}setSkin(e){this.skinDisabled=!e;this.skinSelectors.forEach(i=>{SpinQuery.select(i,i=>i.classList[e?"add":"remove"](this.skinClass))})}}const n=[new t(["#head-info-vm","#gift-control-vm","#rank-list-vm","#rank-list-ctnr-box",".gift-panel.base-panel",".gift-panel.extend-panel",".seeds-wrap>div:first-child",".gift-section>div:last-child",".z-gift-package>div>div",".right-action"],"live-skin-coloration-area"),new t([".rank-list-ctnr .tabs"],"isHundred"),new t([".rank-list-ctnr .tab-content > div"],"hundred")];const a=(e,i)=>{document.body.classList[e?"add":"remove"](`simplify-${i}`);if(i==="skin"){n.forEach(i=>i.setSkin(!e))}};const c=()=>document.URL.startsWith(`https://live.bilibili.com/`);if(c()){Object.keys(s).forEach(i=>{const s=e.simplifyLiveroomSettings[i];a(s,i)})}return{widget:{condition:c,content:`\n
\n\n简化直播间\n\n
\n`,success:()=>{const i=document.querySelector("#simplify-liveroom");const t=document.querySelector(".gui-settings-mask");i.addEventListener("click",e=>{const i=document.querySelector(".simplify-liveroom-settings");if(i.contains(e.target)||e.target===i){return}i.classList.toggle("opened")});i.addEventListener("mouseenter",()=>t.classList.add("transparent"));i.addEventListener("mouseleave",()=>t.classList.remove("transparent"));new Vue({el:".simplify-liveroom-settings",data:{items:Object.entries(s).map(([i,s])=>{const t=e.simplifyLiveroomSettings[i];a(t,i);return{key:i,name:s,checked:t}})},methods:{itemClick(i){i.checked=!i.checked;a(i.checked,i.key);e.simplifyLiveroomSettings=Object.assign(e.simplifyLiveroomSettings,{[i.key]:i.checked})}}})}}}}})(); offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/skip-charge-list.min.css"] = `.bilibili-player .bilibili-player-area .bilibili-player-electric-panel{display:none!important}`; offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/skip-charge-list.min.js"] = (()=>{return(e,i)=>{async function n(){const e=await SpinQuery.select(()=>document.querySelector("video"));e&&e.addEventListener("ended",async()=>{const e=await SpinQuery.select(()=>document.querySelector(".bilibili-player-electric-panel-jump"));e&&e.click()})}if(Observer.videoChange){Observer.videoChange(n)}else{Observer.childList("#bofqi",n)}}})(); -offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/slideshow-cards.vue.min.js"] = (()=>{return(e,r)=>{const i=`
{{title}}
`;r.applyStyleFromText(`.slideshow-cards{display:grid;position:relative;grid-template:"header header header header" auto "cards . operations info" var(--card-height)/var(--card-width) 44px 1fr calc(var(--slideshow-ratio) * var(--card-width))}.slideshow-cards .error{grid-column:1/4;grid-row:2/3;align-self:stretch;justify-self:stretch}.slideshow-cards .operations{grid-area:operations;display:flex;flex-direction:column;align-self:center;justify-self:start}.slideshow-cards .operations>*{background-color:#ddd;border-radius:50%;border:none;display:flex;height:32px;width:32px;align-items:center;justify-content:center;box-sizing:border-box;margin-right:8px;cursor:pointer}.slideshow-cards .operations>:hover{background-color:#ccc}body.dark .slideshow-cards .operations>*{background-color:#333}body.dark .slideshow-cards .operations>:hover{background-color:#444}.slideshow-cards .operations>.checked{border:2px solid var(--theme-color)}.slideshow-cards .operations>* .be-icon{font-size:22px}.slideshow-cards .operations>:not(:last-child){margin-bottom:8px}.slideshow-cards .operations .play .be-icon{font-size:16px;transform:translateX(1.5px)}.slideshow-cards .operations .play,body.dark .slideshow-cards .operations .play{color:var(--foreground-color);background-color:var(--theme-color)}.slideshow-cards .operations .play:hover,body.dark .slideshow-cards .operations .play:hover{background-color:var(--theme-color-80)}.slideshow-cards .info{grid-area:info;display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between}.slideshow-cards .info>*{display:flex;align-items:center}.slideshow-cards .info .title{color:inherit!important;font-size:12pt;font-weight:700;text-align:right;display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.5;max-height:3em}.slideshow-cards .info .up{font-size:10pt;color:inherit!important}.slideshow-cards .info .up .face{border-radius:50%;width:24px;height:24px;margin-right:8px}.slideshow-cards .info .stat,.slideshow-cards .info .type{opacity:.75;align-items:center}.slideshow-cards .info .stat .be-icon,.slideshow-cards .info .type .be-icon{margin:0 4px 0 16px;font-size:12pt}.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:6;-webkit-box-orient:vertical;line-height:1.5;max-height:9em;flex-grow:1;white-space:pre-wrap;text-align:right;opacity:.75}.slideshow-cards .info .buttons .be-icon{font-weight:400}.slideshow-cards .info .buttons>button{outline:0!important;cursor:pointer}.slideshow-cards .info .buttons .refresh{background-color:#ddd;border-radius:50%;border:none;display:flex;height:32px;width:32px;align-items:center;justify-content:center;box-sizing:border-box;margin-right:8px;cursor:pointer}.slideshow-cards .info .buttons .refresh:hover{background-color:#ccc}body.dark .slideshow-cards .info .buttons .refresh{background-color:#333}body.dark .slideshow-cards .info .buttons .refresh:hover{background-color:#444}.slideshow-cards .info .buttons .refresh.checked{border:2px solid var(--theme-color)}.slideshow-cards .info .buttons .refresh .be-icon{transition-duration:.5s;transform:scale(.9)}.slideshow-cards .info .buttons .refresh:hover .be-icon{transform:scale(.9) rotate(360deg)}.slideshow-cards .info .buttons .previous{background-color:#ddd;border-radius:50%;border:none;display:flex;height:32px;width:32px;align-items:center;justify-content:center;box-sizing:border-box;margin-right:8px;cursor:pointer}.slideshow-cards .info .buttons .previous:hover{background-color:#ccc}body.dark .slideshow-cards .info .buttons .previous{background-color:#333}body.dark .slideshow-cards .info .buttons .previous:hover{background-color:#444}.slideshow-cards .info .buttons .previous.checked{border:2px solid var(--theme-color)}.slideshow-cards .info .buttons .previous .be-icon{transform:translateX(-1px)}.slideshow-cards .info .buttons .next{display:flex;align-items:center;padding:4px 6px 4px 12px;background-color:var(--theme-color);border:none;color:var(--foreground-color)!important;height:32px;box-sizing:border-box;line-height:normal;font-size:11pt;font-weight:700;border-radius:16px}.slideshow-cards .info .buttons .next:hover{background-color:var(--theme-color-80)}.slideshow-cards .slideshow-card{grid-area:cards;cursor:pointer;align-self:stretch;justify-self:stretch;position:absolute;top:0;left:0;width:100%;height:100%;background-color:#8882;border-radius:16px}.slideshow-cards .slideshow-card:not(:first-child){transform-origin:right}.slideshow-cards .slideshow-card:not(:nth-child(2)){pointer-events:none;transform:translateX(39px) scale(.45);opacity:0}.slideshow-cards .slideshow-card img{border-radius:16px;width:100%;height:100%;object-fit:cover}.slideshow-cards .slideshow-card:nth-child(1){z-index:7}.slideshow-cards .slideshow-card:nth-child(2){z-index:6;pointer-events:initial}.slideshow-cards .slideshow-card:nth-child(3){z-index:5}.slideshow-cards .slideshow-card:nth-child(4){z-index:4}.slideshow-cards .slideshow-card:nth-child(5){z-index:3}.slideshow-cards .slideshow-card:nth-child(6){z-index:2}.slideshow-cards .slideshow-card:nth-child(7){z-index:1}.slideshow-cards .slideshow-card:first-child{transform:translateX(-10%) scale(1.1);opacity:0}.slideshow-cards .slideshow-card:nth-child(3){transform:translateX(20px) scale(.9);opacity:.5}.slideshow-cards .slideshow-card:nth-child(4){transform:translateX(30px) scale(.75);opacity:.25}.slideshow-cards .slideshow-card:nth-child(5){transform:translateX(35px) scale(.65);opacity:.125}.slideshow-cards .slideshow-card:nth-child(6){transform:translateX(37.5px) scale(.5);opacity:.0625}@media screen and (max-width:1600px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical;line-height:1.5;max-height:6em}}@media screen and (max-width:1400px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical;line-height:1.5;max-height:4.5em}}@media screen and (max-width:1200px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.5;max-height:3em}}@media screen and (max-width:1050px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical;line-height:1.5;max-height:1.5em}}@media screen and (max-width:950px){.slideshow-cards .info .title{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical;line-height:1.5;max-height:1.5em}}`,"slideshow-cards-style");return{export:Object.assign({template:i},{components:{Icon:()=>r.importAsync("icon.vue"),DpiImg:()=>r.importAsync("dpi-img.vue")},store:store,filters:{bigNumber(e){return formatCount(e)}},props:["cards","error","title","showStat"],data(){return{cardQueue:[]}},methods:{...Vuex.mapActions(["toggleWatchlater"]),regenerateQueue(){if(this.cards.length<7){return}const e=[...this.cards];e.unshift(e.pop());this.cardQueue=e},previousCard(){this.cardQueue.unshift(this.cardQueue.pop())},nextCard(){this.cardQueue.push(this.cardQueue.shift())},refresh(){this.$emit("refresh")}},watch:{cards(){this.regenerateQueue()}},computed:{...Vuex.mapState(["watchlaterList"]),currentCard(){return this.cardQueue[1]}},mounted(){this.regenerateQueue()}})}}})(); +offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/slideshow-cards.vue.min.js"] = (()=>{return(e,r)=>{const i=`
{{title}}
`;r.applyStyleFromText(`.slideshow-cards{display:grid;position:relative;grid-template:"header header header header" auto "cards . operations info" var(--card-height)/var(--card-width) 48px auto calc(var(--card-width) * var(--slideshow-ratio))}.slideshow-cards .error{grid-column:1/4;grid-row:2/3;align-self:stretch;justify-self:stretch}.slideshow-cards .operations{grid-area:operations;display:flex;flex-direction:column;align-self:center;justify-self:start}.slideshow-cards .operations>*{background-color:#ddd;border-radius:50%;border:none;display:flex;height:32px;width:32px;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;margin-right:16px}.slideshow-cards .operations>:hover{background-color:#ccc}body.dark .slideshow-cards .operations>*{background-color:#333}body.dark .slideshow-cards .operations>:hover{background-color:#444}.slideshow-cards .operations>.checked{border:2px solid var(--theme-color)}.slideshow-cards .operations>* .be-icon{font-size:22px}.slideshow-cards .operations>:not(:last-child){margin-bottom:8px}.slideshow-cards .operations .play .be-icon{font-size:16px;transform:translateX(1.5px)}.slideshow-cards .operations .play,body.dark .slideshow-cards .operations .play{color:var(--foreground-color);background-color:var(--theme-color)}.slideshow-cards .operations .play:hover,body.dark .slideshow-cards .operations .play:hover{background-color:var(--theme-color-80)}.slideshow-cards .info{grid-area:info;display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between}.slideshow-cards .info>*{display:flex;align-items:center}.slideshow-cards .info .title{color:inherit!important;font-size:12pt;font-weight:700;text-align:right;display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.5;max-height:3em}.slideshow-cards .info .up{font-size:10pt;color:inherit!important}.slideshow-cards .info .up .face{border-radius:50%;width:24px;height:24px;margin-right:8px}.slideshow-cards .info .stat,.slideshow-cards .info .type{opacity:.75;align-items:center}.slideshow-cards .info .stat .be-icon,.slideshow-cards .info .type .be-icon{margin:0 4px 0 16px;font-size:12pt}.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:6;-webkit-box-orient:vertical;line-height:1.5;max-height:9em;flex-grow:1;white-space:pre-wrap;text-align:right;opacity:.75}.slideshow-cards .info .buttons .be-icon{font-weight:400}.slideshow-cards .info .buttons>button{outline:0!important;cursor:pointer}.slideshow-cards .info .buttons .refresh{background-color:#ddd;border-radius:50%;border:none;display:flex;height:32px;width:32px;align-items:center;justify-content:center;box-sizing:border-box;margin-right:8px;cursor:pointer}.slideshow-cards .info .buttons .refresh:hover{background-color:#ccc}body.dark .slideshow-cards .info .buttons .refresh{background-color:#333}body.dark .slideshow-cards .info .buttons .refresh:hover{background-color:#444}.slideshow-cards .info .buttons .refresh.checked{border:2px solid var(--theme-color)}.slideshow-cards .info .buttons .refresh .be-icon{transition-duration:.5s;transform:scale(.9)}.slideshow-cards .info .buttons .refresh:hover .be-icon{transform:scale(.9) rotate(360deg)}.slideshow-cards .info .buttons .previous{background-color:#ddd;border-radius:50%;border:none;display:flex;height:32px;width:32px;align-items:center;justify-content:center;box-sizing:border-box;margin-right:8px;cursor:pointer}.slideshow-cards .info .buttons .previous:hover{background-color:#ccc}body.dark .slideshow-cards .info .buttons .previous{background-color:#333}body.dark .slideshow-cards .info .buttons .previous:hover{background-color:#444}.slideshow-cards .info .buttons .previous.checked{border:2px solid var(--theme-color)}.slideshow-cards .info .buttons .previous .be-icon{transform:translateX(-1px)}.slideshow-cards .info .buttons .next{display:flex;align-items:center;padding:4px 6px 4px 12px;background-color:var(--theme-color);border:none;color:var(--foreground-color)!important;height:32px;box-sizing:border-box;line-height:normal;font-size:11pt;font-weight:700;border-radius:16px}.slideshow-cards .info .buttons .next:hover{background-color:var(--theme-color-80)}.slideshow-cards .slideshow-card{grid-area:cards;cursor:pointer;align-self:stretch;justify-self:stretch;position:absolute;top:0;left:0;width:100%;height:100%;background-color:#8882;border-radius:16px}.slideshow-cards .slideshow-card:not(:first-child){transform-origin:right}.slideshow-cards .slideshow-card:not(:nth-child(2)){pointer-events:none;transform:translateX(39px) scale(.45);opacity:0}.slideshow-cards .slideshow-card img{border-radius:16px;width:100%;height:100%;object-fit:cover}.slideshow-cards .slideshow-card:nth-child(1){z-index:7}.slideshow-cards .slideshow-card:nth-child(2){z-index:6;pointer-events:initial}.slideshow-cards .slideshow-card:nth-child(3){z-index:5}.slideshow-cards .slideshow-card:nth-child(4){z-index:4}.slideshow-cards .slideshow-card:nth-child(5){z-index:3}.slideshow-cards .slideshow-card:nth-child(6){z-index:2}.slideshow-cards .slideshow-card:nth-child(7){z-index:1}.slideshow-cards .slideshow-card:first-child{transform:translateX(-10%) scale(1.1);opacity:0}.slideshow-cards .slideshow-card:nth-child(3){transform:translateX(20px) scale(.9);opacity:.5}.slideshow-cards .slideshow-card:nth-child(4){transform:translateX(30px) scale(.75);opacity:.25}.slideshow-cards .slideshow-card:nth-child(5){transform:translateX(35px) scale(.65);opacity:.125}.slideshow-cards .slideshow-card:nth-child(6){transform:translateX(37.5px) scale(.5);opacity:.0625}@media screen and (max-width:1600px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical;line-height:1.5;max-height:6em}}@media screen and (max-width:1400px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical;line-height:1.5;max-height:4.5em}}@media screen and (max-width:1200px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.5;max-height:3em}}@media screen and (max-width:1050px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical;line-height:1.5;max-height:1.5em}}@media screen and (max-width:950px){.slideshow-cards .info .title{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical;line-height:1.5;max-height:1.5em}}`,"slideshow-cards-style");return{export:Object.assign({template:i},{components:{Icon:()=>r.importAsync("icon.vue"),DpiImg:()=>r.importAsync("dpi-img.vue")},store:store,filters:{bigNumber(e){return formatCount(e)}},props:["cards","error","title","showStat"],data(){return{cardQueue:[]}},methods:{...Vuex.mapActions(["toggleWatchlater"]),regenerateQueue(){if(this.cards.length<7){return}const e=[...this.cards];e.unshift(e.pop());this.cardQueue=e},previousCard(){this.cardQueue.unshift(this.cardQueue.pop())},nextCard(){this.cardQueue.push(this.cardQueue.shift())},refresh(){this.$emit("refresh")}},watch:{cards(){this.regenerateQueue()}},computed:{...Vuex.mapState(["watchlaterList"]),currentCard(){return this.cardQueue[1]}},mounted(){this.regenerateQueue()}})}}})(); offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/slip.min.js"] = (()=>{return(t,e)=>{const i=function(){"use strict";var t={container:{ariaRole:"listbox",tabIndex:0,focus:false},items:{ariaRole:"option",tabIndex:-1,focus:false}};var e=/Chrome\/[3-5]/.test(navigator.userAgent);var i=e;var n=e;var s=document.createElement("div").style;var o="transition"in s?"transition":"webkitTransition";var a="transform"in s?"transform":"webkitTransform";var r=a==="webkitTransform"?"-webkit-transform":"transform";var h="userSelect"in s?"userSelect":"webkitUserSelect";s[a]="translateZ(0)";var l=s[a]?"translateZ(0) ":"";var c=s[a]?"translateZ(1px) ":"";s=null;var u=0;var d=false;var f=function(){};function g(t,e){if("string"===typeof t)t=document.querySelector(t);if(!t||!t.addEventListener)throw new Error("Please specify DOM node to attach to");if(!this||this===window)return new g(t,e);this.options=e=e||{};this.options.keepSwipingPercent=e.keepSwipingPercent||0;this.options.minimumSwipeVelocity=e.minimumSwipeVelocity||1;this.options.minimumSwipeTime=e.minimumSwipeTime||110;this.options.ignoredElements=e.ignoredElements||[];if(!Array.isArray(this.options.ignoredElements))throw new Error("ignoredElements must be an Array");this.cancel=this.setState.bind(this,this.states.idle);this.onTouchStart=this.onTouchStart.bind(this);this.onTouchMove=this.onTouchMove.bind(this);this.onTouchEnd=this.onTouchEnd.bind(this);this.onMouseDown=this.onMouseDown.bind(this);this.onMouseMove=this.onMouseMove.bind(this);this.onMouseUp=this.onMouseUp.bind(this);this.onMouseLeave=this.onMouseLeave.bind(this);this.onSelection=this.onSelection.bind(this);this.onContainerFocus=this.onContainerFocus.bind(this);this.setState(this.states.idle);this.attach(t)}function m(t){var e=t.style[a];if(e){return{value:e,original:e}}if(window.getComputedStyle){var i=window.getComputedStyle(t).getPropertyValue(r);if(i&&i!=="none")return{value:i,original:""}}return{value:"",original:""}}function v(t,e){var i=0;var n=0;for(var s=0;s20&&t.y20){this.setState(this.states.idle)}if(t.x>t.y*1.2)return false},onLeave:function(){this.setState(this.states.idle)},onEnd:function(){var t=this.dispatch(this.target.originalTarget,"tap");this.setState(this.states.idle);return t}}},swipe:function t(){var e=false;var i=this.container;var n=v(this.target,this.container.childNodes);i.classList.add("slip-swiping-container");function s(){i.classList.remove("slip-swiping-container")}this.target.height=this.target.node.offsetHeight;return{leaveState:function(){if(e){this.animateSwipe(function(t){t.node.style[a]=t.baseTransform.original;if(this.dispatch(t.node,"afterswipe")){s();return true}else{this.animateToZero(undefined,t)}}.bind(this))}else{this.animateToZero(s)}},onMove:function(){var t=this.getTotalMovement();if(Math.abs(t.y)this.options.minimumSwipeVelocity&&t.time>this.options.minimumSwipeTime||this.options.keepSwipingPercent&&s>this.options.keepSwipingPercent;if(o){if(this.dispatch(this.target.node,"swipe",{direction:t.directionX,originalIndex:n})){e=true}}else{this.dispatch(this.target.node,"cancelswipe")}this.setState(this.states.idle);return!o}}},reorder:function e(){if(this.target.node.focus&&t.items.focus){this.target.node.focus()}this.target.height=this.target.node.offsetHeight;var i;if(this.options.ignoredElements.length){var s=this.container;var o=s.tagName.toLowerCase();if(s.getAttribute("id")){o="#"+s.getAttribute("id")}else if(s.classList.length){o+="."+s.getAttribute("class").replace(" ",".")}o+=" > ";this.options.ignoredElements.forEach(function(t){o+=":not("+t+")"});try{i=s.parentNode.querySelectorAll(o)}catch(t){if(t instanceof DOMException&&t.name==="SyntaxError")throw new Error("ignoredElements you specified contain invalid query");else throw t}}else{i=this.container.childNodes}var r=v(this.target,i);var u;var d=this.target.node.offsetTop+this.target.height/2;var f=[];for(var g=0;gt.y){n=e}else if(i.pos>0&&t.y>0&&i.post.y){break}}i=e}else{for(e=f.length-1;e>=0;e--){if(f[e].pos1){this.setState(this.states.idle);return}if(!this.setTarget(t))return;this.startAtPosition({x:t.touches[0].clientX,y:t.touches[0].clientY,time:t.timeStamp})},setTarget:function(t){var e=this.findTargetNode(t.target);if(!e){this.setState(this.states.idle);return false}var i=this.options.scrollContainer;if(!i){var n=document.scrollingElement||document.documentElement;i=e.parentNode;while(i){if(i==n)break;if(i!=document.body&&i.scrollHeight>i.clientHeight&&window.getComputedStyle(i)["overflow-y"]!="visible")break;i=i.parentNode}i=i||n}this.target={originalTarget:t.target,node:e,scrollContainer:i,origScrollTop:i.scrollTop,origScrollHeight:i.scrollHeight,baseTransform:m(e)};return true},startAtPosition:function(t){this.startPosition=this.previousPosition=this.latestPosition=t;this.setState(this.states.undecided)},updatePosition:function(t,e){if(this.target==null){return}this.latestPosition=e;if(this.state.onMove){if(this.state.onMove.call(this)===false){t.preventDefault()}}if(this.latestPosition.time-this.previousPosition.time>100){this.previousPosition=this.latestPosition}},onMouseMove:function(t){t.stopPropagation();this.updatePosition(t,{x:t.clientX,y:t.clientY,time:t.timeStamp})},onTouchMove:function(t){t.stopPropagation();this.updatePosition(t,{x:t.touches[0].clientX,y:t.touches[0].clientY,time:t.timeStamp});this.canPreventScrolling=false},onMouseUp:function(t){t.stopPropagation();if(this.usingTouch||t.button!==0)return;if(this.state.onEnd&&false===this.state.onEnd.call(this)){t.preventDefault()}},onTouchEnd:function(t){t.stopPropagation();if(t.touches.length>1){this.cancel()}else if(this.state.onEnd&&false===this.state.onEnd.call(this)){t.preventDefault()}},getTotalMovement:function(){var t=this.target.scrollContainer.scrollTop-this.target.origScrollTop;return{x:this.latestPosition.x-this.startPosition.x,y:this.latestPosition.y-this.startPosition.y+t,time:this.latestPosition.time-this.startPosition.time}},getAbsoluteMovement:function(){var t=this.getTotalMovement();return{x:Math.abs(t.x),y:Math.abs(t.y),time:t.time,directionX:t.x<0?"left":"right",directionY:t.y<0?"up":"down"}},updateScrolling:function(){var t=40,e=0;var i=this.target.scrollContainer,n=i.getBoundingClientRect(),s=this.target.node.getBoundingClientRect(),o=Math.min(n.bottom,window.innerHeight)-s.bottom,a=s.top-Math.max(n.top,0),r=this.target.origScrollHeight-Math.min(i.clientHeight,window.innerHeight);if(o0?"":"-")+"100%,0) "+l+e.baseTransform.value;setTimeout(function(){if(t.call(this,e)){i.forEach(function(t){t.node.style[a]=n+t.baseTransform.value});setTimeout(function(){i.forEach(function(t){t.node.style[a]="translate(0,0) "+l+t.baseTransform.value});setTimeout(function(){i.forEach(function(t){t.node.style[a]=t.baseTransform.original})},101)},1)}}.bind(this),101)}};if("function"===typeof define&&define.amd){define(function(){return g})}if("object"===typeof module&&module.exports){module.exports=g}return g}();return{export:{Slip:i}}}})(); offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/style.min.css"] = `.bili-wrapper{display:flex!important;justify-content:center!important;align-items:center!important;height:50px!important}.bili-header-m>.nav-menu,.link-navbar,.link-navbar .main-ctnr .nav-items-ctnr,.link-navbar-ctnr .link-navbar,.link-navbar-ctnr .link-navbar .main-ctnr .nav-items-ctnr,.nav-header-wrapper{background:var(--theme-color)!important}.bili-header-m>.nav-menu,.link-navbar-ctnr,.nav-header-wrapper{box-shadow:var(--theme-color-70) 0 2px 10px 1px!important}div.stardust-player{background:#fff!important}.nav-header-wrapper>.nav-header,.nav-mask{background-color:transparent!important}.link-navbar,.nav-mask{box-shadow:none!important}.nav-con{flex-grow:10!important;flex-shrink:0!important}.nav-con.fl{margin-left:-2em!important}.nav-search-box{margin:9px 0 0!important}.bili-header-m .nav-menu .nav-con .nav-item .t,.link-navbar .main-ctnr .custom-link>a,.link-navbar .main-ctnr .nav-logo,.link-navbar .main-ctnr .nav-switcher,.link-navbar .nav-item,.link-navbar .nav-item .icon-font,.link-navbar .nav-item.selected .label,.link-navbar .nav-item:hover,.my-link-btn,.nav-header-wrapper .nav-header .nav-header-mainsite,.nav-header-wrapper .nav-header .order-center,.shortcuts-ctnr,.shortcuts-ctnr .shortcut-item,.stardust-video .nav-menu .nav-con .nav-item.home .drop,.stardust-video .nav-menu .nav-con .nav-item.home .header-icon-Navbar_logo{color:var(--foreground-color-d)!important}.stardust-video .nav-menu .nav-con .nav-item.home .header-icon-Navbar_logo{transform:scale(.75)!important;top:7px!important}.stardust-video .nav-menu .up-load .up-nav{top:42px!important}.link-navbar .nav-item:hover,.link-navbar-ctnr .link-navbar .nav-item:hover,.link-navbar-ctnr .shortcuts-ctnr .shortcut-item:hover,.my-link-btn:hover,.publish-btn:hover,.shortcuts-ctnr .shortcut-item:hover,li.nav-item:not(.profile-info):hover{background-color:hsla(0,0%,var(--brightness),.2)!important}.link-navbar .nav-item:hover .nav-link .label,.my-link-btn .label:hover,.publish-btn:hover::after,.shortcuts-ctnr .shortcut-item .label-wrapper .text:hover,li.nav-item.home:hover{background:0 0!important}.vip-m{background:#fff!important}a.t>i.bili-icon,a.t>i.bili-icon-logo{width:50px!important;left:-60px!important;top:0!important;height:50px!important;background-position-y:12px!important}.link-navbar .nav-item:first-child::before,.main-ctnr .nav-logo:before,.nav-header-wrapper .nav-header .nav-header-logo,.nav-header-wrapper .nav-header .nav-header-tv-icon,.nav-header-wrapper .nav-header .order-icon,a.t>i.bili-icon,a.t>i.bili-icon-logo{filter:brightness(0) var(--invert-filter)!important;opacity:.81!important}#entryOld,.b-icon-app,.blp-red-tip::after,.main-container .entry-old,.nav-search-submit,.title-icon,body>#Header{display:none!important}.bilibili-player-video-inputbar{display:flex!important}.i-face>.face,.user-panel-ctnr .msg-hinter{box-shadow:0 0 2px 1.5px #0002!important}div.up-load{margin-top:8px!important;margin-left:9px!important;height:32px!important;order:4!important;flex-grow:0;flex-shrink:0}.stardust-video .nav-menu .nav-wrapper{padding:0 5rem!important}.publish-btn{height:40px!important;line-height:40px!important;background:var(--theme-color)!important;border:1px solid!important;border-radius:5px!important;box-shadow:none!important;top:calc(50% - 20px)!important;transition:.2s!important}.publish-panel{margin-top:7px!important}.my-link-btn{border-radius:0!important}.main-ctnr .search-bar-ctnr .search-bar input,.slot-ctnr a{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:0 2px 10px 1px #0002!important}.u-link{background:0 0!important;color:var(--foreground-color-d)!important;border-radius:4px!important;line-height:30px!important;height:30px!important;transition:background-color .2s!important}.shortcuts-ctnr .shortcut-item .hinter,.shortcuts-ctnr .shortcut-item .num-hinter,.u-link{border:1px solid!important}.u-link:hover{opacity:1!important;background-color:hsla(0,0%,var(--brightness),.2)!important}#nav_searchform,.stardust-video .nav-con .nav-search{width:130px!important}.stardust-video .nav-con .nav-search .nav-search-keyword{color:#222!important;width:120px!important;padding-right:32px}.nav-header-wrapper .nav-header .nav-header-search-bar,.stardust-video .nav-con #nav_searchform{border-radius:4px!important;background:#fffb!important;border:none!important;transition:background-color .2s!important;box-shadow:0 2px 10px 1px #0002;padding-right:0!important}.search-bar-ctnr .search-bar{background-color:#fffd!important;transition:.2s!important}.nav-header-wrapper .nav-header .nav-header-search-bar:focus-within,.nav-header-wrapper .nav-header .nav-header-search-bar:hover,.search-bar-ctnr .search-bar:focus-within,.search-bar-ctnr .search-bar:hover,.stardust-video .nav-con #nav_searchform:focus-within,.stardust-video .nav-con #nav_searchform:hover{background-color:#fff!important}#bilibiliPlayer{box-shadow:0 4px 16px 0 var(--theme-color-40)!important}.blur-bg{opacity:var(--blur-background-opacity)!important;filter:blur(20px)!important}.suggest-item .cancel{width:28px!important}.stardust-video .nav-con ul.bilibili-suggest{margin-left:-35px!important;width:200px!important}li.suggest-item>a{max-width:155px!important}.nav-item div.num{box-shadow:0 .5px 4px 0 #0004!important}#primary_menu,#primary_menu>ul.nav-menu{display:flex!important;align-items:center!important}.bilibili-player-video-btn-quality{width:auto!important;margin:0 6px!important}#primary_menu,div.nav-gif{padding:0!important}.filter-item.search,body{margin:0!important}.input-box textarea{padding:8px!important}.link-navbar .main-ctnr .nav-switcher.open-btn{filter:brightness(0) invert(1)!important;opacity:.8!important}.guard-rank-cntr.open .tip.rank-desc{visibility:visible!important}.guard-rank-cntr .rank-cntr .tip{visibility:hidden!important}.tag-container .tag-item .tag-border .tag-border-inner{width:100%!important}.bilibili-player-video-control{background-color:transparent!important}.mouse-hover .bilibili-player-video-control-top,.video-control-show .bilibili-player-video-control-top{left:0!important;right:0!important;bottom:32px!important}.bilibili-player-video-control-top{left:-12px!important;right:-12px!important;bottom:0!important}.bilibili-player .bilibili-player-area .bilibili-player-video-control-wrap{bottom:0!important}.showSearch .nav-search-submit{top:6px!important}.nav-header-wrapper .nav-header .nav-header-search-bar::placeholder,.search-bar-ctnr .search-bar .search-btn,.search-bar-ctnr .search-bar input::placeholder{color:#888!important}.card-list .card{border:none!important;border-radius:4px!important}@media only screen and (min-width:1291px){.nav-con{margin:0 1em!important}#nav_searchform,.stardust-video .nav-con .bilibili-suggest.nav,.stardust-video .nav-con .nav-search{width:250px!important}.stardust-video .nav-con .nav-search .nav-search-keyword{width:240px!important}.stardust-video .nav-con ul.bilibili-suggest{margin-left:0!important;width:250px!important}.stardust-video .nav-con li.suggest-item>a{max-width:205px!important}}@media screen and (min-width:750px){.player .bilibili-player.mode-fullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-top,.player .bilibili-player.mode-webfullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-top{left:-12px!important;right:-12px!important;bottom:0!important}.mode-fullscreen .bilibili-player-area.mouse-hover:not(.disable-original-hover) .bilibili-player-video-control-top,.mode-fullscreen .bilibili-player-area.video-control-show:not(.disable-original-hover) .bilibili-player-video-control-top,.mode-webfullscreen .bilibili-player-area.mouse-hover:not(.disable-original-hover) .bilibili-player-video-control-top,.mode-webfullscreen .bilibili-player-area.video-control-show:not(.disable-original-hover) .bilibili-player-video-control-top{left:0!important;right:0!important;bottom:42px!important}}`; offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/superchat-translate.min.css"] = `.chat-history-panel .chat-item.superChat-card-detail .input-contain .text{display:block!important}`; @@ -1249,7 +1249,7 @@ offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/m offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/touch-player.min.css"] = `.touch-video-box-wrapper{display:flex;align-items:center;justify-content:center;width:100%;height:100%;position:absolute;top:0;left:0;z-index:14;pointer-events:none}.touch-video-box{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:rgba(0,0,0,.85);position:relative;max-width:390px;max-height:180px;border:4px solid transparent;transform-origin:center}.round-corner .touch-speed,.round-corner .touch-video-box{border-radius:var(--corner-radius)}.touch-video-box-wrapper.simple{align-items:flex-start}.touch-video-box.animation{transition:.2s cubic-bezier(.18,.89,.32,1.28)}.touch-video-info{color:#fff;font-size:14pt;text-align:center;display:flex;align-items:center;justify-content:center;flex-direction:column;height:100%;width:100%}.touch-row{flex-grow:1;display:flex;align-items:center;justify-content:center;width:100%}.touch-info{display:block;color:var(--theme-color)}.touch-result{display:block;font-size:12pt;line-height:150%}.touch-speed{display:block;background:rgba(0,0,0,.1);padding:.5em}.touch-progress{position:absolute;bottom:0;left:0;background:var(--theme-color);width:0;height:4px}.round-corner .touch-progress{border-radius:2px}.touch-row-item{flex:1 0 0;display:none;align-items:center;justify-content:center}.touch-row-item-wide{flex:1.5 0 0;display:flex;align-items:center;justify-content:center}.videoshot{background-color:transparent;background-image:none;transform-origin:center;transform:scale(.9)}.adjust-closed{opacity:0;transform:scale(.9)}.adjust-opened{opacity:1;transform:scale(1)}.touch-video-info.speed .touch-row-item{display:flex}.touch-video-info.cancel .touch-progress,.touch-video-info.cancel .touch-result{opacity:0}.bilibili-player-video-control-top{left:0!important;right:0!important}.bilibili-player-video-control-top,.bilibili-player-video-progress-detail{bottom:0!important}div.bilibili-player-video-control{height:38px!important;align-items:center!important}.bilibili-player-video-btn{flex-grow:1!important;height:100%!important;display:flex!important;align-items:center!important;justify-content:center!important}.pbp-panel-icon-wrap{height:auto!important;display:flex!important;transform:translateY(-1px)!important}.bilibili-player-video-btn-pagelist .bilibili-player-video-btn-name{display:none!important}.bilibili-player-video-btn-pagelist::before{display:block;width:36px;color:#eee;content:"";font:22px/1 "Material Design Icons";text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.bilibili-player-video-inputbar,.bilibili-player-video-progress{flex-grow:30!important}.bilibili-player-video-quality-menu{display:flex!important;align-items:center!important;justify-content:center!important}.bilibili-player-iconfont-color,.bilibili-player-iconfont-danmaku,.bilibili-player-iconfont-danmaku-off,.bilibili-player-iconfont-fullscreen,.bilibili-player-iconfont-pause,.bilibili-player-iconfont-repeat,.bilibili-player-iconfont-setting,.bilibili-player-iconfont-start,.bilibili-player-iconfont-volume,.bilibili-player-iconfont-volume-max,.bilibili-player-iconfont-volume-min,.bilibili-player-iconfont-web-fullscreen,.bilibili-player-iconfont-widescreen{font-size:2.5rem!important}.bilibili-player-iconfont-next{font-size:2rem!important}.bilibili-player-video-btn-setting-panel,.bilibili-player-video-danmaku-setting-wrap,.bilibili-player.mode-fullscreen .bilibili-player-video-sendbar,.bpui-selectmenu-list{left:unset!important;bottom:38px!important}.bilibili-player-video-volumebar-wrp{left:unset!important}.bilibili-player-video-control-wrap{padding:0!important}.bilibili-player-video-control-bottom{padding:0!important;align-items:center!important}.bilibili-player-iconfont-next,.bilibili-player-iconfont-setting,.bilibili-player-video-btn-volume.video-state-volume-max .bilibili-player-iconfont-volume-max,.bilibili-player-video-btn-volume.video-state-volume-min .bilibili-player-iconfont-volume-min,.bilibili-player-video-btn-volume:not(.video-state-volume-max):not(.video-state-volume-min) .bilibili-player-iconfont-volume,.bilibili-player-video-control-bottom-left{display:flex!important;align-items:center!important}.bilibili-player-video-btn-danmaku{flex-grow:0!important;display:flex!important;align-items:center!important;height:100%!important;margin:0!important;padding:0!important}.bilibili-player.mode-webfullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-bottom-right{flex-grow:1!important}.bilibili-player.mode-fullscreen .bilibili-player-video-sendbar{bottom:0!important}.bilibili-player .bilibili-player-area #bilibili_pbp,.bilibili-player .bilibili-player-area #bilibili_pbp_canvas{left:0!important;width:100%!important}.bilibili-player .bilibili-player-area #bilibili_pbp_pin,.bilibili-player .bilibili-player-area .bilibili-player-video-control-wrap:hover #bilibili_pbp_pin{right:0!important}.bilibili-player .bilibili-player-area.video-control-show:not(.disable-original-hover) .bilibili-player-video-control-top{left:0!important;right:0!important;bottom:31px!important}.bilibili-player .bilibili-player-area.video-control-show:not(.disable-original-hover) #bilibili_pbp,.bilibili-player .bilibili-player-area.video-control-show:not(.disable-original-hover) #bilibili_pbp_canvas{bottom:calc(100% + 3px)!important}.bilibili-player .bilibili-player-area.video-control-show:not(.disable-original-hover) .bilibili-player-video-progress-detail{bottom:7px!important}.bilibili-player .bilibili-player-area .bilibili-player-video-control .bilibili-player-video-btn.bilibili-player-video-btn-fullscreen{margin-right:0!important;padding-right:8px!important}.bilibili-player .bilibili-player-area .bilibili-player-video-control .bilibili-player-video-btn.bilibili-player-video-btn-start{padding-left:8px!important;flex-grow:1.2!important;margin-right:0!important;margin-left:0!important}.bilibili-player .bilibili-player-area .bilibili-player-video-control .bilibili-player-video-btn{padding:0 3px!important}.bilibili-player .bilibili-player-area .bilibili-player-video-control-bottom,.bilibili-player .bilibili-player-area .bilibili-player-video-control-bottom-right,.bilibili-player-video-control-bottom-left{height:100%!important;margin:0!important}.bilibili-player-video-btn-setting-panel-hover-bridge{display:none!important}#bofqi *{-webkit-tap-highlight-color:transparent!important}.disable-original-hover .bilibili-player-video-control-bottom,.disable-original-hover .bilibili-player-video-control-mask{opacity:0!important;visibility:hidden!important}.disable-original-hover .bilibili-player-video-control-wrap{opacity:1!important;visibility:visible!important}.disable-original-hover .bilibili-player-video-control-top{left:0!important;right:0!important;bottom:0!important}.disable-original-hover #bilibili_pbp,.disable-original-hover #bilibili_pbp_canvas{left:0!important;width:100%!important;bottom:3px!important;opacity:0!important}.disable-original-hover #bilibili_pbp.pin,.disable-original-hover #bilibili_pbp_canvas.pin{opacity:1!important}.disable-original-hover #bilibili_pbp_pin{opacity:0!important}.disable-original-hover.touch-video-control-show .bilibili-player-video-control-bottom,.disable-original-hover.touch-video-control-show .bilibili-player-video-control-mask{opacity:1!important;visibility:visible!important}.disable-original-hover.touch-video-control-show #bilibili_pbp,.disable-original-hover.touch-video-control-show #bilibili_pbp_canvas{bottom:calc(100% + 3px)!important;opacity:1!important}.disable-original-hover.touch-video-control-show #bilibili_pbp_pin{opacity:1!important}.disable-original-hover.touch-video-control-show .bilibili-player-video-progress-detail{bottom:0!important}.disable-original-hover.touch-video-control-show .bilibili-player-video-control-top{bottom:38px!important}.disable-original-hover .bilibili-player-video-control-wrap:hover .bilibili-player-video-control-top .bilibili-player-video-progress-slider,.disable-original-hover.bilibili-player-area.video-control-show .bilibili-player-video-control-top .bilibili-player-video-progress-slider{height:2px!important}.disable-original-hover.bilibili-player-area .bilibili-player-video-control .bilibili-player-video-progress-detail.show{bottom:1px!important}.disable-original-hover.bilibili-player-area .subtitle-position.subtitle-position-bc,.disable-original-hover.bilibili-player-area .subtitle-position.subtitle-position-bl,.disable-original-hover.bilibili-player-area .subtitle-position.subtitle-position-br{bottom:20px!important}.disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-bc,.disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-bl,.disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-br{bottom:44px!important}.bilibili-player.mode-fullscreen .disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-bc,.bilibili-player.mode-fullscreen .disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-bl,.bilibili-player.mode-fullscreen .disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-br,.bilibili-player.mode-webfullscreen .disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-bc,.bilibili-player.mode-webfullscreen .disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-bl,.bilibili-player.mode-webfullscreen .disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-br{bottom:60px!important}.disable-original-hover .bilibili-player:not(.mode-webfullscreen):not(.mode-fullscreen) .bilibili-player-area:not(.disable-original-hover) .bilibili-player-video-control-wrap:hover .bilibili-player-video-control-top .bilibili-player-video-progress-slider,.disable-original-hover .bilibili-player:not(.mode-webfullscreen):not(.mode-fullscreen) .bilibili-player-area:not(.disable-original-hover).video-control-show .bilibili-player-video-control-top .bilibili-player-video-progress-slider{height:74px!important}.bilibili-player.mode-fullscreen .disable-original-hover .bilibili-player-video-control-top{opacity:1!important}@media screen and (min-width:750px){.bilibili-player.mode-fullscreen .bilibili-player-video-btn-pagelist::before,.bilibili-player.mode-webfullscreen .bilibili-player-video-btn-pagelist::before{font-size:26px}.bilibili-player.mode-fullscreen .bilibili-player-video-control-wrap .bilibili-player-video-inputbar,.bilibili-player.mode-webfullscreen .bilibili-player-video-control-wrap .bilibili-player-video-inputbar{background:#fff1!important}.bilibili-player.mode-fullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control,.bilibili-player.mode-webfullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control{height:100%!important;margin:0!important}.bilibili-player.mode-fullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-bottom,.bilibili-player.mode-webfullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-bottom{margin:0!important}.bilibili-player.mode-fullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-bottom-left,.bilibili-player.mode-webfullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-bottom-left{height:100%!important}.bilibili-player.mode-fullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-top,.bilibili-player.mode-webfullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-top{left:0!important;right:0!important}.bilibili-player-video-btn.bilibili-player-video-btn-start{flex-grow:.5!important}.player .bilibili-player.mode-fullscreen .disable-original-hover .bilibili-player-video-control-top,.player .bilibili-player.mode-webfullscreen .disable-original-hover .bilibili-player-video-control-top{left:0!important;right:0!important;bottom:0!important}.player .bilibili-player.mode-fullscreen .disable-original-hover.touch-video-control-show .bilibili-player-video-control-top,.player .bilibili-player.mode-webfullscreen .disable-original-hover.touch-video-control-show .bilibili-player-video-control-top{left:0!important;right:0!important;bottom:54px!important}.player .bilibili-player.mode-fullscreen .bilibili-player-area.mouse-hover:not(.disable-original-hover) .bilibili-player-video-control-top,.player .bilibili-player.mode-fullscreen .bilibili-player-area.video-control-show:not(.disable-original-hover) .bilibili-player-video-control-top,.player .bilibili-player.mode-webfullscreen .bilibili-player-area.mouse-hover:not(.disable-original-hover) .bilibili-player-video-control-top,.player .bilibili-player.mode-webfullscreen .bilibili-player-area.video-control-show:not(.disable-original-hover) .bilibili-player-video-control-top{left:0!important;right:0!important;bottom:48px!important}}`; offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/touch-player.min.js"] = (()=>{return(t,e)=>{const i=t=>{let e=0;let i=0;while(t&&!isNaN(t.offsetLeft)&&!isNaN(t.offsetTop)){e+=t.offsetLeft-t.scrollLeft;i+=t.offsetTop-t.scrollTop;t=t.offsetParent}return{x:e,y:i}};const s=t=>{t=Math.abs(t);const e=Math.floor(t/3600);const i=Math.floor((t-e*3600)/60);const s=t-e*3600-i*60;let o=fixed(s)+"秒";if(i>0){o=i+"分"+o}if(e>0){o=e+"时"+o}return o};const o=t=>{t=Math.abs(t);const e=Math.floor(t/3600);const i=Math.floor((t-e*3600)/60);const s=t-e*3600-i*60;let o=(s<10?"0":"")+fixed(s);o=(i<10?"0":"")+i+":"+o;o=(e<10?"0":"")+e+":"+o;return o};class n{constructor(t){this.action=new l(t);this.onTouchStart=null;this.onTouchEnd=null;this.direction=null;t.addEventListener("touchstart",t=>{this.xDown=t.touches[0].clientX;this.yDown=t.touches[0].clientY;if(this.onTouchStart){this.onTouchStart(t)}});t.addEventListener("touchmove",e=>{if(!this.xDown||!this.yDown){return}const s=e.touches[0].clientX;const o=e.touches[0].clientY;const n=i(t);const l={x:(e.touches[0].pageX-n.x)/t.clientWidth,y:(e.touches[0].pageY-n.y)/t.clientHeight,width:t.clientWidth,height:t.clientHeight};const a=this.xDown-s;const c=this.yDown-o;if(!this.direction){let t="";if(Math.abs(a)>Math.abs(c)){t="horizontal"}else{t="vertical"}this.direction=t}else{if(this.direction==="vertical"){this.action.startAction(this.direction,c,l)}else if(this.direction==="horizontal"){this.action.startAction(this.direction,-a,l)}}if(e.cancelable){e.preventDefault()}});t.addEventListener("touchend",t=>{this.xDown=null;this.yDown=null;this.direction=null;if(this.onTouchEnd){this.onTouchEnd(t)}})}}class l{constructor(t){this.lowSpeedForward=null;this.lowSpeedBackward=null;this.mediumSpeedForward=null;this.mediumSpeedBackward=null;this.highSpeedForward=null;this.highSpeedBackward=null;this.volumeUp=null;this.volumeDown=null;this.brightnessUp=null;this.brightnessDown=null;this.speedCancel=null;this.minSwipeDistance=20;this.onActionStart=null;this.onActionEnd=null;this.element=t;this.touchStart=false;this.startPosition=null;this.lastAction=null;t.addEventListener("touchstart",()=>{this.touchStart=true});t.addEventListener("touchend",()=>{this.startPosition=null;this.onActionEnd&&this.onActionEnd(this.lastAction);this.lastAction=null})}startAction(t,e,i){if(this.touchStart){this.onActionStart&&this.onActionStart(t);this.startPosition=i;this.touchStart=false}if(t==="vertical"){let t;let s;if(this.startPosition.x<1/2){t=this.brightnessUp;s=this.brightnessDown;const o=Math.round(200*(e-this.minSwipeDistance)/(1.5*i.height));if(e>0){t&&t(o)}else{s&&s(o)}this.lastAction={type:"brightness",brightness:o}}else{t=this.volumeUp;s=this.volumeDown;const o=Math.round(200*(e-this.minSwipeDistance)/(1.5*i.height));if(e>0){t&&t(o)}else{s&&s(o)}this.lastAction={type:"volume",volume:o}}}else if(t==="horizontal"){if(i.y<1/3&&(i.x<.1||i.x>.9)){this.speedCancel&&this.speedCancel();this.lastAction=null}else{let t=0;let i;let s;if(this.startPosition.y<1/3){t=.05;i=this.lowSpeedForward;s=this.lowSpeedBackward}else if(this.startPosition.y>=1/3&&this.startPosition.y<=2/3){t=.2;i=this.mediumSpeedForward;s=this.mediumSpeedBackward}else{t=1;i=this.highSpeedForward;s=this.highSpeedBackward}if(e>0){const s=(e-this.minSwipeDistance)*t;i&&i(s);this.lastAction={type:"playback",seconds:s}}else{const i=(e+this.minSwipeDistance)*t;s&&s(i);this.lastAction={type:"playback",seconds:i}}}}}}class a{constructor(){this.aid=unsafeWindow.aid;this.cid=unsafeWindow.cid;this.cidData=null;this.supportWebp=a.supportWebp}getVideoshot(t,e){if(!(this.aid&&this.cid)){return}if(!this.cidData){Ajax.getText(`https://api.bilibili.com/x/player/videoshot?aid=${this.aid}&cid=${this.cid}&index=1`).then(i=>{this.cidData=JSON.parse(i).data;this.getVideoshot(t,e)})}else{const i=this.cidData;const s=i.index;let o=0;for(let e=0;e=s[e]&&tt.replace(".jpg",".jpg@.webp"))}const l=parseInt(i.pv_x_len)||10;const a=parseInt(i.pv_y_len)||10;const c=parseInt(i.pv_x_size)||160;const r=parseInt(i.pv_y_size)||90;const h=-(o%100%l)*c;const d=-Math.floor(o%100/a)*r;e({width:c,height:r,backgroundImage:`url(${n[Math.floor(o/100)]})`,backgroundPosition:`${h}px ${d}px`})}}static get supportWebp(){try{const t=document.createElement("canvas");if(t.getContext&&t.getContext("2d")){try{return t.toDataURL("image/webp").indexOf("data:image/webp")===0}catch(t){return false}}else{return false}}catch(t){return false}}}function c(t){t.unbind("click")}function r(t){if($(".touch-video-box").length!==0){return}$(".bilibili-player-video-subtitle").before(`\n
\n
\n
\n
\n
\n\n
\n
\n\n
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n
`);let e=$("video");const i=e.prop("duration");const l=new n(t.get(0));const c=document.querySelector(".touch-video-info");const r=document.querySelector(".touch-video-box");const h=50;let d=100;let u=Math.round(e.prop("volume")*100);const p=_.debounce(t=>{t/=100;if(t<0){t=0}else if(t>1){t=1}e.prop("volume",t);$(".bilibili-player-video-volume-num").text(Math.round(t*100));$(".bui-thumb").css("transform",`translateY(-${48*t}px)`);$(".bui-track-vertical .bui-bar").css("transform",`scaleY(${t})`);if(t===0){$(".bilibili-player-video-btn-volume").addClass("video-state-volume-min");$(".bilibili-player-video-btn-volume").removeClass("video-state-volume-max");e.prop("muted",true)}else if(t===1){$(".bilibili-player-video-btn-volume").removeClass("video-state-volume-min");$(".bilibili-player-video-btn-volume").addClass("video-state-volume-max");e.prop("muted",false)}else{$(".bilibili-player-video-btn-volume").removeClass("video-state-volume-min");$(".bilibili-player-video-btn-volume").removeClass("video-state-volume-max");e.prop("muted",false)}},h);l.action.onActionStart=(t=>{r.classList.add("adjust-opened");c.classList[t==="vertical"?"remove":"add"]("speed");e=$("video");u=Math.round(e.prop("volume")*100);const i=e.css("filter").match(/brightness\((.+)\)/);d=Math.trunc((i?i[1]:1)*100)});const v=new a;const f=t=>{return n=>{const l=e.prop("currentTime");const a=fixed(100*l/i);let r=l+n;let h=fixed(100*r/i);let d=n;if(r>i){r=i;h=100;d=i-l}else if(r<0){r=0;h=0;d=l}const u=`${o(l)} (${a}%)
👇
${o(r)} (${h}%)`;c.classList.remove("cancel");c.querySelector(".touch-speed").innerHTML=`${t}速`;c.querySelector(".touch-info").innerHTML=`进度: ${n>0?"+":"-"}${s(d)}`;c.querySelector(".touch-result").innerHTML=u;v.getVideoshot(r,t=>$(".videoshot").css(t));$(".touch-progress").css("width",`${h}%`)}};l.action.lowSpeedBackward=f("低");l.action.lowSpeedForward=f("低");l.action.mediumSpeedBackward=f("中");l.action.mediumSpeedForward=f("中");l.action.highSpeedBackward=f("高");l.action.highSpeedForward=f("高");const b=t=>{let e=u+t;let i=Math.abs(t);if(e>100){e=100;i=100-u}else if(e<0){e=0;i=u}const s=`${u} 👉 ${e}`;p(e);c.classList.remove("cancel");c.querySelector(".touch-info").innerHTML=`音量: ${t>0?"+":"-"}${i}`;c.querySelector(".touch-result").innerHTML=s;$(".touch-progress").css("width",`${e}%`)};l.action.volumeUp=b;l.action.volumeDown=b;const m=_.debounce(t=>{e.css("filter",`brightness(${t/100})`)},h);const w=t=>{let e=d+t;let i=Math.abs(t);if(e<0){e=0;i=d}const s=`${d} 👉 ${e}`;m(e);c.classList.remove("cancel");c.querySelector(".touch-info").innerHTML=`亮度: ${t>0?"+":"-"}${i}`;c.querySelector(".touch-result").innerHTML=s;$(".touch-progress").css("width",`${e>100?100:e}%`)};l.action.brightnessUp=w;l.action.brightnessDown=w;l.action.speedCancel=(()=>{c.querySelector(".touch-info").innerHTML=`取消时间调整`;c.classList.add("cancel")});l.action.onActionEnd=(t=>{if(!unsafeWindow.touchPlayerDebug){if(t){if(t.type==="playback"){let s=e.prop("currentTime");s+=t.seconds;if(s<0){s=0}else if(s>i){s=i}e.prop("currentTime",s)}else if(t.type==="volume"){const t=JSON.parse(localStorage.bilibili_player_settings);t.video_status.volume=e.prop("volume");localStorage.bilibili_player_settings=JSON.stringify(t)}}r.classList.remove("adjust-opened")}})}function h(t){if(!t.hasClass("disable-original-hover")){t.addClass("disable-original-hover");const e=unsafeWindow.$(".bilibili-player-video");const i="touch-video-control-show";const s=e.data("events").click[0].handler;const o=new DoubleClickEvent(t=>s(t),()=>t.toggleClass(i));e.unbind("click");o.bind(e[0])}}const d=()=>{SpinQuery.any(()=>$(".bilibili-player-iconfont,.bilibili-player-video-quality-menu"),c);SpinQuery.condition(()=>$(".bilibili-player-video"),t=>t.length>0&&$("video").length>0&&$("video").prop("duration"),r);if(t.touchVideoPlayerDoubleTapControl){new SpinQuery(()=>$(".bilibili-player-area"),t=>t.length>0&&unsafeWindow.$&&unsafeWindow.$(".bilibili-player-video").data("events"),h).start()}};Observer.videoChange(d);e.applyStyle("touchPlayerStyle")}})(); offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/trending-videos.min.js"] = (()=>{return(t,e)=>{const i=async(t,e)=>{const i=await Ajax.getJsonWithCredentials(`https://api.bilibili.com/x/web-interface/ranking/index?day=${t}`);if(i.code!==0){throw new Error(i.message)}return i.data.map(e=>({id:e.aid+"-"+t,aid:parseInt(e.aid),title:e.title,upID:e.mid,upName:e.author,coverUrl:e.pic.replace("http://","https://"),description:e.description,durationText:e.duration,playCount:formatCount(e.play),coins:formatCount(e.coins),favorites:formatCount(e.favorites),watchlater:true}))};return{export:{getTrendingVideos:i}}}})(); -offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/trending-videos.vue.min.js"] = (()=>{return(a,n)=>{const t=`
热门
{{tab.name}}
`;n.applyStyleFromText(`.simple-home .trendings{display:flex;flex-direction:column}.simple-home .trendings .header{padding:0 8px}.simple-home .trendings .contents{--card-width:200px;--card-height:250px;--card-count:3;margin-top:16px;display:flex;overflow:auto;height:calc(var(--card-height) + 16px);width:calc((var(--card-width) + 16px) * var(--card-count));scroll-snap-type:x mandatory;scrollbar-width:none!important}@media screen and (max-width:1300px) and (min-width:900px){.simple-home .trendings .contents{--card-count:2}}@media screen and (max-width:1100px) and (min-width:900px){.simple-home .trendings .contents{--card-count:1}}@media screen and (min-width:1550px){.simple-home .trendings .contents{--card-count:4}}@media screen and (min-width:1850px){.simple-home .trendings .contents{--card-count:5}}.simple-home .trendings .contents::-webkit-scrollbar{width:0!important;height:0!important}.simple-home .trendings .contents .card-wrapper{padding:0 8px;scroll-snap-align:start;flex-shrink:0}`,"trending-videos-style");const e=[{name:"今日",day:1,url:"https://www.bilibili.com/ranking/all/0/0/1"},{name:"三日",day:3,url:"https://www.bilibili.com/ranking"},{name:"一周",day:7,url:"https://www.bilibili.com/ranking/all/0/0/7"}];return{export:Object.assign({template:t},{components:{VideoCard:()=>n.importAsync("video-card.vue")},data(){return{tabs:e,currentTab:e[0],trendingCards:[]}},watch:{currentTab(a){this.updateTrendingTab(a)}},methods:{async updateTrendingTab(a){const{getTrendingVideos:t}=await n.importAsync("trending-videos");this.trendingCards=await t(a.day)},changeTab(a){if(this.currentTab===a){open(a.url,"_blank")}else{this.currentTab=a}}},mounted(){this.updateTrendingTab(this.currentTab)}})}}})(); +offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/trending-videos.vue.min.js"] = (()=>{return(a,t)=>{const n=`
热门
{{tab.name}}
`;t.applyStyleFromText(`.simple-home .trendings{display:flex;flex-direction:column}.simple-home .trendings .header{padding:0 8px}.simple-home .trendings .contents{--card-width:200px;--card-height:250px;--card-count:3;margin-top:16px;display:flex;overflow:auto;height:calc(var(--card-height) + 16px);width:calc((var(--card-width) + 16px) * var(--card-count));scroll-snap-type:x mandatory;scrollbar-width:none!important}@media screen and (max-width:1300px) and (min-width:900px){.simple-home .trendings .contents{--card-count:2}}@media screen and (max-width:1100px) and (min-width:900px){.simple-home .trendings .contents{--card-count:1}}@media screen and (min-width:1550px){.simple-home .trendings .contents{--card-count:4}}.simple-home .trendings .contents::-webkit-scrollbar{width:0!important;height:0!important}.simple-home .trendings .contents .card-wrapper{padding:0 8px;scroll-snap-align:start;flex-shrink:0}`,"trending-videos-style");const i=[{name:"今日",day:1,url:"https://www.bilibili.com/ranking/all/0/0/1"},{name:"三日",day:3,url:"https://www.bilibili.com/ranking"},{name:"一周",day:7,url:"https://www.bilibili.com/ranking/all/0/0/7"}];return{export:Object.assign({template:n},{components:{VideoCard:()=>t.importAsync("video-card.vue")},data(){return{tabs:i,currentTab:i[0],trendingCards:[]}},watch:{currentTab(a){this.updateTrendingTab(a)}},methods:{async updateTrendingTab(a){const{getTrendingVideos:n}=await t.importAsync("trending-videos");this.trendingCards=await n(a.day)},changeTab(a){if(this.currentTab===a){open(a.url,"_blank")}else{this.currentTab=a}}},mounted(){this.updateTrendingTab(this.currentTab)}})}}})(); offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/tweets.min.css"] = `.nav-search-submit{display:block!important;color:var(--foreground-color-d)!important;transform:translateX(-125px);-webkit-tap-highlight-color:transparent}.nav-search-submit:hover{color:var(--foreground-color)!important}#nav_searchform{transition:.3s ease-out;box-shadow:none;width:0!important;padding:0!important}.preserve-rank>a{opacity:0!important;pointer-events:none}.showSearch .preserve-rank>a{opacity:.382!important;pointer-events:initial}.showSearch #nav_searchform{box-shadow:0 2px 10px 1px #0002;width:250px!important}.showSearch .nav-search-submit,.showSearch .nav-search-submit:hover{color:#888!important;transform:none}@media only screen and (max-width:1291px){.showSearch #nav_searchform{width:140px!important}}`; offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/url-params-clean.min.js"] = (()=>{return(e,t)=>{const o=["spm_id_from","from_source","from","seid","share_source","share_medium"];const r=()=>{const e=location.search.substring(1).split("&");const t=e.filter(e=>{if(o.some(t=>e.startsWith(`${t}=`))){return false}return true});if(e.length!==t.length){const e=t.join("&");const o=document.URL.replace(location.search,e?"?"+e:"");console.log("[URL params clean]",document.URL,o);history.replaceState({},document.title,o)}};Observer.videoChange(()=>r())}})(); offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/v-checkbox.vue.min.js"] = (()=>{return(e,c)=>{const i=`
{{title}}
`;c.applyStyleFromText(`.v-checkbox{font-size:10pt;cursor:pointer;display:flex;align-items:center}.v-checkbox .mdi{font-size:15pt;line-height:1}.v-checkbox .content{flex-grow:1;text-align:left;padding:0 8px}.v-checkbox .mdi-checkbox-marked-circle{color:var(--theme-color);position:absolute;top:0;left:0;transform:scale(0);transition-timing-function:cubic-bezier(.6,-.28,.74,.05)}.v-checkbox .mdi-checkbox-blank-circle-outline{color:#8884;position:relative}.v-checkbox.checked .mdi-checkbox-blank-circle-outline{color:var(--theme-color)}.v-checkbox.checked .mdi-checkbox-marked-circle{transform:scale(1);transition-timing-function:cubic-bezier(.18,.89,.32,1.28)}`,"v-checkbox-style");return{export:Object.assign({template:i},{props:["checked","title"],methods:{toggleCheck(){this.$emit("update:checked",!this.checked)}}})}}})(); diff --git a/bilibili-evolved.preview-offline.user.js b/bilibili-evolved.preview-offline.user.js index abd7be594..d88a62396 100644 --- a/bilibili-evolved.preview-offline.user.js +++ b/bilibili-evolved.preview-offline.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name Bilibili Evolved (Preview Offline) -// @version 537.27 +// @version 538.02 // @description Bilibili Evolved 的预览离线版, 可以抢先体验新功能, 并且所有功能都已内置于脚本中. // @author Grant Howard, Coulomb-G // @copyright 2019, Grant Howard (https://github.com/the1812) & Coulomb-G (https://github.com/Coulomb-G) @@ -1225,8 +1225,8 @@ offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/m offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/show-dead-video-title.min.js"] = (()=>{return(e,t)=>{(async()=>{if(!document.URL.startsWith("https://space.bilibili.com")){return}class t{}class i extends t{convertToDeadVideoInfo(e,t){return{aid:e,title:t.title,cover:t.pic}}async queryInfo(e){const t=[];if(e.length<=i.MaxCountPerRequest){const s=await Ajax.getJson(`${i.BiliplusHost}/api/aidinfo?aid=${e.join(",")}`);if(s.code===0){t.push(...e.map(e=>{if(e in s.data){return this.convertToDeadVideoInfo(e,s.data[e])}else{return{aid:e,title:"已失效视频",cover:""}}}))}else{console.error(`[显示失效视频信息] Biliplus API 未成功. message=${s.message}`)}}else{t.push(...await this.queryInfo(e.slice(0,i.MaxCountPerRequest)));t.push(...await this.queryInfo(e.slice(i.MaxCountPerRequest)))}return t}}i.BiliplusHost=`https://hd.biliplus.com`;i.MaxCountPerRequest=30;class s extends t{async toggleWatchlater(e,t){for(const i of t){await Ajax.postTextWithCredentials(`https://api.bilibili.com/x/v2/history/toview/${e?"add":"del"}`,`aid=${i}&csrf=${getCsrf()}}`)}}async queryInfo(e){const t=[];await this.toggleWatchlater(true,e);const i=await Ajax.getJsonWithCredentials("https://api.bilibili.com/x/v2/history/toview/web");if(i.code===0){const s=i.data.list.map(e=>{return{aid:e.aid.toString(),title:e.title,cover:e.pic}});t.push(...e.map(e=>s.find(t=>t.aid===e)).filter(e=>e!==undefined));await this.toggleWatchlater(false,e)}else{console.error(`[显示失效视频信息] 稍后再看 API 未成功. message=${i.message}`)}return t}}const a=await SpinQuery.select("#app>.s-space");if(!a){return}Observer.childListSubtree(a,async()=>{const t=dqa(".disabled[data-aid]");if(t.length===0){return}const a=t.map(e=>e.getAttribute("data-aid"));const o=e.deadVideoTitleProvider==="BiliPlus"?new i:new s;const r=await o.queryInfo(a);console.log(`[显示失效视频信息]`,`deadVideos:`,t,`infos:`,r);t.forEach((t,i)=>{t.classList.remove("disabled");const s=t.getAttribute("data-aid");const a=(()=>{if(e.useBiliplusRedirect){return`https://hd.biliplus.com/video/av${s}`}else{return`//www.bilibili.com/video/av${s}`}})();const o=r.find(e=>e.aid===s);console.log(`[显示失效视频信息]`,"#"+i,o);if(o===undefined){console.error(`[显示失效视频信息]信息获取失败, aid=${s}`);return}const n=t.querySelector("a.cover");n.target="_blank";n.href=a;if(o.cover!==""){n.querySelector("img").src=o.cover.replace("http:","https:")}const l=t.querySelector("a.title");l.target="_blank";l.title=o.title;l.href=a;l.innerText=o.title})})})()}})(); offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/simple-home.vue.min.js"] = (()=>{return(e,o)=>{const t=`
`;o.applyStyleFromText(`.simple-home{--title-color:black;color:#444;display:grid;grid-template-areas:"blackboards trendings trendings" "feeds feeds info" "categories categories categories";grid-template-columns:repeat(3,auto);grid-template-rows:repeat(3,auto);column-gap:32px;row-gap:16px}.simple-home,.simple-home *{transition:.2s ease-out}body.dark .simple-home{--title-color:white;color:#ddd}.simple-home .jump-dots{grid-area:dots;align-self:center;justify-self:center}.simple-home .jump-dots label{display:block}.simple-home .jump-dots label:not(:last-child){margin-bottom:6px}.simple-home .jump-dots .jump-dot{background-color:#ddd;width:8px;height:20px;border-radius:8px;cursor:pointer}body.dark .simple-home .jump-dots .jump-dot{background-color:#444}.simple-home .hidden-input{display:none}.simple-home .hidden-input:checked:nth-of-type(1)~.jump-dots label:nth-child(1) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(1)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 0 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(2)~.jump-dots label:nth-child(2) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(2)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 1 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(3)~.jump-dots label:nth-child(3) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(3)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 2 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(4)~.jump-dots label:nth-child(4) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(4)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 3 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(5)~.jump-dots label:nth-child(5) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(5)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 4 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(6)~.jump-dots label:nth-child(6) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(6)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 5 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(7)~.jump-dots label:nth-child(7) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(7)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 6 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(8)~.jump-dots label:nth-child(8) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(8)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 7 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(9)~.jump-dots label:nth-child(9) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(9)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 8 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(10)~.jump-dots label:nth-child(10) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(10)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 9 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(11)~.jump-dots label:nth-child(11) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(11)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 10 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(12)~.jump-dots label:nth-child(12) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(12)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 11 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(13)~.jump-dots label:nth-child(13) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(13)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 12 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(14)~.jump-dots label:nth-child(14) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(14)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 13 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(15)~.jump-dots label:nth-child(15) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(15)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 14 * var(--blackboard-height)))}.simple-home .more,.simple-home .toggle-reorder{cursor:pointer;padding:4px 12px 4px 8px;display:flex;align-items:center;border-radius:16px;font-size:13px;font-weight:700}.simple-home .more .be-icon,.simple-home .toggle-reorder .be-icon{margin-right:8px;transition:.3s cubic-bezier(.25,.46,.45,.94);font-size:22px;font-weight:400}.simple-home .more:not(.toggle-reorder):hover .be-icon,.simple-home .toggle-reorder:not(.toggle-reorder):hover .be-icon{transform:rotate(180deg)}.simple-home .more,.simple-home .more.hover,.simple-home .toggle-reorder,.simple-home .toggle-reorder.hover{color:inherit!important;background-color:#ddd!important}body.dark .simple-home .more,body.dark .simple-home .more:hover,body.dark .simple-home .toggle-reorder,body.dark .simple-home .toggle-reorder:hover{color:inherit!important;background-color:#333!important}.simple-home .header{grid-area:header;display:flex;justify-content:space-between;align-items:center}.simple-home .header .title{color:var(--title-color);font-weight:700;font-size:22px}.simple-home .header .tabs{display:flex;align-items:center}.simple-home .header .tabs .tab{cursor:pointer;position:relative;white-space:nowrap}.simple-home .header .tabs .tab .tab-name{opacity:.5;font-size:14px}.simple-home .header .tabs .tab:not(:last-child){margin-right:24px}.simple-home .header .tabs .tab::after{content:"";width:calc(80%);height:3px;border-radius:2px;position:absolute;background-color:var(--theme-color);left:10%;bottom:-6px;transform:scaleX(0);transition:.2s ease-out}.simple-home .header .tabs .tab.active::after{transform:scaleX(1)}.simple-home .header .tabs .tab.active .tab-name{font-weight:700;opacity:1;transform:scale(1.1)}.simple-home .sub-header{color:var(--title-color);font-weight:700;font-size:18px;display:flex;align-items:center}.simple-home .sub-header::before{content:"";display:block;width:12px;height:12px;background-color:var(--theme-color);border-radius:50%;margin-right:8px}.simple-home .blackboards{grid-area:blackboards;justify-self:start}.simple-home .trendings{grid-area:trendings;transform:translateX(8px);justify-self:end}.simple-home .info-row{grid-area:info;justify-self:end}.simple-home .feeds{grid-area:feeds;transform:translateX(-8px);justify-self:start}.simple-home .categories{grid-area:categories;padding-bottom:32px}@media screen and (max-width:900px){.simple-home{grid-template-areas:"blackboards" "trendings" "info" "feeds" "categories";grid-template-columns:1fr;grid-template-rows:repeat(5,auto)}.simple-home .blackboards,.simple-home .categories,.simple-home .feeds,.simple-home .info-row,.simple-home .trendings{justify-self:center}}`,"simple-home-style");return{export:Object.assign({template:t},{components:{Blackboards:()=>o.importAsync("blackboard.vue"),TrendingVideos:()=>o.importAsync("trending-videos.vue"),InfoRow:()=>o.importAsync("online-info-row.vue"),Feeds:()=>o.importAsync("simple-home-feeds.vue"),Categories:()=>o.importAsync("simple-home-categories.vue")}})}}})(); offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/simple-home-categories.vue.min.js"] = (()=>{return(e,t)=>{const r=`
分区
{{t.name}}
{{reordering ? '完成' : '排序'}}
`;t.applyStyleFromText(`.simple-home .categories{display:flex;flex-direction:column}.simple-home .categories,.simple-home .categories *,.simple-home .categories ::after,.simple-home .categories ::before{transition:.2s ease-out}.simple-home .categories .header .tabs{display:flex;flex:1 1 0;margin:0 32px;justify-content:space-between;overflow:auto;width:0;height:42px;scrollbar-width:none!important}.simple-home .categories .header .tabs::-webkit-scrollbar{height:0!important;width:0!important}.simple-home .categories .header .tabs .tab{transition:none;margin-right:24px}.simple-home .categories .category-content{margin-top:12px;margin-bottom:36px}.simple-home .categories .category-content-enter,.simple-home .categories .category-content-leave-to{opacity:0}`,"simple-home-categories-style");const o={anime:"动画",bangumi:"番剧",china:"国创",manga:"漫画",music:"音乐",dance:"舞蹈",game:"游戏",tech:"科技",digital:"数码",life:"生活",kichiku:"鬼畜",fashion:"时尚",ads:"广告",entertainment:"娱乐",column:"专栏",movie:"电影",tv:"TV剧",film:"影视",documentary:"纪录片"};return{export:Object.assign({template:r},{components:{Icon:()=>t.importAsync("icon.vue"),NormalCategory:()=>t.importAsync("simple-home-normal-category.vue")},data(){return{tabs:Object.entries(o).map(([e,t])=>{return{key:e,name:t}}),selectedTab:Object.entries(e.simpleHomeCategoryOrders).sort((e,t)=>e[1]-t[1])[0][0],reordering:false,reorder:null,regionCodes:null}},async mounted(){const r=this.$refs.reorderContainer;const{RegionCodes:o}=await t.importAsync("category-regions");this.regionCodes=o;const{Reorder:i}=await t.importAsync("reorder");const s=new i(r);this.reorder=s;s.addEventListener("reorder",t=>{const r=t.detail;for(const t of r){const{element:r,order:o}=t;e.simpleHomeCategoryOrders[r.getAttribute("data-key")]=o}e.simpleHomeCategoryOrders=e.simpleHomeCategoryOrders})},methods:{getOrder(t){return e.simpleHomeCategoryOrders[t]}},computed:{content(){if(["bangumi","china"].includes(this.selectedTab)){return null}else if(this.selectedTab==="manga"){return null}else if(this.selectedTab==="column"){return null}else{return"NormalCategory"}},rid(){if(!this.regionCodes){return-1}else{return this.regionCodes[this.selectedTab]}}}})}}})(); -offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/simple-home-feeds.vue.min.js"] = (()=>{return(e,t)=>{const a=``;t.applyStyleFromText(`.simple-home .feeds{justify-self:start;display:grid;grid-template-areas:"header header" "contents contents";grid-template-columns:repeat(2,auto);grid-template-rows:repeat(2,auto);row-gap:16px;column-gap:16px}.simple-home .feeds .header,.simple-home .feeds .sub-header{padding:0 8px}.simple-home .feeds .header .tab:nth-child(2),.simple-home .feeds .sub-header .tab:nth-child(2){margin-left:32px}.simple-home .feeds .header .online,.simple-home .feeds .sub-header .online{padding:8px 16px;height:32px;border-radius:16px;background-color:#8882;color:inherit;font-size:12px;display:flex;align-items:center;box-sizing:border-box}.simple-home .feeds .contents{grid-area:contents;display:flex;overflow:auto;--card-width:200px;--card-height:250px;--card-count:3;width:calc((var(--card-width) + 16px) * var(--card-count));padding-bottom:16px;scroll-snap-type:x mandatory;scrollbar-width:none!important;min-height:var(--card-height)}@media screen and (min-width:1100px){.simple-home .feeds .contents{--card-count:4}}@media screen and (min-width:1300px){.simple-home .feeds .contents{--card-count:5}}@media screen and (min-width:1550px){.simple-home .feeds .contents{--card-count:6}}@media screen and (min-width:1850px){.simple-home .feeds .contents{--card-count:7}}.simple-home .feeds .contents::-webkit-scrollbar{width:0!important;height:0!important}.simple-home .feeds .contents .card-wrapper{padding:0 8px;scroll-snap-align:start;flex-shrink:0}`,"simple-home-feeds-style");const i=[{name:"视频",type:"video",url:"https://t.bilibili.com/?tab=8"},{name:"番剧",type:"bangumi",url:"https://t.bilibili.com/?tab=512"}];return{export:Object.assign({template:a},{components:{VideoCard:()=>t.importAsync("video-card.vue"),Icon:()=>t.importAsync("icon.vue")},data(){return{online:"--",tabs:i,currentTab:i[0],feedCards:[]}},watch:{currentTab(e){this.updateFeedCards(e)}},methods:{async updateFeedCards(e){const{getVideoFeeds:a}=await t.importAsync("feeds-apis");this.feedCards=await a(e.type)},changeTab(e){if(this.currentTab===e){open(e.url,"_blank")}else{this.currentTab=e}}},async mounted(){this.updateFeedCards(this.currentTab);const e=await Ajax.getJson("https://api.bilibili.com/x/web-interface/online");if(e.code===0){this.online=e.data.web_online}}})}}})(); -offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/simple-home-normal-category.vue.min.js"] = (()=>{return(i,e)=>{const t=``;e.applyStyleFromText(`.category-view{--loading-from:#d4d4d4;--loading-to:#ddd;--rank-width:420px;--rank-height:250px;--slideshow-ratio:1.2;display:grid;grid-template:"new-activity rank" 1fr "new-post rank" 1fr/1fr var(--rank-width);grid-gap:24px;gap:24px;position:relative;--card-height:calc((8 * 34px + 20px + 1.5 * var(--rank-height)) / 2 - 32px);--card-width:calc(var(--card-height) * (42 / 25))}@media screen and (max-width:1800px){.category-view{--slideshow-ratio:1.2;--rank-width:390px;--rank-height:232.1428571429px}}@media screen and (max-width:1700px){.category-view{--slideshow-ratio:1.1333333333;--rank-width:360px;--rank-height:214.2857142857px}}@media screen and (max-width:1600px){.category-view{--slideshow-ratio:1.0666666667;--rank-width:330px;--rank-height:196.4285714286px}}@media screen and (max-width:1500px){.category-view{--slideshow-ratio:1;--rank-width:300px;--rank-height:178.5714285714px}}@media screen and (max-width:1400px){.category-view{--slideshow-ratio:0.9333333333;--rank-width:270px;--rank-height:160.7142857143px}}@media screen and (max-width:1300px){.category-view{--slideshow-ratio:0.8666666667;--rank-width:240px;--rank-height:142.8571428571px}}@media screen and (max-width:1200px){.category-view{--slideshow-ratio:0.8;--rank-width:210px;--rank-height:125px}}@media screen and (max-width:1000px){.category-view{--slideshow-ratio:0.8;--rank-width:210px;--rank-height:125px}}@media screen and (max-width:900px){.category-view{--slideshow-ratio:0.7333333333;--rank-width:180px;--rank-height:107.1428571429px}}@media screen and (max-width:800px){.category-view{--slideshow-ratio:0.6666666667;--rank-width:150px;--rank-height:89.2857142857px}}@media screen and (max-width:700px){.category-view{--slideshow-ratio:0.6;--rank-width:120px;--rank-height:71.4285714286px}}.category-view,.category-view *,.category-view ::after,.category-view ::before{transition:.2s ease-out}@keyframes normal-category-loading{from{background-color:var(--loading-from)}to{background-color:var(--loading-to)}}body.dark .category-view{--loading-from:#333;--loading-to:#262626}.category-view .loading{opacity:0;pointer-events:none;border-radius:16px;animation:.64s ease-in-out infinite alternate normal-category-loading;position:absolute}.category-view .area-header{grid-area:header;display:flex;align-items:center;justify-content:flex-start;font-weight:700;font-size:11pt;margin-bottom:12px}.category-view .area-header::before{content:"";display:inline-flex;height:10px;width:10px;background-color:var(--theme-color);border-radius:50%;margin-right:8px}.category-view .rank{display:grid;width:var(--rank-width);justify-self:right;grid-template:"header header" auto "first first" calc(10px + var(--rank-height)) "second third" calc(var(--rank-height)/ 2 + 10px)/calc(var(--rank-width)/ 2) calc(var(--rank-width)/ 2)}.category-view .rank .rank-item{grid-column:1/3;box-shadow:0 4px 8px 0 #0001;background-color:#fff;color:inherit!important;position:relative}body.dark .category-view .rank .rank-item{background-color:#282828}.category-view .rank .rank-item .cover{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:16px;overflow:hidden}.category-view .rank .rank-item .cover img{width:100%;height:100%;object-fit:cover}.category-view .rank .rank-item:hover .cover img{transform:scale(1.05)}.category-view .rank .rank-item .rank-number{position:absolute;top:6px;left:6px;width:22px;height:22px;line-height:22px;border-radius:50%;box-sizing:border-box;text-align:center;font-weight:700;font-size:13px;z-index:9;background-color:#8884}.category-view .rank .rank-item .watchlater{position:absolute;top:6px;right:6px;width:22px;height:22px;border-radius:50%;box-sizing:border-box;z-index:9;background-color:#000a;color:#fff;display:flex;align-items:center;justify-content:center;opacity:0}.category-view .rank .rank-item:hover .watchlater{opacity:1}.category-view .rank .rank-item .be-icon{font-size:16px}.category-view .rank .rank-item .be-icon.mdi-fire{transform:scale(calc(18 / 16));margin-right:2px}.category-view .rank .rank-item:not(:first-child)>.title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700;font-size:13px;line-height:34px;padding:0 8px 0 34px;opacity:.9}.category-view .rank .rank-item:not(:first-child):hover{background-color:var(--theme-color-30)}.category-view .rank .rank-item:not(:first-child):hover>.title{opacity:1}.category-view .rank .rank-item:not(:first-child) .details{position:absolute;top:50%;right:calc(100% + 10px);transform:translateY(-50%);width:var(--rank-width);padding:4px;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;z-index:10;opacity:0;pointer-events:none}.category-view .rank .rank-item:not(:first-child) .details .title{font-weight:700;font-size:14px;line-height:1.5;color:#fff;padding:8px;z-index:10}.category-view .rank .rank-item:not(:first-child) .details .cover{overflow:hidden;background-color:#000}.category-view .rank .rank-item:not(:first-child) .details .cover img{filter:blur(16px) brightness(.5);transform:scale(1.5)}.category-view .rank .rank-item:not(:first-child) .details .stats,.category-view .rank .rank-item:not(:first-child) .details .up{z-index:10;display:flex;color:#fff}.category-view .rank .rank-item:not(:first-child) .details .stats .be-icon:not(.mdi-fire),.category-view .rank .rank-item:not(:first-child) .details .up .be-icon:not(.mdi-fire){margin:0 4px 0 8px}.category-view .rank .rank-item:not(:first-child) .details .up{justify-content:space-between;margin:0 10px 0 6px}.category-view .rank .rank-item:not(:first-child) .details .up>*{display:flex;align-items:center}.category-view .rank .rank-item:not(:first-child) .details .stats{margin:8px}.category-view .rank .rank-item:not(:first-child) .details .stats .be-icon:first-child{margin-left:0}.category-view .rank .rank-item:not(:first-child):hover .details{opacity:1}.category-view .rank .rank-item:first-child,.category-view .rank .rank-item:nth-child(2),.category-view .rank .rank-item:nth-child(3){border-radius:16px}.category-view .rank .rank-item:first-child .rank-number,.category-view .rank .rank-item:nth-child(2) .rank-number,.category-view .rank .rank-item:nth-child(3) .rank-number{background-color:var(--theme-color);color:var(--foreground-color);opacity:.9}.category-view .rank .rank-item:nth-child(4){border-radius:16px 16px 0 0}.category-view .rank .rank-item:nth-last-child(2){border-radius:0 0 16px 16px}.category-view .rank .rank-item:first-child{grid-area:first;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;margin-bottom:10px}.category-view .rank .rank-item:first-child .details{align-self:stretch}.category-view .rank .rank-item:first-child .cover::after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-image:linear-gradient(to top,#000c 0,transparent 100%);z-index:0}.category-view .rank .rank-item:first-child .title{font-weight:700;font-size:16px;line-height:1.5;color:#fff;padding:0 8px;z-index:10;white-space:nowrap;overflow:hidden;max-width:100%;text-overflow:ellipsis}.category-view .rank .rank-item:first-child .up{display:flex;align-self:stretch;justify-content:space-between;align-items:center;opacity:.75;color:#fff;padding:0 12px 0 6px;margin:4px 0 8px;z-index:10}.category-view .rank .rank-item:first-child .up>*{display:flex;align-items:center}.category-view .rank .rank-item:first-child .up .be-iconfont-up{margin-right:4px}.category-view .rank .rank-item:first-child .up .points{flex-shrink:0;margin-right:8px}.category-view .rank .rank-item:first-child .up .up-info{max-width:61%}.category-view .rank .rank-item:first-child .up .up-info .up-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:break-all}.category-view .rank .rank-item:first-child .stats{display:flex;justify-content:flex-start;align-items:center;color:#fff;opacity:0;padding:0 8px;position:absolute;bottom:8px;left:0;z-index:10}.category-view .rank .rank-item:first-child .stats .be-icon{margin:0 2px 0 8px}.category-view .rank .rank-item:first-child .stats .be-icon:first-child{margin-left:0}.category-view .rank .rank-item:first-child:hover .up{opacity:0}.category-view .rank .rank-item:first-child:hover .stats{opacity:.75}.category-view .rank .rank-item:nth-child(2){grid-area:second;margin-right:5px;margin-bottom:10px}.category-view .rank .rank-item:nth-child(3){grid-area:third;margin-left:5px;margin-bottom:10px}.category-view .new-activity{align-self:start;grid-area:new-activity}.category-view .new-post{align-self:end;grid-area:new-post}.category-view.new-activity-loading .new-activity.loading{position:static;opacity:1;pointer-events:initial;width:100%;height:100%}.category-view.new-activity-loading .new-activity:not(.loading){opacity:0;pointer-events:none}.category-view.new-post-loading .new-post.loading{position:static;opacity:1;pointer-events:initial;width:100%;height:100%}.category-view.new-post-loading .new-post:not(.loading){opacity:0;pointer-events:none}.category-view .rank{grid-area:rank}.category-view.rank-loading .rank.loading{position:static;opacity:1;pointer-events:initial;width:100%;height:100%}.category-view.rank-loading .rank:not(.loading){opacity:0;pointer-events:none}@media screen and (max-width:1100px){.category-view{--slideshow-ratio:0.8666666667;--rank-width:240px;--rank-height:142.8571428571px;grid-template:"new-activity" 1fr "new-post" 1fr "rank" auto/1fr}.category-view .rank{--rank-width:420px;--rank-height:250px}}`,"simple-home-normal-category-style");return{export:Object.assign({template:t},{components:{SlideshowCards:()=>e.importAsync("slideshow-cards.vue"),Icon:()=>e.importAsync("icon.vue"),DpiImg:()=>e.importAsync("dpi-img.vue")},store:store,filters:{bigNumber(i){return formatCount(i)}},props:{rid:{type:Number,required:true}},data(){return{newActivity:{error:false,loading:true,videos:[]},newPost:{error:false,loading:true,videos:[]},rank:{error:false,loading:true,videos:[]},loaded:false}},computed:{...Vuex.mapState(["watchlaterList"])},methods:{async loadCards(i,e,t){if(t===undefined){t=(i=>{const e=getUID();const t=_.get(i,"data.archives",[]);return t.map(i=>{return{id:i.aid,aid:i.aid,coverUrl:i.pic.replace("http:","https:"),title:i.title,upName:i.owner.name,upFaceUrl:i.owner.face.replace("http:","https:"),upID:i.owner.mid,playCount:i.stat.view,danmakuCount:i.stat.danmaku,like:i.stat.like,coins:i.stat.coin,description:i.desc,type:i.tname,watchlater:e?this.watchlaterList.includes(i.aid):null}})})}try{this[i].loading=true;const a=await Ajax.getJson(e);if(a.code!==0){this[i].error=true}this[i].videos=t(a)}catch(e){logError(e);this[i].error=true}finally{this[i].loading=false}},async loadNewActivity(){await this.loadCards("newActivity",`https://api.bilibili.com/x/web-interface/dynamic/region?ps=10&rid=${this.rid}`)},async loadNewPost(){await this.loadCards("newPost",`https://api.bilibili.com/x/web-interface/newlist?ps=10&rid=${this.rid}`)},async loadRank(){await this.loadCards("rank",`https://api.bilibili.com/x/web-interface/ranking/region?rid=${this.rid}&day=3&original=0`,i=>{const e=getUID();const t=i.data;return t.map(i=>{return{id:i.aid,aid:parseInt(i.aid),title:i.title,playCount:i.play,favorites:i.favorites,upID:i.mid,upName:i.author,description:i.description,coverUrl:i.pic.replace("http:","https:"),coins:i.coins,durationText:i.duration,points:i.pts,watchlater:e?this.watchlaterList.includes(parseInt(i.aid)):null}})})},...Vuex.mapActions(["toggleWatchlater"]),updateVideos(){this.loadNewActivity();this.loadNewPost();this.loadRank()}},watch:{rid(i){if(i>0){if(this.loaded){this.updateVideos()}}else{console.warn(`rid=${i}`)}}},mounted(){const i=new IntersectionObserver(()=>{this.updateVideos();this.loaded=true;i.disconnect()});i.observe(this.$el)}})}}})(); +offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/simple-home-feeds.vue.min.js"] = (()=>{return(e,t)=>{const a=``;t.applyStyleFromText(`.simple-home .feeds{justify-self:start;display:grid;grid-template-areas:"header header" "contents contents";grid-template-columns:repeat(2,auto);grid-template-rows:repeat(2,auto);row-gap:16px;column-gap:16px}.simple-home .feeds .header,.simple-home .feeds .sub-header{padding:0 8px}.simple-home .feeds .header .tab:nth-child(2),.simple-home .feeds .sub-header .tab:nth-child(2){margin-left:32px}.simple-home .feeds .header .online,.simple-home .feeds .sub-header .online{padding:8px 16px;height:32px;border-radius:16px;background-color:#8882;color:inherit;font-size:12px;display:flex;align-items:center;box-sizing:border-box}.simple-home .feeds .contents{grid-area:contents;display:flex;overflow:auto;--card-width:200px;--card-height:250px;--card-count:3;width:calc((var(--card-width) + 16px) * var(--card-count));padding-bottom:16px;scroll-snap-type:x mandatory;scrollbar-width:none!important;min-height:var(--card-height)}@media screen and (min-width:1100px){.simple-home .feeds .contents{--card-count:4}}@media screen and (min-width:1300px){.simple-home .feeds .contents{--card-count:5}}@media screen and (min-width:1550px){.simple-home .feeds .contents{--card-count:6}}.simple-home .feeds .contents::-webkit-scrollbar{width:0!important;height:0!important}.simple-home .feeds .contents .card-wrapper{padding:0 8px;scroll-snap-align:start;flex-shrink:0}`,"simple-home-feeds-style");const i=[{name:"视频",type:"video",url:"https://t.bilibili.com/?tab=8"},{name:"番剧",type:"bangumi",url:"https://t.bilibili.com/?tab=512"}];return{export:Object.assign({template:a},{components:{VideoCard:()=>t.importAsync("video-card.vue"),Icon:()=>t.importAsync("icon.vue")},data(){return{online:"--",tabs:i,currentTab:i[0],feedCards:[]}},watch:{currentTab(e){this.updateFeedCards(e)}},methods:{async updateFeedCards(e){const{getVideoFeeds:a}=await t.importAsync("feeds-apis");this.feedCards=await a(e.type)},changeTab(e){if(this.currentTab===e){open(e.url,"_blank")}else{this.currentTab=e}}},async mounted(){this.updateFeedCards(this.currentTab);const e=await Ajax.getJson("https://api.bilibili.com/x/web-interface/online");if(e.code===0){this.online=e.data.web_online}}})}}})(); +offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/simple-home-normal-category.vue.min.js"] = (()=>{return(i,e)=>{const t=``;e.applyStyleFromText(`.category-view{--loading-from:#d4d4d4;--loading-to:#ddd;--rank-width:370px;--rank-height:calc(var(--rank-width) / 16 * 9);--slideshow-ratio:0.6;--card-height:300px;--card-width:calc(var(--card-height) * (42 / 25));display:grid;grid-template:"new-activity rank" 1fr "new-post rank" 1fr/1fr calc(1.5 * var(--rank-width) + 10px);grid-row-gap:24px;row-gap:24px;grid-column-gap:32px;column-gap:32px;position:relative}@media screen and (max-width:1800px){.category-view{--card-height:288px;--rank-width:350px}}@media screen and (max-width:1700px){.category-view{--card-height:276px;--rank-width:330px}}@media screen and (max-width:1600px){.category-view{--card-height:264px;--rank-width:310px}}@media screen and (max-width:1500px){.category-view{--card-height:252px;--rank-width:290px}}@media screen and (max-width:1400px){.category-view{--card-height:240px;--rank-width:270px}}@media screen and (max-width:1200px){.category-view{--card-height:216px;--rank-width:230px}}@media screen and (max-width:1100px){.category-view{--card-height:204px;--rank-width:210px}}@media screen and (max-width:1000px){.category-view{--card-height:192px;--rank-width:190px}}@media screen and (max-width:900px){.category-view{--card-height:180px;--rank-width:170px}}@media screen and (max-width:800px){.category-view{--card-height:168px;--rank-width:150px}}@media screen and (max-width:700px){.category-view{--card-height:156px;--rank-width:130px}}.category-view,.category-view *,.category-view ::after,.category-view ::before{transition:.2s ease-out}@keyframes normal-category-loading{from{background-color:var(--loading-from)}to{background-color:var(--loading-to)}}body.dark .category-view{--loading-from:#333;--loading-to:#262626}.category-view .loading{opacity:0;pointer-events:none;border-radius:16px;animation:.64s ease-in-out infinite alternate normal-category-loading;position:absolute}.category-view .area-header{grid-area:header;display:flex;align-items:center;justify-content:flex-start;font-weight:700;font-size:11pt;margin-bottom:12px}.category-view .area-header::before{content:"";display:inline-flex;height:10px;width:10px;background-color:var(--theme-color);border-radius:50%;margin-right:8px}.category-view .rank{display:grid;width:calc(1.5 * var(--rank-width) + 10px);justify-self:right;grid-template:"header header" auto "first second" calc(var(--rank-height)/ 2 + 10px) "first third" calc(var(--rank-height)/ 2 + 10px)/calc(var(--rank-width)) calc(10px + var(--rank-width)/ 2)}.category-view .rank .rank-item{grid-column:1/3;box-shadow:0 4px 8px 0 #0001;background-color:#fff;color:inherit!important;position:relative}body.dark .category-view .rank .rank-item{background-color:#282828}.category-view .rank .rank-item .cover{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:16px;overflow:hidden}.category-view .rank .rank-item .cover img{width:100%;height:100%;object-fit:cover}.category-view .rank .rank-item:hover .cover img{transform:scale(1.05)}.category-view .rank .rank-item .rank-number{position:absolute;top:6px;left:6px;width:22px;height:22px;line-height:22px;border-radius:50%;box-sizing:border-box;text-align:center;font-weight:700;font-size:13px;z-index:9;background-color:#8884}.category-view .rank .rank-item .watchlater{position:absolute;top:6px;right:6px;width:22px;height:22px;border-radius:50%;box-sizing:border-box;z-index:9;background-color:#000a;color:#fff;display:flex;align-items:center;justify-content:center;opacity:0}.category-view .rank .rank-item:hover .watchlater{opacity:1}.category-view .rank .rank-item .be-icon{font-size:16px}.category-view .rank .rank-item .be-icon.mdi-fire{transform:scale(calc(18 / 16));margin-right:2px}.category-view .rank .rank-item:not(:first-child)>.title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700;font-size:13px;line-height:34px;padding:0 8px 0 34px;opacity:.9}.category-view .rank .rank-item:not(:first-child):hover{background-color:var(--theme-color-30)}.category-view .rank .rank-item:not(:first-child):hover>.title{opacity:1}.category-view .rank .rank-item:not(:first-child) .details{position:absolute;top:50%;right:calc(100% + 10px);transform:translateY(-50%);width:var(--rank-width);padding:4px;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;z-index:10;opacity:0;pointer-events:none}.category-view .rank .rank-item:not(:first-child) .details .title{font-weight:700;font-size:14px;line-height:1.5;color:#fff;padding:8px;z-index:10}.category-view .rank .rank-item:not(:first-child) .details .cover{overflow:hidden;background-color:#000}.category-view .rank .rank-item:not(:first-child) .details .cover img{filter:blur(16px) brightness(.5);transform:scale(1.5)}.category-view .rank .rank-item:not(:first-child) .details .stats,.category-view .rank .rank-item:not(:first-child) .details .up{z-index:10;display:flex;color:#fff}.category-view .rank .rank-item:not(:first-child) .details .stats .be-icon:not(.mdi-fire),.category-view .rank .rank-item:not(:first-child) .details .up .be-icon:not(.mdi-fire){margin:0 4px 0 8px}.category-view .rank .rank-item:not(:first-child) .details .up{justify-content:space-between;margin:0 10px 0 6px}.category-view .rank .rank-item:not(:first-child) .details .up>*{display:flex;align-items:center}.category-view .rank .rank-item:not(:first-child) .details .stats{margin:8px}.category-view .rank .rank-item:not(:first-child) .details .stats .be-icon:first-child{margin-left:0}.category-view .rank .rank-item:not(:first-child):hover .details{opacity:1}.category-view .rank .rank-item:first-child,.category-view .rank .rank-item:nth-child(2),.category-view .rank .rank-item:nth-child(3){border-radius:16px}.category-view .rank .rank-item:first-child .rank-number,.category-view .rank .rank-item:nth-child(2) .rank-number,.category-view .rank .rank-item:nth-child(3) .rank-number{background-color:var(--theme-color);color:var(--foreground-color);opacity:.9}.category-view .rank .rank-item:nth-child(4){border-radius:16px 16px 0 0}.category-view .rank .rank-item:nth-last-child(2){border-radius:0 0 16px 16px}.category-view .rank .rank-item:first-child{grid-area:first;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;margin-bottom:10px}.category-view .rank .rank-item:first-child .details{align-self:stretch}.category-view .rank .rank-item:first-child .cover::after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-image:linear-gradient(to top,#000c 0,transparent 100%);z-index:0}.category-view .rank .rank-item:first-child .title{font-weight:700;font-size:16px;line-height:1.5;color:#fff;padding:0 8px;z-index:10;white-space:nowrap;overflow:hidden;max-width:100%;text-overflow:ellipsis}.category-view .rank .rank-item:first-child .up{display:flex;align-self:stretch;justify-content:space-between;align-items:center;opacity:.75;color:#fff;padding:0 12px 0 6px;margin:4px 0 8px;z-index:10}.category-view .rank .rank-item:first-child .up>*{display:flex;align-items:center}.category-view .rank .rank-item:first-child .up .be-iconfont-up{margin-right:4px}.category-view .rank .rank-item:first-child .up .points{flex-shrink:0;margin-right:8px}.category-view .rank .rank-item:first-child .up .up-info{max-width:61%}.category-view .rank .rank-item:first-child .up .up-info .up-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:break-all}.category-view .rank .rank-item:first-child .stats{display:flex;justify-content:flex-start;align-items:center;color:#fff;opacity:0;padding:0 8px;position:absolute;bottom:8px;left:0;z-index:10}.category-view .rank .rank-item:first-child .stats .be-icon{margin:0 2px 0 8px}.category-view .rank .rank-item:first-child .stats .be-icon:first-child{margin-left:0}.category-view .rank .rank-item:first-child:hover .up{opacity:0}.category-view .rank .rank-item:first-child:hover .stats{opacity:.75}.category-view .rank .rank-item:nth-child(2){grid-area:second;margin-bottom:10px;margin-left:10px}.category-view .rank .rank-item:nth-child(3){grid-area:third;margin-bottom:10px;margin-left:10px}.category-view .new-activity{align-self:start;grid-area:new-activity}.category-view .new-post{align-self:end;grid-area:new-post}.category-view.new-activity-loading .new-activity.loading{position:static;opacity:1;pointer-events:initial;width:100%;height:100%}.category-view.new-activity-loading .new-activity:not(.loading){opacity:0;pointer-events:none}.category-view.new-post-loading .new-post.loading{position:static;opacity:1;pointer-events:initial;width:100%;height:100%}.category-view.new-post-loading .new-post:not(.loading){opacity:0;pointer-events:none}.category-view .rank{grid-area:rank}.category-view.rank-loading .rank.loading{position:static;opacity:1;pointer-events:initial;width:100%;height:100%}.category-view.rank-loading .rank:not(.loading){opacity:0;pointer-events:none}@media screen and (max-width:1300px){.category-view{--card-height:228px;--rank-width:250px;grid-template:"new-activity" 1fr "new-post" 1fr "rank" auto/1fr;--card-height:300px}.category-view .rank{--rank-width:420px;justify-self:center}}`,"simple-home-normal-category-style");return{export:Object.assign({template:t},{components:{SlideshowCards:()=>e.importAsync("slideshow-cards.vue"),Icon:()=>e.importAsync("icon.vue"),DpiImg:()=>e.importAsync("dpi-img.vue")},store:store,filters:{bigNumber(i){return formatCount(i)}},props:{rid:{type:Number,required:true}},data(){return{newActivity:{error:false,loading:true,videos:[]},newPost:{error:false,loading:true,videos:[]},rank:{error:false,loading:true,videos:[]},loaded:false}},computed:{...Vuex.mapState(["watchlaterList"])},methods:{async loadCards(i,e,t){if(t===undefined){t=(i=>{const e=getUID();const t=_.get(i,"data.archives",[]);return t.map(i=>{return{id:i.aid,aid:i.aid,coverUrl:i.pic.replace("http:","https:"),title:i.title,upName:i.owner.name,upFaceUrl:i.owner.face.replace("http:","https:"),upID:i.owner.mid,playCount:i.stat.view,danmakuCount:i.stat.danmaku,like:i.stat.like,coins:i.stat.coin,description:i.desc,type:i.tname,watchlater:e?this.watchlaterList.includes(i.aid):null}})})}try{this[i].loading=true;const a=await Ajax.getJson(e);if(a.code!==0){this[i].error=true}this[i].videos=t(a)}catch(e){logError(e);this[i].error=true}finally{this[i].loading=false}},async loadNewActivity(){await this.loadCards("newActivity",`https://api.bilibili.com/x/web-interface/dynamic/region?ps=10&rid=${this.rid}`)},async loadNewPost(){await this.loadCards("newPost",`https://api.bilibili.com/x/web-interface/newlist?ps=10&rid=${this.rid}`)},async loadRank(){await this.loadCards("rank",`https://api.bilibili.com/x/web-interface/ranking/region?rid=${this.rid}&day=3&original=0`,i=>{const e=getUID();const t=i.data;return t.map(i=>{return{id:i.aid,aid:parseInt(i.aid),title:i.title,playCount:i.play,favorites:i.favorites,upID:i.mid,upName:i.author,description:i.description,coverUrl:i.pic.replace("http:","https:"),coins:i.coins,durationText:i.duration,points:i.pts,watchlater:e?this.watchlaterList.includes(parseInt(i.aid)):null}})})},...Vuex.mapActions(["toggleWatchlater"]),updateVideos(){this.loadNewActivity();this.loadNewPost();this.loadRank()}},watch:{rid(i){if(i>0){if(this.loaded){this.updateVideos()}}else{console.warn(`rid=${i}`)}}},mounted(){const i=new IntersectionObserver(()=>{this.updateVideos();this.loaded=true;i.disconnect()});i.observe(this.$el)}})}}})(); offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/simplify-home.min.css"] = `#app>.bili-header-m.stardust-common>.bili-wrapper,#app>.bili-wrapper,#app>.elevator-module,.bili-header-m .head-banner .head-content .head-logo,.international-footer,.international-header .b-wrap,.international-home>:not(.international-header){display:none!important}`; offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/simplify-home.min.js"] = (()=>{return(e,i)=>{(async()=>{if(document.URL.replace(window.location.search,"")!=="https://www.bilibili.com/"){i.removeStyle("simplifyHomeStyle");return}document.body.insertAdjacentHTML("beforeend",`\n\n`);const m=new Vue({el:"simplify-home",components:{SimplifyHome:()=>i.importAsync("simplify-home.vue")},data:{homeStyle:e.simplifyHomeStyle}});addSettingsListener("simplifyHomeStyle",e=>m.homeStyle=e,false)})()}})(); offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/simplify-home.vue.min.js"] = (()=>{return(e,o)=>{const m=`
`;o.applyStyleFromText(`.simplify-home{padding-top:32px;display:flex;align-items:flex-start;justify-content:center;min-height:100vh;background-color:#f4f4f4}body.dark .simplify-home{background-color:#181818}.simplify-home .simplify-home-component{max-width:100%}html{scroll-behavior:smooth}`,"simplify-home-style");return{export:Object.assign({template:m},{components:{"minimal-home":()=>o.importAsync("minimal-home.vue"),"simple-home":()=>o.importAsync("simple-home.vue")},computed:{activeComponent(){return this.homeStyle==="清爽"?"simple-home":"minimal-home"}},props:{homeStyle:String}})}}})(); @@ -1234,7 +1234,7 @@ offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/m offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/simplify-liveroom.min.js"] = (()=>{return(e,i)=>{const s={vip:"老爷图标",fansMedal:"粉丝勋章",title:"活动头衔",userLevel:"用户等级",guard:"舰长图标",systemMessage:"全区广播",welcomeMessage:"欢迎信息",giftMessage:"礼物弹幕",guardPurchase:"上舰提示",giftPanel:"付费礼物",kanban:"看板娘",eventsBanner:"活动横幅",popup:"抽奖提示",skin:"房间皮肤"};class t{constructor(i,s){this.skinDisabled=e.simplifyLiveroomSettings.skin;this.skinSelectors=i;this.skinClass=s;i.forEach(e=>{SpinQuery.select(e,i=>{Observer.attributes(e,e=>{e.forEach(e=>{if(e.attributeName==="class"){if(this.skinDisabled&&i.classList.contains(s)){i.classList.remove(s)}else if(!this.skinDisabled&&!i.classList.contains(s)){i.classList.add(s)}}})})})})}setSkin(e){this.skinDisabled=!e;this.skinSelectors.forEach(i=>{SpinQuery.select(i,i=>i.classList[e?"add":"remove"](this.skinClass))})}}const n=[new t(["#head-info-vm","#gift-control-vm","#rank-list-vm","#rank-list-ctnr-box",".gift-panel.base-panel",".gift-panel.extend-panel",".seeds-wrap>div:first-child",".gift-section>div:last-child",".z-gift-package>div>div",".right-action"],"live-skin-coloration-area"),new t([".rank-list-ctnr .tabs"],"isHundred"),new t([".rank-list-ctnr .tab-content > div"],"hundred")];const a=(e,i)=>{document.body.classList[e?"add":"remove"](`simplify-${i}`);if(i==="skin"){n.forEach(i=>i.setSkin(!e))}};const c=()=>document.URL.startsWith(`https://live.bilibili.com/`);if(c()){Object.keys(s).forEach(i=>{const s=e.simplifyLiveroomSettings[i];a(s,i)})}return{widget:{condition:c,content:`\n
\n\n简化直播间\n\n
\n`,success:()=>{const i=document.querySelector("#simplify-liveroom");const t=document.querySelector(".gui-settings-mask");i.addEventListener("click",e=>{const i=document.querySelector(".simplify-liveroom-settings");if(i.contains(e.target)||e.target===i){return}i.classList.toggle("opened")});i.addEventListener("mouseenter",()=>t.classList.add("transparent"));i.addEventListener("mouseleave",()=>t.classList.remove("transparent"));new Vue({el:".simplify-liveroom-settings",data:{items:Object.entries(s).map(([i,s])=>{const t=e.simplifyLiveroomSettings[i];a(t,i);return{key:i,name:s,checked:t}})},methods:{itemClick(i){i.checked=!i.checked;a(i.checked,i.key);e.simplifyLiveroomSettings=Object.assign(e.simplifyLiveroomSettings,{[i.key]:i.checked})}}})}}}}})(); offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/skip-charge-list.min.css"] = `.bilibili-player .bilibili-player-area .bilibili-player-electric-panel{display:none!important}`; offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/skip-charge-list.min.js"] = (()=>{return(e,i)=>{async function n(){const e=await SpinQuery.select(()=>document.querySelector("video"));e&&e.addEventListener("ended",async()=>{const e=await SpinQuery.select(()=>document.querySelector(".bilibili-player-electric-panel-jump"));e&&e.click()})}if(Observer.videoChange){Observer.videoChange(n)}else{Observer.childList("#bofqi",n)}}})(); -offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/slideshow-cards.vue.min.js"] = (()=>{return(e,r)=>{const i=`
{{title}}
`;r.applyStyleFromText(`.slideshow-cards{display:grid;position:relative;grid-template:"header header header header" auto "cards . operations info" var(--card-height)/var(--card-width) 44px 1fr calc(var(--slideshow-ratio) * var(--card-width))}.slideshow-cards .error{grid-column:1/4;grid-row:2/3;align-self:stretch;justify-self:stretch}.slideshow-cards .operations{grid-area:operations;display:flex;flex-direction:column;align-self:center;justify-self:start}.slideshow-cards .operations>*{background-color:#ddd;border-radius:50%;border:none;display:flex;height:32px;width:32px;align-items:center;justify-content:center;box-sizing:border-box;margin-right:8px;cursor:pointer}.slideshow-cards .operations>:hover{background-color:#ccc}body.dark .slideshow-cards .operations>*{background-color:#333}body.dark .slideshow-cards .operations>:hover{background-color:#444}.slideshow-cards .operations>.checked{border:2px solid var(--theme-color)}.slideshow-cards .operations>* .be-icon{font-size:22px}.slideshow-cards .operations>:not(:last-child){margin-bottom:8px}.slideshow-cards .operations .play .be-icon{font-size:16px;transform:translateX(1.5px)}.slideshow-cards .operations .play,body.dark .slideshow-cards .operations .play{color:var(--foreground-color);background-color:var(--theme-color)}.slideshow-cards .operations .play:hover,body.dark .slideshow-cards .operations .play:hover{background-color:var(--theme-color-80)}.slideshow-cards .info{grid-area:info;display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between}.slideshow-cards .info>*{display:flex;align-items:center}.slideshow-cards .info .title{color:inherit!important;font-size:12pt;font-weight:700;text-align:right;display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.5;max-height:3em}.slideshow-cards .info .up{font-size:10pt;color:inherit!important}.slideshow-cards .info .up .face{border-radius:50%;width:24px;height:24px;margin-right:8px}.slideshow-cards .info .stat,.slideshow-cards .info .type{opacity:.75;align-items:center}.slideshow-cards .info .stat .be-icon,.slideshow-cards .info .type .be-icon{margin:0 4px 0 16px;font-size:12pt}.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:6;-webkit-box-orient:vertical;line-height:1.5;max-height:9em;flex-grow:1;white-space:pre-wrap;text-align:right;opacity:.75}.slideshow-cards .info .buttons .be-icon{font-weight:400}.slideshow-cards .info .buttons>button{outline:0!important;cursor:pointer}.slideshow-cards .info .buttons .refresh{background-color:#ddd;border-radius:50%;border:none;display:flex;height:32px;width:32px;align-items:center;justify-content:center;box-sizing:border-box;margin-right:8px;cursor:pointer}.slideshow-cards .info .buttons .refresh:hover{background-color:#ccc}body.dark .slideshow-cards .info .buttons .refresh{background-color:#333}body.dark .slideshow-cards .info .buttons .refresh:hover{background-color:#444}.slideshow-cards .info .buttons .refresh.checked{border:2px solid var(--theme-color)}.slideshow-cards .info .buttons .refresh .be-icon{transition-duration:.5s;transform:scale(.9)}.slideshow-cards .info .buttons .refresh:hover .be-icon{transform:scale(.9) rotate(360deg)}.slideshow-cards .info .buttons .previous{background-color:#ddd;border-radius:50%;border:none;display:flex;height:32px;width:32px;align-items:center;justify-content:center;box-sizing:border-box;margin-right:8px;cursor:pointer}.slideshow-cards .info .buttons .previous:hover{background-color:#ccc}body.dark .slideshow-cards .info .buttons .previous{background-color:#333}body.dark .slideshow-cards .info .buttons .previous:hover{background-color:#444}.slideshow-cards .info .buttons .previous.checked{border:2px solid var(--theme-color)}.slideshow-cards .info .buttons .previous .be-icon{transform:translateX(-1px)}.slideshow-cards .info .buttons .next{display:flex;align-items:center;padding:4px 6px 4px 12px;background-color:var(--theme-color);border:none;color:var(--foreground-color)!important;height:32px;box-sizing:border-box;line-height:normal;font-size:11pt;font-weight:700;border-radius:16px}.slideshow-cards .info .buttons .next:hover{background-color:var(--theme-color-80)}.slideshow-cards .slideshow-card{grid-area:cards;cursor:pointer;align-self:stretch;justify-self:stretch;position:absolute;top:0;left:0;width:100%;height:100%;background-color:#8882;border-radius:16px}.slideshow-cards .slideshow-card:not(:first-child){transform-origin:right}.slideshow-cards .slideshow-card:not(:nth-child(2)){pointer-events:none;transform:translateX(39px) scale(.45);opacity:0}.slideshow-cards .slideshow-card img{border-radius:16px;width:100%;height:100%;object-fit:cover}.slideshow-cards .slideshow-card:nth-child(1){z-index:7}.slideshow-cards .slideshow-card:nth-child(2){z-index:6;pointer-events:initial}.slideshow-cards .slideshow-card:nth-child(3){z-index:5}.slideshow-cards .slideshow-card:nth-child(4){z-index:4}.slideshow-cards .slideshow-card:nth-child(5){z-index:3}.slideshow-cards .slideshow-card:nth-child(6){z-index:2}.slideshow-cards .slideshow-card:nth-child(7){z-index:1}.slideshow-cards .slideshow-card:first-child{transform:translateX(-10%) scale(1.1);opacity:0}.slideshow-cards .slideshow-card:nth-child(3){transform:translateX(20px) scale(.9);opacity:.5}.slideshow-cards .slideshow-card:nth-child(4){transform:translateX(30px) scale(.75);opacity:.25}.slideshow-cards .slideshow-card:nth-child(5){transform:translateX(35px) scale(.65);opacity:.125}.slideshow-cards .slideshow-card:nth-child(6){transform:translateX(37.5px) scale(.5);opacity:.0625}@media screen and (max-width:1600px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical;line-height:1.5;max-height:6em}}@media screen and (max-width:1400px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical;line-height:1.5;max-height:4.5em}}@media screen and (max-width:1200px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.5;max-height:3em}}@media screen and (max-width:1050px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical;line-height:1.5;max-height:1.5em}}@media screen and (max-width:950px){.slideshow-cards .info .title{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical;line-height:1.5;max-height:1.5em}}`,"slideshow-cards-style");return{export:Object.assign({template:i},{components:{Icon:()=>r.importAsync("icon.vue"),DpiImg:()=>r.importAsync("dpi-img.vue")},store:store,filters:{bigNumber(e){return formatCount(e)}},props:["cards","error","title","showStat"],data(){return{cardQueue:[]}},methods:{...Vuex.mapActions(["toggleWatchlater"]),regenerateQueue(){if(this.cards.length<7){return}const e=[...this.cards];e.unshift(e.pop());this.cardQueue=e},previousCard(){this.cardQueue.unshift(this.cardQueue.pop())},nextCard(){this.cardQueue.push(this.cardQueue.shift())},refresh(){this.$emit("refresh")}},watch:{cards(){this.regenerateQueue()}},computed:{...Vuex.mapState(["watchlaterList"]),currentCard(){return this.cardQueue[1]}},mounted(){this.regenerateQueue()}})}}})(); +offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/slideshow-cards.vue.min.js"] = (()=>{return(e,r)=>{const i=`
{{title}}
`;r.applyStyleFromText(`.slideshow-cards{display:grid;position:relative;grid-template:"header header header header" auto "cards . operations info" var(--card-height)/var(--card-width) 48px auto calc(var(--card-width) * var(--slideshow-ratio))}.slideshow-cards .error{grid-column:1/4;grid-row:2/3;align-self:stretch;justify-self:stretch}.slideshow-cards .operations{grid-area:operations;display:flex;flex-direction:column;align-self:center;justify-self:start}.slideshow-cards .operations>*{background-color:#ddd;border-radius:50%;border:none;display:flex;height:32px;width:32px;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;margin-right:16px}.slideshow-cards .operations>:hover{background-color:#ccc}body.dark .slideshow-cards .operations>*{background-color:#333}body.dark .slideshow-cards .operations>:hover{background-color:#444}.slideshow-cards .operations>.checked{border:2px solid var(--theme-color)}.slideshow-cards .operations>* .be-icon{font-size:22px}.slideshow-cards .operations>:not(:last-child){margin-bottom:8px}.slideshow-cards .operations .play .be-icon{font-size:16px;transform:translateX(1.5px)}.slideshow-cards .operations .play,body.dark .slideshow-cards .operations .play{color:var(--foreground-color);background-color:var(--theme-color)}.slideshow-cards .operations .play:hover,body.dark .slideshow-cards .operations .play:hover{background-color:var(--theme-color-80)}.slideshow-cards .info{grid-area:info;display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between}.slideshow-cards .info>*{display:flex;align-items:center}.slideshow-cards .info .title{color:inherit!important;font-size:12pt;font-weight:700;text-align:right;display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.5;max-height:3em}.slideshow-cards .info .up{font-size:10pt;color:inherit!important}.slideshow-cards .info .up .face{border-radius:50%;width:24px;height:24px;margin-right:8px}.slideshow-cards .info .stat,.slideshow-cards .info .type{opacity:.75;align-items:center}.slideshow-cards .info .stat .be-icon,.slideshow-cards .info .type .be-icon{margin:0 4px 0 16px;font-size:12pt}.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:6;-webkit-box-orient:vertical;line-height:1.5;max-height:9em;flex-grow:1;white-space:pre-wrap;text-align:right;opacity:.75}.slideshow-cards .info .buttons .be-icon{font-weight:400}.slideshow-cards .info .buttons>button{outline:0!important;cursor:pointer}.slideshow-cards .info .buttons .refresh{background-color:#ddd;border-radius:50%;border:none;display:flex;height:32px;width:32px;align-items:center;justify-content:center;box-sizing:border-box;margin-right:8px;cursor:pointer}.slideshow-cards .info .buttons .refresh:hover{background-color:#ccc}body.dark .slideshow-cards .info .buttons .refresh{background-color:#333}body.dark .slideshow-cards .info .buttons .refresh:hover{background-color:#444}.slideshow-cards .info .buttons .refresh.checked{border:2px solid var(--theme-color)}.slideshow-cards .info .buttons .refresh .be-icon{transition-duration:.5s;transform:scale(.9)}.slideshow-cards .info .buttons .refresh:hover .be-icon{transform:scale(.9) rotate(360deg)}.slideshow-cards .info .buttons .previous{background-color:#ddd;border-radius:50%;border:none;display:flex;height:32px;width:32px;align-items:center;justify-content:center;box-sizing:border-box;margin-right:8px;cursor:pointer}.slideshow-cards .info .buttons .previous:hover{background-color:#ccc}body.dark .slideshow-cards .info .buttons .previous{background-color:#333}body.dark .slideshow-cards .info .buttons .previous:hover{background-color:#444}.slideshow-cards .info .buttons .previous.checked{border:2px solid var(--theme-color)}.slideshow-cards .info .buttons .previous .be-icon{transform:translateX(-1px)}.slideshow-cards .info .buttons .next{display:flex;align-items:center;padding:4px 6px 4px 12px;background-color:var(--theme-color);border:none;color:var(--foreground-color)!important;height:32px;box-sizing:border-box;line-height:normal;font-size:11pt;font-weight:700;border-radius:16px}.slideshow-cards .info .buttons .next:hover{background-color:var(--theme-color-80)}.slideshow-cards .slideshow-card{grid-area:cards;cursor:pointer;align-self:stretch;justify-self:stretch;position:absolute;top:0;left:0;width:100%;height:100%;background-color:#8882;border-radius:16px}.slideshow-cards .slideshow-card:not(:first-child){transform-origin:right}.slideshow-cards .slideshow-card:not(:nth-child(2)){pointer-events:none;transform:translateX(39px) scale(.45);opacity:0}.slideshow-cards .slideshow-card img{border-radius:16px;width:100%;height:100%;object-fit:cover}.slideshow-cards .slideshow-card:nth-child(1){z-index:7}.slideshow-cards .slideshow-card:nth-child(2){z-index:6;pointer-events:initial}.slideshow-cards .slideshow-card:nth-child(3){z-index:5}.slideshow-cards .slideshow-card:nth-child(4){z-index:4}.slideshow-cards .slideshow-card:nth-child(5){z-index:3}.slideshow-cards .slideshow-card:nth-child(6){z-index:2}.slideshow-cards .slideshow-card:nth-child(7){z-index:1}.slideshow-cards .slideshow-card:first-child{transform:translateX(-10%) scale(1.1);opacity:0}.slideshow-cards .slideshow-card:nth-child(3){transform:translateX(20px) scale(.9);opacity:.5}.slideshow-cards .slideshow-card:nth-child(4){transform:translateX(30px) scale(.75);opacity:.25}.slideshow-cards .slideshow-card:nth-child(5){transform:translateX(35px) scale(.65);opacity:.125}.slideshow-cards .slideshow-card:nth-child(6){transform:translateX(37.5px) scale(.5);opacity:.0625}@media screen and (max-width:1600px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical;line-height:1.5;max-height:6em}}@media screen and (max-width:1400px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical;line-height:1.5;max-height:4.5em}}@media screen and (max-width:1200px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.5;max-height:3em}}@media screen and (max-width:1050px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical;line-height:1.5;max-height:1.5em}}@media screen and (max-width:950px){.slideshow-cards .info .title{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical;line-height:1.5;max-height:1.5em}}`,"slideshow-cards-style");return{export:Object.assign({template:i},{components:{Icon:()=>r.importAsync("icon.vue"),DpiImg:()=>r.importAsync("dpi-img.vue")},store:store,filters:{bigNumber(e){return formatCount(e)}},props:["cards","error","title","showStat"],data(){return{cardQueue:[]}},methods:{...Vuex.mapActions(["toggleWatchlater"]),regenerateQueue(){if(this.cards.length<7){return}const e=[...this.cards];e.unshift(e.pop());this.cardQueue=e},previousCard(){this.cardQueue.unshift(this.cardQueue.pop())},nextCard(){this.cardQueue.push(this.cardQueue.shift())},refresh(){this.$emit("refresh")}},watch:{cards(){this.regenerateQueue()}},computed:{...Vuex.mapState(["watchlaterList"]),currentCard(){return this.cardQueue[1]}},mounted(){this.regenerateQueue()}})}}})(); offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/slip.min.js"] = (()=>{return(t,e)=>{const i=function(){"use strict";var t={container:{ariaRole:"listbox",tabIndex:0,focus:false},items:{ariaRole:"option",tabIndex:-1,focus:false}};var e=/Chrome\/[3-5]/.test(navigator.userAgent);var i=e;var n=e;var s=document.createElement("div").style;var o="transition"in s?"transition":"webkitTransition";var a="transform"in s?"transform":"webkitTransform";var r=a==="webkitTransform"?"-webkit-transform":"transform";var h="userSelect"in s?"userSelect":"webkitUserSelect";s[a]="translateZ(0)";var l=s[a]?"translateZ(0) ":"";var c=s[a]?"translateZ(1px) ":"";s=null;var u=0;var d=false;var f=function(){};function g(t,e){if("string"===typeof t)t=document.querySelector(t);if(!t||!t.addEventListener)throw new Error("Please specify DOM node to attach to");if(!this||this===window)return new g(t,e);this.options=e=e||{};this.options.keepSwipingPercent=e.keepSwipingPercent||0;this.options.minimumSwipeVelocity=e.minimumSwipeVelocity||1;this.options.minimumSwipeTime=e.minimumSwipeTime||110;this.options.ignoredElements=e.ignoredElements||[];if(!Array.isArray(this.options.ignoredElements))throw new Error("ignoredElements must be an Array");this.cancel=this.setState.bind(this,this.states.idle);this.onTouchStart=this.onTouchStart.bind(this);this.onTouchMove=this.onTouchMove.bind(this);this.onTouchEnd=this.onTouchEnd.bind(this);this.onMouseDown=this.onMouseDown.bind(this);this.onMouseMove=this.onMouseMove.bind(this);this.onMouseUp=this.onMouseUp.bind(this);this.onMouseLeave=this.onMouseLeave.bind(this);this.onSelection=this.onSelection.bind(this);this.onContainerFocus=this.onContainerFocus.bind(this);this.setState(this.states.idle);this.attach(t)}function m(t){var e=t.style[a];if(e){return{value:e,original:e}}if(window.getComputedStyle){var i=window.getComputedStyle(t).getPropertyValue(r);if(i&&i!=="none")return{value:i,original:""}}return{value:"",original:""}}function v(t,e){var i=0;var n=0;for(var s=0;s20&&t.y20){this.setState(this.states.idle)}if(t.x>t.y*1.2)return false},onLeave:function(){this.setState(this.states.idle)},onEnd:function(){var t=this.dispatch(this.target.originalTarget,"tap");this.setState(this.states.idle);return t}}},swipe:function t(){var e=false;var i=this.container;var n=v(this.target,this.container.childNodes);i.classList.add("slip-swiping-container");function s(){i.classList.remove("slip-swiping-container")}this.target.height=this.target.node.offsetHeight;return{leaveState:function(){if(e){this.animateSwipe(function(t){t.node.style[a]=t.baseTransform.original;if(this.dispatch(t.node,"afterswipe")){s();return true}else{this.animateToZero(undefined,t)}}.bind(this))}else{this.animateToZero(s)}},onMove:function(){var t=this.getTotalMovement();if(Math.abs(t.y)this.options.minimumSwipeVelocity&&t.time>this.options.minimumSwipeTime||this.options.keepSwipingPercent&&s>this.options.keepSwipingPercent;if(o){if(this.dispatch(this.target.node,"swipe",{direction:t.directionX,originalIndex:n})){e=true}}else{this.dispatch(this.target.node,"cancelswipe")}this.setState(this.states.idle);return!o}}},reorder:function e(){if(this.target.node.focus&&t.items.focus){this.target.node.focus()}this.target.height=this.target.node.offsetHeight;var i;if(this.options.ignoredElements.length){var s=this.container;var o=s.tagName.toLowerCase();if(s.getAttribute("id")){o="#"+s.getAttribute("id")}else if(s.classList.length){o+="."+s.getAttribute("class").replace(" ",".")}o+=" > ";this.options.ignoredElements.forEach(function(t){o+=":not("+t+")"});try{i=s.parentNode.querySelectorAll(o)}catch(t){if(t instanceof DOMException&&t.name==="SyntaxError")throw new Error("ignoredElements you specified contain invalid query");else throw t}}else{i=this.container.childNodes}var r=v(this.target,i);var u;var d=this.target.node.offsetTop+this.target.height/2;var f=[];for(var g=0;gt.y){n=e}else if(i.pos>0&&t.y>0&&i.post.y){break}}i=e}else{for(e=f.length-1;e>=0;e--){if(f[e].pos1){this.setState(this.states.idle);return}if(!this.setTarget(t))return;this.startAtPosition({x:t.touches[0].clientX,y:t.touches[0].clientY,time:t.timeStamp})},setTarget:function(t){var e=this.findTargetNode(t.target);if(!e){this.setState(this.states.idle);return false}var i=this.options.scrollContainer;if(!i){var n=document.scrollingElement||document.documentElement;i=e.parentNode;while(i){if(i==n)break;if(i!=document.body&&i.scrollHeight>i.clientHeight&&window.getComputedStyle(i)["overflow-y"]!="visible")break;i=i.parentNode}i=i||n}this.target={originalTarget:t.target,node:e,scrollContainer:i,origScrollTop:i.scrollTop,origScrollHeight:i.scrollHeight,baseTransform:m(e)};return true},startAtPosition:function(t){this.startPosition=this.previousPosition=this.latestPosition=t;this.setState(this.states.undecided)},updatePosition:function(t,e){if(this.target==null){return}this.latestPosition=e;if(this.state.onMove){if(this.state.onMove.call(this)===false){t.preventDefault()}}if(this.latestPosition.time-this.previousPosition.time>100){this.previousPosition=this.latestPosition}},onMouseMove:function(t){t.stopPropagation();this.updatePosition(t,{x:t.clientX,y:t.clientY,time:t.timeStamp})},onTouchMove:function(t){t.stopPropagation();this.updatePosition(t,{x:t.touches[0].clientX,y:t.touches[0].clientY,time:t.timeStamp});this.canPreventScrolling=false},onMouseUp:function(t){t.stopPropagation();if(this.usingTouch||t.button!==0)return;if(this.state.onEnd&&false===this.state.onEnd.call(this)){t.preventDefault()}},onTouchEnd:function(t){t.stopPropagation();if(t.touches.length>1){this.cancel()}else if(this.state.onEnd&&false===this.state.onEnd.call(this)){t.preventDefault()}},getTotalMovement:function(){var t=this.target.scrollContainer.scrollTop-this.target.origScrollTop;return{x:this.latestPosition.x-this.startPosition.x,y:this.latestPosition.y-this.startPosition.y+t,time:this.latestPosition.time-this.startPosition.time}},getAbsoluteMovement:function(){var t=this.getTotalMovement();return{x:Math.abs(t.x),y:Math.abs(t.y),time:t.time,directionX:t.x<0?"left":"right",directionY:t.y<0?"up":"down"}},updateScrolling:function(){var t=40,e=0;var i=this.target.scrollContainer,n=i.getBoundingClientRect(),s=this.target.node.getBoundingClientRect(),o=Math.min(n.bottom,window.innerHeight)-s.bottom,a=s.top-Math.max(n.top,0),r=this.target.origScrollHeight-Math.min(i.clientHeight,window.innerHeight);if(o0?"":"-")+"100%,0) "+l+e.baseTransform.value;setTimeout(function(){if(t.call(this,e)){i.forEach(function(t){t.node.style[a]=n+t.baseTransform.value});setTimeout(function(){i.forEach(function(t){t.node.style[a]="translate(0,0) "+l+t.baseTransform.value});setTimeout(function(){i.forEach(function(t){t.node.style[a]=t.baseTransform.original})},101)},1)}}.bind(this),101)}};if("function"===typeof define&&define.amd){define(function(){return g})}if("object"===typeof module&&module.exports){module.exports=g}return g}();return{export:{Slip:i}}}})(); offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/style.min.css"] = `.bili-wrapper{display:flex!important;justify-content:center!important;align-items:center!important;height:50px!important}.bili-header-m>.nav-menu,.link-navbar,.link-navbar .main-ctnr .nav-items-ctnr,.link-navbar-ctnr .link-navbar,.link-navbar-ctnr .link-navbar .main-ctnr .nav-items-ctnr,.nav-header-wrapper{background:var(--theme-color)!important}.bili-header-m>.nav-menu,.link-navbar-ctnr,.nav-header-wrapper{box-shadow:var(--theme-color-70) 0 2px 10px 1px!important}div.stardust-player{background:#fff!important}.nav-header-wrapper>.nav-header,.nav-mask{background-color:transparent!important}.link-navbar,.nav-mask{box-shadow:none!important}.nav-con{flex-grow:10!important;flex-shrink:0!important}.nav-con.fl{margin-left:-2em!important}.nav-search-box{margin:9px 0 0!important}.bili-header-m .nav-menu .nav-con .nav-item .t,.link-navbar .main-ctnr .custom-link>a,.link-navbar .main-ctnr .nav-logo,.link-navbar .main-ctnr .nav-switcher,.link-navbar .nav-item,.link-navbar .nav-item .icon-font,.link-navbar .nav-item.selected .label,.link-navbar .nav-item:hover,.my-link-btn,.nav-header-wrapper .nav-header .nav-header-mainsite,.nav-header-wrapper .nav-header .order-center,.shortcuts-ctnr,.shortcuts-ctnr .shortcut-item,.stardust-video .nav-menu .nav-con .nav-item.home .drop,.stardust-video .nav-menu .nav-con .nav-item.home .header-icon-Navbar_logo{color:var(--foreground-color-d)!important}.stardust-video .nav-menu .nav-con .nav-item.home .header-icon-Navbar_logo{transform:scale(.75)!important;top:7px!important}.stardust-video .nav-menu .up-load .up-nav{top:42px!important}.link-navbar .nav-item:hover,.link-navbar-ctnr .link-navbar .nav-item:hover,.link-navbar-ctnr .shortcuts-ctnr .shortcut-item:hover,.my-link-btn:hover,.publish-btn:hover,.shortcuts-ctnr .shortcut-item:hover,li.nav-item:not(.profile-info):hover{background-color:hsla(0,0%,var(--brightness),.2)!important}.link-navbar .nav-item:hover .nav-link .label,.my-link-btn .label:hover,.publish-btn:hover::after,.shortcuts-ctnr .shortcut-item .label-wrapper .text:hover,li.nav-item.home:hover{background:0 0!important}.vip-m{background:#fff!important}a.t>i.bili-icon,a.t>i.bili-icon-logo{width:50px!important;left:-60px!important;top:0!important;height:50px!important;background-position-y:12px!important}.link-navbar .nav-item:first-child::before,.main-ctnr .nav-logo:before,.nav-header-wrapper .nav-header .nav-header-logo,.nav-header-wrapper .nav-header .nav-header-tv-icon,.nav-header-wrapper .nav-header .order-icon,a.t>i.bili-icon,a.t>i.bili-icon-logo{filter:brightness(0) var(--invert-filter)!important;opacity:.81!important}#entryOld,.b-icon-app,.blp-red-tip::after,.main-container .entry-old,.nav-search-submit,.title-icon,body>#Header{display:none!important}.bilibili-player-video-inputbar{display:flex!important}.i-face>.face,.user-panel-ctnr .msg-hinter{box-shadow:0 0 2px 1.5px #0002!important}div.up-load{margin-top:8px!important;margin-left:9px!important;height:32px!important;order:4!important;flex-grow:0;flex-shrink:0}.stardust-video .nav-menu .nav-wrapper{padding:0 5rem!important}.publish-btn{height:40px!important;line-height:40px!important;background:var(--theme-color)!important;border:1px solid!important;border-radius:5px!important;box-shadow:none!important;top:calc(50% - 20px)!important;transition:.2s!important}.publish-panel{margin-top:7px!important}.my-link-btn{border-radius:0!important}.main-ctnr .search-bar-ctnr .search-bar input,.slot-ctnr a{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:0 2px 10px 1px #0002!important}.u-link{background:0 0!important;color:var(--foreground-color-d)!important;border-radius:4px!important;line-height:30px!important;height:30px!important;transition:background-color .2s!important}.shortcuts-ctnr .shortcut-item .hinter,.shortcuts-ctnr .shortcut-item .num-hinter,.u-link{border:1px solid!important}.u-link:hover{opacity:1!important;background-color:hsla(0,0%,var(--brightness),.2)!important}#nav_searchform,.stardust-video .nav-con .nav-search{width:130px!important}.stardust-video .nav-con .nav-search .nav-search-keyword{color:#222!important;width:120px!important;padding-right:32px}.nav-header-wrapper .nav-header .nav-header-search-bar,.stardust-video .nav-con #nav_searchform{border-radius:4px!important;background:#fffb!important;border:none!important;transition:background-color .2s!important;box-shadow:0 2px 10px 1px #0002;padding-right:0!important}.search-bar-ctnr .search-bar{background-color:#fffd!important;transition:.2s!important}.nav-header-wrapper .nav-header .nav-header-search-bar:focus-within,.nav-header-wrapper .nav-header .nav-header-search-bar:hover,.search-bar-ctnr .search-bar:focus-within,.search-bar-ctnr .search-bar:hover,.stardust-video .nav-con #nav_searchform:focus-within,.stardust-video .nav-con #nav_searchform:hover{background-color:#fff!important}#bilibiliPlayer{box-shadow:0 4px 16px 0 var(--theme-color-40)!important}.blur-bg{opacity:var(--blur-background-opacity)!important;filter:blur(20px)!important}.suggest-item .cancel{width:28px!important}.stardust-video .nav-con ul.bilibili-suggest{margin-left:-35px!important;width:200px!important}li.suggest-item>a{max-width:155px!important}.nav-item div.num{box-shadow:0 .5px 4px 0 #0004!important}#primary_menu,#primary_menu>ul.nav-menu{display:flex!important;align-items:center!important}.bilibili-player-video-btn-quality{width:auto!important;margin:0 6px!important}#primary_menu,div.nav-gif{padding:0!important}.filter-item.search,body{margin:0!important}.input-box textarea{padding:8px!important}.link-navbar .main-ctnr .nav-switcher.open-btn{filter:brightness(0) invert(1)!important;opacity:.8!important}.guard-rank-cntr.open .tip.rank-desc{visibility:visible!important}.guard-rank-cntr .rank-cntr .tip{visibility:hidden!important}.tag-container .tag-item .tag-border .tag-border-inner{width:100%!important}.bilibili-player-video-control{background-color:transparent!important}.mouse-hover .bilibili-player-video-control-top,.video-control-show .bilibili-player-video-control-top{left:0!important;right:0!important;bottom:32px!important}.bilibili-player-video-control-top{left:-12px!important;right:-12px!important;bottom:0!important}.bilibili-player .bilibili-player-area .bilibili-player-video-control-wrap{bottom:0!important}.showSearch .nav-search-submit{top:6px!important}.nav-header-wrapper .nav-header .nav-header-search-bar::placeholder,.search-bar-ctnr .search-bar .search-btn,.search-bar-ctnr .search-bar input::placeholder{color:#888!important}.card-list .card{border:none!important;border-radius:4px!important}@media only screen and (min-width:1291px){.nav-con{margin:0 1em!important}#nav_searchform,.stardust-video .nav-con .bilibili-suggest.nav,.stardust-video .nav-con .nav-search{width:250px!important}.stardust-video .nav-con .nav-search .nav-search-keyword{width:240px!important}.stardust-video .nav-con ul.bilibili-suggest{margin-left:0!important;width:250px!important}.stardust-video .nav-con li.suggest-item>a{max-width:205px!important}}@media screen and (min-width:750px){.player .bilibili-player.mode-fullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-top,.player .bilibili-player.mode-webfullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-top{left:-12px!important;right:-12px!important;bottom:0!important}.mode-fullscreen .bilibili-player-area.mouse-hover:not(.disable-original-hover) .bilibili-player-video-control-top,.mode-fullscreen .bilibili-player-area.video-control-show:not(.disable-original-hover) .bilibili-player-video-control-top,.mode-webfullscreen .bilibili-player-area.mouse-hover:not(.disable-original-hover) .bilibili-player-video-control-top,.mode-webfullscreen .bilibili-player-area.video-control-show:not(.disable-original-hover) .bilibili-player-video-control-top{left:0!important;right:0!important;bottom:42px!important}}`; offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/superchat-translate.min.css"] = `.chat-history-panel .chat-item.superChat-card-detail .input-contain .text{display:block!important}`; @@ -1249,7 +1249,7 @@ offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/m offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/touch-player.min.css"] = `.touch-video-box-wrapper{display:flex;align-items:center;justify-content:center;width:100%;height:100%;position:absolute;top:0;left:0;z-index:14;pointer-events:none}.touch-video-box{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:rgba(0,0,0,.85);position:relative;max-width:390px;max-height:180px;border:4px solid transparent;transform-origin:center}.round-corner .touch-speed,.round-corner .touch-video-box{border-radius:var(--corner-radius)}.touch-video-box-wrapper.simple{align-items:flex-start}.touch-video-box.animation{transition:.2s cubic-bezier(.18,.89,.32,1.28)}.touch-video-info{color:#fff;font-size:14pt;text-align:center;display:flex;align-items:center;justify-content:center;flex-direction:column;height:100%;width:100%}.touch-row{flex-grow:1;display:flex;align-items:center;justify-content:center;width:100%}.touch-info{display:block;color:var(--theme-color)}.touch-result{display:block;font-size:12pt;line-height:150%}.touch-speed{display:block;background:rgba(0,0,0,.1);padding:.5em}.touch-progress{position:absolute;bottom:0;left:0;background:var(--theme-color);width:0;height:4px}.round-corner .touch-progress{border-radius:2px}.touch-row-item{flex:1 0 0;display:none;align-items:center;justify-content:center}.touch-row-item-wide{flex:1.5 0 0;display:flex;align-items:center;justify-content:center}.videoshot{background-color:transparent;background-image:none;transform-origin:center;transform:scale(.9)}.adjust-closed{opacity:0;transform:scale(.9)}.adjust-opened{opacity:1;transform:scale(1)}.touch-video-info.speed .touch-row-item{display:flex}.touch-video-info.cancel .touch-progress,.touch-video-info.cancel .touch-result{opacity:0}.bilibili-player-video-control-top{left:0!important;right:0!important}.bilibili-player-video-control-top,.bilibili-player-video-progress-detail{bottom:0!important}div.bilibili-player-video-control{height:38px!important;align-items:center!important}.bilibili-player-video-btn{flex-grow:1!important;height:100%!important;display:flex!important;align-items:center!important;justify-content:center!important}.pbp-panel-icon-wrap{height:auto!important;display:flex!important;transform:translateY(-1px)!important}.bilibili-player-video-btn-pagelist .bilibili-player-video-btn-name{display:none!important}.bilibili-player-video-btn-pagelist::before{display:block;width:36px;color:#eee;content:"";font:22px/1 "Material Design Icons";text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.bilibili-player-video-inputbar,.bilibili-player-video-progress{flex-grow:30!important}.bilibili-player-video-quality-menu{display:flex!important;align-items:center!important;justify-content:center!important}.bilibili-player-iconfont-color,.bilibili-player-iconfont-danmaku,.bilibili-player-iconfont-danmaku-off,.bilibili-player-iconfont-fullscreen,.bilibili-player-iconfont-pause,.bilibili-player-iconfont-repeat,.bilibili-player-iconfont-setting,.bilibili-player-iconfont-start,.bilibili-player-iconfont-volume,.bilibili-player-iconfont-volume-max,.bilibili-player-iconfont-volume-min,.bilibili-player-iconfont-web-fullscreen,.bilibili-player-iconfont-widescreen{font-size:2.5rem!important}.bilibili-player-iconfont-next{font-size:2rem!important}.bilibili-player-video-btn-setting-panel,.bilibili-player-video-danmaku-setting-wrap,.bilibili-player.mode-fullscreen .bilibili-player-video-sendbar,.bpui-selectmenu-list{left:unset!important;bottom:38px!important}.bilibili-player-video-volumebar-wrp{left:unset!important}.bilibili-player-video-control-wrap{padding:0!important}.bilibili-player-video-control-bottom{padding:0!important;align-items:center!important}.bilibili-player-iconfont-next,.bilibili-player-iconfont-setting,.bilibili-player-video-btn-volume.video-state-volume-max .bilibili-player-iconfont-volume-max,.bilibili-player-video-btn-volume.video-state-volume-min .bilibili-player-iconfont-volume-min,.bilibili-player-video-btn-volume:not(.video-state-volume-max):not(.video-state-volume-min) .bilibili-player-iconfont-volume,.bilibili-player-video-control-bottom-left{display:flex!important;align-items:center!important}.bilibili-player-video-btn-danmaku{flex-grow:0!important;display:flex!important;align-items:center!important;height:100%!important;margin:0!important;padding:0!important}.bilibili-player.mode-webfullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-bottom-right{flex-grow:1!important}.bilibili-player.mode-fullscreen .bilibili-player-video-sendbar{bottom:0!important}.bilibili-player .bilibili-player-area #bilibili_pbp,.bilibili-player .bilibili-player-area #bilibili_pbp_canvas{left:0!important;width:100%!important}.bilibili-player .bilibili-player-area #bilibili_pbp_pin,.bilibili-player .bilibili-player-area .bilibili-player-video-control-wrap:hover #bilibili_pbp_pin{right:0!important}.bilibili-player .bilibili-player-area.video-control-show:not(.disable-original-hover) .bilibili-player-video-control-top{left:0!important;right:0!important;bottom:31px!important}.bilibili-player .bilibili-player-area.video-control-show:not(.disable-original-hover) #bilibili_pbp,.bilibili-player .bilibili-player-area.video-control-show:not(.disable-original-hover) #bilibili_pbp_canvas{bottom:calc(100% + 3px)!important}.bilibili-player .bilibili-player-area.video-control-show:not(.disable-original-hover) .bilibili-player-video-progress-detail{bottom:7px!important}.bilibili-player .bilibili-player-area .bilibili-player-video-control .bilibili-player-video-btn.bilibili-player-video-btn-fullscreen{margin-right:0!important;padding-right:8px!important}.bilibili-player .bilibili-player-area .bilibili-player-video-control .bilibili-player-video-btn.bilibili-player-video-btn-start{padding-left:8px!important;flex-grow:1.2!important;margin-right:0!important;margin-left:0!important}.bilibili-player .bilibili-player-area .bilibili-player-video-control .bilibili-player-video-btn{padding:0 3px!important}.bilibili-player .bilibili-player-area .bilibili-player-video-control-bottom,.bilibili-player .bilibili-player-area .bilibili-player-video-control-bottom-right,.bilibili-player-video-control-bottom-left{height:100%!important;margin:0!important}.bilibili-player-video-btn-setting-panel-hover-bridge{display:none!important}#bofqi *{-webkit-tap-highlight-color:transparent!important}.disable-original-hover .bilibili-player-video-control-bottom,.disable-original-hover .bilibili-player-video-control-mask{opacity:0!important;visibility:hidden!important}.disable-original-hover .bilibili-player-video-control-wrap{opacity:1!important;visibility:visible!important}.disable-original-hover .bilibili-player-video-control-top{left:0!important;right:0!important;bottom:0!important}.disable-original-hover #bilibili_pbp,.disable-original-hover #bilibili_pbp_canvas{left:0!important;width:100%!important;bottom:3px!important;opacity:0!important}.disable-original-hover #bilibili_pbp.pin,.disable-original-hover #bilibili_pbp_canvas.pin{opacity:1!important}.disable-original-hover #bilibili_pbp_pin{opacity:0!important}.disable-original-hover.touch-video-control-show .bilibili-player-video-control-bottom,.disable-original-hover.touch-video-control-show .bilibili-player-video-control-mask{opacity:1!important;visibility:visible!important}.disable-original-hover.touch-video-control-show #bilibili_pbp,.disable-original-hover.touch-video-control-show #bilibili_pbp_canvas{bottom:calc(100% + 3px)!important;opacity:1!important}.disable-original-hover.touch-video-control-show #bilibili_pbp_pin{opacity:1!important}.disable-original-hover.touch-video-control-show .bilibili-player-video-progress-detail{bottom:0!important}.disable-original-hover.touch-video-control-show .bilibili-player-video-control-top{bottom:38px!important}.disable-original-hover .bilibili-player-video-control-wrap:hover .bilibili-player-video-control-top .bilibili-player-video-progress-slider,.disable-original-hover.bilibili-player-area.video-control-show .bilibili-player-video-control-top .bilibili-player-video-progress-slider{height:2px!important}.disable-original-hover.bilibili-player-area .bilibili-player-video-control .bilibili-player-video-progress-detail.show{bottom:1px!important}.disable-original-hover.bilibili-player-area .subtitle-position.subtitle-position-bc,.disable-original-hover.bilibili-player-area .subtitle-position.subtitle-position-bl,.disable-original-hover.bilibili-player-area .subtitle-position.subtitle-position-br{bottom:20px!important}.disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-bc,.disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-bl,.disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-br{bottom:44px!important}.bilibili-player.mode-fullscreen .disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-bc,.bilibili-player.mode-fullscreen .disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-bl,.bilibili-player.mode-fullscreen .disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-br,.bilibili-player.mode-webfullscreen .disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-bc,.bilibili-player.mode-webfullscreen .disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-bl,.bilibili-player.mode-webfullscreen .disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-br{bottom:60px!important}.disable-original-hover .bilibili-player:not(.mode-webfullscreen):not(.mode-fullscreen) .bilibili-player-area:not(.disable-original-hover) .bilibili-player-video-control-wrap:hover .bilibili-player-video-control-top .bilibili-player-video-progress-slider,.disable-original-hover .bilibili-player:not(.mode-webfullscreen):not(.mode-fullscreen) .bilibili-player-area:not(.disable-original-hover).video-control-show .bilibili-player-video-control-top .bilibili-player-video-progress-slider{height:74px!important}.bilibili-player.mode-fullscreen .disable-original-hover .bilibili-player-video-control-top{opacity:1!important}@media screen and (min-width:750px){.bilibili-player.mode-fullscreen .bilibili-player-video-btn-pagelist::before,.bilibili-player.mode-webfullscreen .bilibili-player-video-btn-pagelist::before{font-size:26px}.bilibili-player.mode-fullscreen .bilibili-player-video-control-wrap .bilibili-player-video-inputbar,.bilibili-player.mode-webfullscreen .bilibili-player-video-control-wrap .bilibili-player-video-inputbar{background:#fff1!important}.bilibili-player.mode-fullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control,.bilibili-player.mode-webfullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control{height:100%!important;margin:0!important}.bilibili-player.mode-fullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-bottom,.bilibili-player.mode-webfullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-bottom{margin:0!important}.bilibili-player.mode-fullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-bottom-left,.bilibili-player.mode-webfullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-bottom-left{height:100%!important}.bilibili-player.mode-fullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-top,.bilibili-player.mode-webfullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-top{left:0!important;right:0!important}.bilibili-player-video-btn.bilibili-player-video-btn-start{flex-grow:.5!important}.player .bilibili-player.mode-fullscreen .disable-original-hover .bilibili-player-video-control-top,.player .bilibili-player.mode-webfullscreen .disable-original-hover .bilibili-player-video-control-top{left:0!important;right:0!important;bottom:0!important}.player .bilibili-player.mode-fullscreen .disable-original-hover.touch-video-control-show .bilibili-player-video-control-top,.player .bilibili-player.mode-webfullscreen .disable-original-hover.touch-video-control-show .bilibili-player-video-control-top{left:0!important;right:0!important;bottom:54px!important}.player .bilibili-player.mode-fullscreen .bilibili-player-area.mouse-hover:not(.disable-original-hover) .bilibili-player-video-control-top,.player .bilibili-player.mode-fullscreen .bilibili-player-area.video-control-show:not(.disable-original-hover) .bilibili-player-video-control-top,.player .bilibili-player.mode-webfullscreen .bilibili-player-area.mouse-hover:not(.disable-original-hover) .bilibili-player-video-control-top,.player .bilibili-player.mode-webfullscreen .bilibili-player-area.video-control-show:not(.disable-original-hover) .bilibili-player-video-control-top{left:0!important;right:0!important;bottom:48px!important}}`; offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/touch-player.min.js"] = (()=>{return(t,e)=>{const i=t=>{let e=0;let i=0;while(t&&!isNaN(t.offsetLeft)&&!isNaN(t.offsetTop)){e+=t.offsetLeft-t.scrollLeft;i+=t.offsetTop-t.scrollTop;t=t.offsetParent}return{x:e,y:i}};const s=t=>{t=Math.abs(t);const e=Math.floor(t/3600);const i=Math.floor((t-e*3600)/60);const s=t-e*3600-i*60;let o=fixed(s)+"秒";if(i>0){o=i+"分"+o}if(e>0){o=e+"时"+o}return o};const o=t=>{t=Math.abs(t);const e=Math.floor(t/3600);const i=Math.floor((t-e*3600)/60);const s=t-e*3600-i*60;let o=(s<10?"0":"")+fixed(s);o=(i<10?"0":"")+i+":"+o;o=(e<10?"0":"")+e+":"+o;return o};class n{constructor(t){this.action=new l(t);this.onTouchStart=null;this.onTouchEnd=null;this.direction=null;t.addEventListener("touchstart",t=>{this.xDown=t.touches[0].clientX;this.yDown=t.touches[0].clientY;if(this.onTouchStart){this.onTouchStart(t)}});t.addEventListener("touchmove",e=>{if(!this.xDown||!this.yDown){return}const s=e.touches[0].clientX;const o=e.touches[0].clientY;const n=i(t);const l={x:(e.touches[0].pageX-n.x)/t.clientWidth,y:(e.touches[0].pageY-n.y)/t.clientHeight,width:t.clientWidth,height:t.clientHeight};const a=this.xDown-s;const c=this.yDown-o;if(!this.direction){let t="";if(Math.abs(a)>Math.abs(c)){t="horizontal"}else{t="vertical"}this.direction=t}else{if(this.direction==="vertical"){this.action.startAction(this.direction,c,l)}else if(this.direction==="horizontal"){this.action.startAction(this.direction,-a,l)}}if(e.cancelable){e.preventDefault()}});t.addEventListener("touchend",t=>{this.xDown=null;this.yDown=null;this.direction=null;if(this.onTouchEnd){this.onTouchEnd(t)}})}}class l{constructor(t){this.lowSpeedForward=null;this.lowSpeedBackward=null;this.mediumSpeedForward=null;this.mediumSpeedBackward=null;this.highSpeedForward=null;this.highSpeedBackward=null;this.volumeUp=null;this.volumeDown=null;this.brightnessUp=null;this.brightnessDown=null;this.speedCancel=null;this.minSwipeDistance=20;this.onActionStart=null;this.onActionEnd=null;this.element=t;this.touchStart=false;this.startPosition=null;this.lastAction=null;t.addEventListener("touchstart",()=>{this.touchStart=true});t.addEventListener("touchend",()=>{this.startPosition=null;this.onActionEnd&&this.onActionEnd(this.lastAction);this.lastAction=null})}startAction(t,e,i){if(this.touchStart){this.onActionStart&&this.onActionStart(t);this.startPosition=i;this.touchStart=false}if(t==="vertical"){let t;let s;if(this.startPosition.x<1/2){t=this.brightnessUp;s=this.brightnessDown;const o=Math.round(200*(e-this.minSwipeDistance)/(1.5*i.height));if(e>0){t&&t(o)}else{s&&s(o)}this.lastAction={type:"brightness",brightness:o}}else{t=this.volumeUp;s=this.volumeDown;const o=Math.round(200*(e-this.minSwipeDistance)/(1.5*i.height));if(e>0){t&&t(o)}else{s&&s(o)}this.lastAction={type:"volume",volume:o}}}else if(t==="horizontal"){if(i.y<1/3&&(i.x<.1||i.x>.9)){this.speedCancel&&this.speedCancel();this.lastAction=null}else{let t=0;let i;let s;if(this.startPosition.y<1/3){t=.05;i=this.lowSpeedForward;s=this.lowSpeedBackward}else if(this.startPosition.y>=1/3&&this.startPosition.y<=2/3){t=.2;i=this.mediumSpeedForward;s=this.mediumSpeedBackward}else{t=1;i=this.highSpeedForward;s=this.highSpeedBackward}if(e>0){const s=(e-this.minSwipeDistance)*t;i&&i(s);this.lastAction={type:"playback",seconds:s}}else{const i=(e+this.minSwipeDistance)*t;s&&s(i);this.lastAction={type:"playback",seconds:i}}}}}}class a{constructor(){this.aid=unsafeWindow.aid;this.cid=unsafeWindow.cid;this.cidData=null;this.supportWebp=a.supportWebp}getVideoshot(t,e){if(!(this.aid&&this.cid)){return}if(!this.cidData){Ajax.getText(`https://api.bilibili.com/x/player/videoshot?aid=${this.aid}&cid=${this.cid}&index=1`).then(i=>{this.cidData=JSON.parse(i).data;this.getVideoshot(t,e)})}else{const i=this.cidData;const s=i.index;let o=0;for(let e=0;e=s[e]&&tt.replace(".jpg",".jpg@.webp"))}const l=parseInt(i.pv_x_len)||10;const a=parseInt(i.pv_y_len)||10;const c=parseInt(i.pv_x_size)||160;const r=parseInt(i.pv_y_size)||90;const h=-(o%100%l)*c;const d=-Math.floor(o%100/a)*r;e({width:c,height:r,backgroundImage:`url(${n[Math.floor(o/100)]})`,backgroundPosition:`${h}px ${d}px`})}}static get supportWebp(){try{const t=document.createElement("canvas");if(t.getContext&&t.getContext("2d")){try{return t.toDataURL("image/webp").indexOf("data:image/webp")===0}catch(t){return false}}else{return false}}catch(t){return false}}}function c(t){t.unbind("click")}function r(t){if($(".touch-video-box").length!==0){return}$(".bilibili-player-video-subtitle").before(`\n
\n
\n
\n
\n
\n\n
\n
\n\n
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n
`);let e=$("video");const i=e.prop("duration");const l=new n(t.get(0));const c=document.querySelector(".touch-video-info");const r=document.querySelector(".touch-video-box");const h=50;let d=100;let u=Math.round(e.prop("volume")*100);const p=_.debounce(t=>{t/=100;if(t<0){t=0}else if(t>1){t=1}e.prop("volume",t);$(".bilibili-player-video-volume-num").text(Math.round(t*100));$(".bui-thumb").css("transform",`translateY(-${48*t}px)`);$(".bui-track-vertical .bui-bar").css("transform",`scaleY(${t})`);if(t===0){$(".bilibili-player-video-btn-volume").addClass("video-state-volume-min");$(".bilibili-player-video-btn-volume").removeClass("video-state-volume-max");e.prop("muted",true)}else if(t===1){$(".bilibili-player-video-btn-volume").removeClass("video-state-volume-min");$(".bilibili-player-video-btn-volume").addClass("video-state-volume-max");e.prop("muted",false)}else{$(".bilibili-player-video-btn-volume").removeClass("video-state-volume-min");$(".bilibili-player-video-btn-volume").removeClass("video-state-volume-max");e.prop("muted",false)}},h);l.action.onActionStart=(t=>{r.classList.add("adjust-opened");c.classList[t==="vertical"?"remove":"add"]("speed");e=$("video");u=Math.round(e.prop("volume")*100);const i=e.css("filter").match(/brightness\((.+)\)/);d=Math.trunc((i?i[1]:1)*100)});const v=new a;const f=t=>{return n=>{const l=e.prop("currentTime");const a=fixed(100*l/i);let r=l+n;let h=fixed(100*r/i);let d=n;if(r>i){r=i;h=100;d=i-l}else if(r<0){r=0;h=0;d=l}const u=`${o(l)} (${a}%)
👇
${o(r)} (${h}%)`;c.classList.remove("cancel");c.querySelector(".touch-speed").innerHTML=`${t}速`;c.querySelector(".touch-info").innerHTML=`进度: ${n>0?"+":"-"}${s(d)}`;c.querySelector(".touch-result").innerHTML=u;v.getVideoshot(r,t=>$(".videoshot").css(t));$(".touch-progress").css("width",`${h}%`)}};l.action.lowSpeedBackward=f("低");l.action.lowSpeedForward=f("低");l.action.mediumSpeedBackward=f("中");l.action.mediumSpeedForward=f("中");l.action.highSpeedBackward=f("高");l.action.highSpeedForward=f("高");const b=t=>{let e=u+t;let i=Math.abs(t);if(e>100){e=100;i=100-u}else if(e<0){e=0;i=u}const s=`${u} 👉 ${e}`;p(e);c.classList.remove("cancel");c.querySelector(".touch-info").innerHTML=`音量: ${t>0?"+":"-"}${i}`;c.querySelector(".touch-result").innerHTML=s;$(".touch-progress").css("width",`${e}%`)};l.action.volumeUp=b;l.action.volumeDown=b;const m=_.debounce(t=>{e.css("filter",`brightness(${t/100})`)},h);const w=t=>{let e=d+t;let i=Math.abs(t);if(e<0){e=0;i=d}const s=`${d} 👉 ${e}`;m(e);c.classList.remove("cancel");c.querySelector(".touch-info").innerHTML=`亮度: ${t>0?"+":"-"}${i}`;c.querySelector(".touch-result").innerHTML=s;$(".touch-progress").css("width",`${e>100?100:e}%`)};l.action.brightnessUp=w;l.action.brightnessDown=w;l.action.speedCancel=(()=>{c.querySelector(".touch-info").innerHTML=`取消时间调整`;c.classList.add("cancel")});l.action.onActionEnd=(t=>{if(!unsafeWindow.touchPlayerDebug){if(t){if(t.type==="playback"){let s=e.prop("currentTime");s+=t.seconds;if(s<0){s=0}else if(s>i){s=i}e.prop("currentTime",s)}else if(t.type==="volume"){const t=JSON.parse(localStorage.bilibili_player_settings);t.video_status.volume=e.prop("volume");localStorage.bilibili_player_settings=JSON.stringify(t)}}r.classList.remove("adjust-opened")}})}function h(t){if(!t.hasClass("disable-original-hover")){t.addClass("disable-original-hover");const e=unsafeWindow.$(".bilibili-player-video");const i="touch-video-control-show";const s=e.data("events").click[0].handler;const o=new DoubleClickEvent(t=>s(t),()=>t.toggleClass(i));e.unbind("click");o.bind(e[0])}}const d=()=>{SpinQuery.any(()=>$(".bilibili-player-iconfont,.bilibili-player-video-quality-menu"),c);SpinQuery.condition(()=>$(".bilibili-player-video"),t=>t.length>0&&$("video").length>0&&$("video").prop("duration"),r);if(t.touchVideoPlayerDoubleTapControl){new SpinQuery(()=>$(".bilibili-player-area"),t=>t.length>0&&unsafeWindow.$&&unsafeWindow.$(".bilibili-player-video").data("events"),h).start()}};Observer.videoChange(d);e.applyStyle("touchPlayerStyle")}})(); offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/trending-videos.min.js"] = (()=>{return(t,e)=>{const i=async(t,e)=>{const i=await Ajax.getJsonWithCredentials(`https://api.bilibili.com/x/web-interface/ranking/index?day=${t}`);if(i.code!==0){throw new Error(i.message)}return i.data.map(e=>({id:e.aid+"-"+t,aid:parseInt(e.aid),title:e.title,upID:e.mid,upName:e.author,coverUrl:e.pic.replace("http://","https://"),description:e.description,durationText:e.duration,playCount:formatCount(e.play),coins:formatCount(e.coins),favorites:formatCount(e.favorites),watchlater:true}))};return{export:{getTrendingVideos:i}}}})(); -offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/trending-videos.vue.min.js"] = (()=>{return(a,n)=>{const t=`
热门
{{tab.name}}
`;n.applyStyleFromText(`.simple-home .trendings{display:flex;flex-direction:column}.simple-home .trendings .header{padding:0 8px}.simple-home .trendings .contents{--card-width:200px;--card-height:250px;--card-count:3;margin-top:16px;display:flex;overflow:auto;height:calc(var(--card-height) + 16px);width:calc((var(--card-width) + 16px) * var(--card-count));scroll-snap-type:x mandatory;scrollbar-width:none!important}@media screen and (max-width:1300px) and (min-width:900px){.simple-home .trendings .contents{--card-count:2}}@media screen and (max-width:1100px) and (min-width:900px){.simple-home .trendings .contents{--card-count:1}}@media screen and (min-width:1550px){.simple-home .trendings .contents{--card-count:4}}@media screen and (min-width:1850px){.simple-home .trendings .contents{--card-count:5}}.simple-home .trendings .contents::-webkit-scrollbar{width:0!important;height:0!important}.simple-home .trendings .contents .card-wrapper{padding:0 8px;scroll-snap-align:start;flex-shrink:0}`,"trending-videos-style");const e=[{name:"今日",day:1,url:"https://www.bilibili.com/ranking/all/0/0/1"},{name:"三日",day:3,url:"https://www.bilibili.com/ranking"},{name:"一周",day:7,url:"https://www.bilibili.com/ranking/all/0/0/7"}];return{export:Object.assign({template:t},{components:{VideoCard:()=>n.importAsync("video-card.vue")},data(){return{tabs:e,currentTab:e[0],trendingCards:[]}},watch:{currentTab(a){this.updateTrendingTab(a)}},methods:{async updateTrendingTab(a){const{getTrendingVideos:t}=await n.importAsync("trending-videos");this.trendingCards=await t(a.day)},changeTab(a){if(this.currentTab===a){open(a.url,"_blank")}else{this.currentTab=a}}},mounted(){this.updateTrendingTab(this.currentTab)}})}}})(); +offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/trending-videos.vue.min.js"] = (()=>{return(a,t)=>{const n=`
热门
{{tab.name}}
`;t.applyStyleFromText(`.simple-home .trendings{display:flex;flex-direction:column}.simple-home .trendings .header{padding:0 8px}.simple-home .trendings .contents{--card-width:200px;--card-height:250px;--card-count:3;margin-top:16px;display:flex;overflow:auto;height:calc(var(--card-height) + 16px);width:calc((var(--card-width) + 16px) * var(--card-count));scroll-snap-type:x mandatory;scrollbar-width:none!important}@media screen and (max-width:1300px) and (min-width:900px){.simple-home .trendings .contents{--card-count:2}}@media screen and (max-width:1100px) and (min-width:900px){.simple-home .trendings .contents{--card-count:1}}@media screen and (min-width:1550px){.simple-home .trendings .contents{--card-count:4}}.simple-home .trendings .contents::-webkit-scrollbar{width:0!important;height:0!important}.simple-home .trendings .contents .card-wrapper{padding:0 8px;scroll-snap-align:start;flex-shrink:0}`,"trending-videos-style");const i=[{name:"今日",day:1,url:"https://www.bilibili.com/ranking/all/0/0/1"},{name:"三日",day:3,url:"https://www.bilibili.com/ranking"},{name:"一周",day:7,url:"https://www.bilibili.com/ranking/all/0/0/7"}];return{export:Object.assign({template:n},{components:{VideoCard:()=>t.importAsync("video-card.vue")},data(){return{tabs:i,currentTab:i[0],trendingCards:[]}},watch:{currentTab(a){this.updateTrendingTab(a)}},methods:{async updateTrendingTab(a){const{getTrendingVideos:n}=await t.importAsync("trending-videos");this.trendingCards=await n(a.day)},changeTab(a){if(this.currentTab===a){open(a.url,"_blank")}else{this.currentTab=a}}},mounted(){this.updateTrendingTab(this.currentTab)}})}}})(); offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/tweets.min.css"] = `.nav-search-submit{display:block!important;color:var(--foreground-color-d)!important;transform:translateX(-125px);-webkit-tap-highlight-color:transparent}.nav-search-submit:hover{color:var(--foreground-color)!important}#nav_searchform{transition:.3s ease-out;box-shadow:none;width:0!important;padding:0!important}.preserve-rank>a{opacity:0!important;pointer-events:none}.showSearch .preserve-rank>a{opacity:.382!important;pointer-events:initial}.showSearch #nav_searchform{box-shadow:0 2px 10px 1px #0002;width:250px!important}.showSearch .nav-search-submit,.showSearch .nav-search-submit:hover{color:#888!important;transform:none}@media only screen and (max-width:1291px){.showSearch #nav_searchform{width:140px!important}}`; offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/url-params-clean.min.js"] = (()=>{return(e,t)=>{const o=["spm_id_from","from_source","from","seid","share_source","share_medium"];const r=()=>{const e=location.search.substring(1).split("&");const t=e.filter(e=>{if(o.some(t=>e.startsWith(`${t}=`))){return false}return true});if(e.length!==t.length){const e=t.join("&");const o=document.URL.replace(location.search,e?"?"+e:"");console.log("[URL params clean]",document.URL,o);history.replaceState({},document.title,o)}};Observer.videoChange(()=>r())}})(); offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/v-checkbox.vue.min.js"] = (()=>{return(e,c)=>{const i=`
{{title}}
`;c.applyStyleFromText(`.v-checkbox{font-size:10pt;cursor:pointer;display:flex;align-items:center}.v-checkbox .mdi{font-size:15pt;line-height:1}.v-checkbox .content{flex-grow:1;text-align:left;padding:0 8px}.v-checkbox .mdi-checkbox-marked-circle{color:var(--theme-color);position:absolute;top:0;left:0;transform:scale(0);transition-timing-function:cubic-bezier(.6,-.28,.74,.05)}.v-checkbox .mdi-checkbox-blank-circle-outline{color:#8884;position:relative}.v-checkbox.checked .mdi-checkbox-blank-circle-outline{color:var(--theme-color)}.v-checkbox.checked .mdi-checkbox-marked-circle{transform:scale(1);transition-timing-function:cubic-bezier(.18,.89,.32,1.28)}`,"v-checkbox-style");return{export:Object.assign({template:i},{props:["checked","title"],methods:{toggleCheck(){this.$emit("update:checked",!this.checked)}}})}}})(); diff --git a/bilibili-evolved.preview.user.js b/bilibili-evolved.preview.user.js index e5278ba59..3b42c8ec2 100644 --- a/bilibili-evolved.preview.user.js +++ b/bilibili-evolved.preview.user.js @@ -1224,8 +1224,8 @@ onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/m onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/min/show-dead-video-title.min.js"] = (()=>{return(e,t)=>{(async()=>{if(!document.URL.startsWith("https://space.bilibili.com")){return}class t{}class i extends t{convertToDeadVideoInfo(e,t){return{aid:e,title:t.title,cover:t.pic}}async queryInfo(e){const t=[];if(e.length<=i.MaxCountPerRequest){const s=await Ajax.getJson(`${i.BiliplusHost}/api/aidinfo?aid=${e.join(",")}`);if(s.code===0){t.push(...e.map(e=>{if(e in s.data){return this.convertToDeadVideoInfo(e,s.data[e])}else{return{aid:e,title:"已失效视频",cover:""}}}))}else{console.error(`[显示失效视频信息] Biliplus API 未成功. message=${s.message}`)}}else{t.push(...await this.queryInfo(e.slice(0,i.MaxCountPerRequest)));t.push(...await this.queryInfo(e.slice(i.MaxCountPerRequest)))}return t}}i.BiliplusHost=`https://hd.biliplus.com`;i.MaxCountPerRequest=30;class s extends t{async toggleWatchlater(e,t){for(const i of t){await Ajax.postTextWithCredentials(`https://api.bilibili.com/x/v2/history/toview/${e?"add":"del"}`,`aid=${i}&csrf=${getCsrf()}}`)}}async queryInfo(e){const t=[];await this.toggleWatchlater(true,e);const i=await Ajax.getJsonWithCredentials("https://api.bilibili.com/x/v2/history/toview/web");if(i.code===0){const s=i.data.list.map(e=>{return{aid:e.aid.toString(),title:e.title,cover:e.pic}});t.push(...e.map(e=>s.find(t=>t.aid===e)).filter(e=>e!==undefined));await this.toggleWatchlater(false,e)}else{console.error(`[显示失效视频信息] 稍后再看 API 未成功. message=${i.message}`)}return t}}const a=await SpinQuery.select("#app>.s-space");if(!a){return}Observer.childListSubtree(a,async()=>{const t=dqa(".disabled[data-aid]");if(t.length===0){return}const a=t.map(e=>e.getAttribute("data-aid"));const o=e.deadVideoTitleProvider==="BiliPlus"?new i:new s;const r=await o.queryInfo(a);console.log(`[显示失效视频信息]`,`deadVideos:`,t,`infos:`,r);t.forEach((t,i)=>{t.classList.remove("disabled");const s=t.getAttribute("data-aid");const a=(()=>{if(e.useBiliplusRedirect){return`https://hd.biliplus.com/video/av${s}`}else{return`//www.bilibili.com/video/av${s}`}})();const o=r.find(e=>e.aid===s);console.log(`[显示失效视频信息]`,"#"+i,o);if(o===undefined){console.error(`[显示失效视频信息]信息获取失败, aid=${s}`);return}const n=t.querySelector("a.cover");n.target="_blank";n.href=a;if(o.cover!==""){n.querySelector("img").src=o.cover.replace("http:","https:")}const l=t.querySelector("a.title");l.target="_blank";l.title=o.title;l.href=a;l.innerText=o.title})})})()}})(); onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/min/simple-home.vue.min.js"] = (()=>{return(e,o)=>{const t=`
`;o.applyStyleFromText(`.simple-home{--title-color:black;color:#444;display:grid;grid-template-areas:"blackboards trendings trendings" "feeds feeds info" "categories categories categories";grid-template-columns:repeat(3,auto);grid-template-rows:repeat(3,auto);column-gap:32px;row-gap:16px}.simple-home,.simple-home *{transition:.2s ease-out}body.dark .simple-home{--title-color:white;color:#ddd}.simple-home .jump-dots{grid-area:dots;align-self:center;justify-self:center}.simple-home .jump-dots label{display:block}.simple-home .jump-dots label:not(:last-child){margin-bottom:6px}.simple-home .jump-dots .jump-dot{background-color:#ddd;width:8px;height:20px;border-radius:8px;cursor:pointer}body.dark .simple-home .jump-dots .jump-dot{background-color:#444}.simple-home .hidden-input{display:none}.simple-home .hidden-input:checked:nth-of-type(1)~.jump-dots label:nth-child(1) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(1)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 0 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(2)~.jump-dots label:nth-child(2) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(2)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 1 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(3)~.jump-dots label:nth-child(3) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(3)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 2 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(4)~.jump-dots label:nth-child(4) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(4)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 3 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(5)~.jump-dots label:nth-child(5) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(5)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 4 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(6)~.jump-dots label:nth-child(6) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(6)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 5 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(7)~.jump-dots label:nth-child(7) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(7)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 6 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(8)~.jump-dots label:nth-child(8) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(8)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 7 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(9)~.jump-dots label:nth-child(9) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(9)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 8 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(10)~.jump-dots label:nth-child(10) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(10)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 9 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(11)~.jump-dots label:nth-child(11) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(11)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 10 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(12)~.jump-dots label:nth-child(12) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(12)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 11 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(13)~.jump-dots label:nth-child(13) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(13)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 12 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(14)~.jump-dots label:nth-child(14) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(14)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 13 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(15)~.jump-dots label:nth-child(15) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(15)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 14 * var(--blackboard-height)))}.simple-home .more,.simple-home .toggle-reorder{cursor:pointer;padding:4px 12px 4px 8px;display:flex;align-items:center;border-radius:16px;font-size:13px;font-weight:700}.simple-home .more .be-icon,.simple-home .toggle-reorder .be-icon{margin-right:8px;transition:.3s cubic-bezier(.25,.46,.45,.94);font-size:22px;font-weight:400}.simple-home .more:not(.toggle-reorder):hover .be-icon,.simple-home .toggle-reorder:not(.toggle-reorder):hover .be-icon{transform:rotate(180deg)}.simple-home .more,.simple-home .more.hover,.simple-home .toggle-reorder,.simple-home .toggle-reorder.hover{color:inherit!important;background-color:#ddd!important}body.dark .simple-home .more,body.dark .simple-home .more:hover,body.dark .simple-home .toggle-reorder,body.dark .simple-home .toggle-reorder:hover{color:inherit!important;background-color:#333!important}.simple-home .header{grid-area:header;display:flex;justify-content:space-between;align-items:center}.simple-home .header .title{color:var(--title-color);font-weight:700;font-size:22px}.simple-home .header .tabs{display:flex;align-items:center}.simple-home .header .tabs .tab{cursor:pointer;position:relative;white-space:nowrap}.simple-home .header .tabs .tab .tab-name{opacity:.5;font-size:14px}.simple-home .header .tabs .tab:not(:last-child){margin-right:24px}.simple-home .header .tabs .tab::after{content:"";width:calc(80%);height:3px;border-radius:2px;position:absolute;background-color:var(--theme-color);left:10%;bottom:-6px;transform:scaleX(0);transition:.2s ease-out}.simple-home .header .tabs .tab.active::after{transform:scaleX(1)}.simple-home .header .tabs .tab.active .tab-name{font-weight:700;opacity:1;transform:scale(1.1)}.simple-home .sub-header{color:var(--title-color);font-weight:700;font-size:18px;display:flex;align-items:center}.simple-home .sub-header::before{content:"";display:block;width:12px;height:12px;background-color:var(--theme-color);border-radius:50%;margin-right:8px}.simple-home .blackboards{grid-area:blackboards;justify-self:start}.simple-home .trendings{grid-area:trendings;transform:translateX(8px);justify-self:end}.simple-home .info-row{grid-area:info;justify-self:end}.simple-home .feeds{grid-area:feeds;transform:translateX(-8px);justify-self:start}.simple-home .categories{grid-area:categories;padding-bottom:32px}@media screen and (max-width:900px){.simple-home{grid-template-areas:"blackboards" "trendings" "info" "feeds" "categories";grid-template-columns:1fr;grid-template-rows:repeat(5,auto)}.simple-home .blackboards,.simple-home .categories,.simple-home .feeds,.simple-home .info-row,.simple-home .trendings{justify-self:center}}`,"simple-home-style");return{export:Object.assign({template:t},{components:{Blackboards:()=>o.importAsync("blackboard.vue"),TrendingVideos:()=>o.importAsync("trending-videos.vue"),InfoRow:()=>o.importAsync("online-info-row.vue"),Feeds:()=>o.importAsync("simple-home-feeds.vue"),Categories:()=>o.importAsync("simple-home-categories.vue")}})}}})(); onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/min/simple-home-categories.vue.min.js"] = (()=>{return(e,t)=>{const r=`
分区
{{t.name}}
{{reordering ? '完成' : '排序'}}
`;t.applyStyleFromText(`.simple-home .categories{display:flex;flex-direction:column}.simple-home .categories,.simple-home .categories *,.simple-home .categories ::after,.simple-home .categories ::before{transition:.2s ease-out}.simple-home .categories .header .tabs{display:flex;flex:1 1 0;margin:0 32px;justify-content:space-between;overflow:auto;width:0;height:42px;scrollbar-width:none!important}.simple-home .categories .header .tabs::-webkit-scrollbar{height:0!important;width:0!important}.simple-home .categories .header .tabs .tab{transition:none;margin-right:24px}.simple-home .categories .category-content{margin-top:12px;margin-bottom:36px}.simple-home .categories .category-content-enter,.simple-home .categories .category-content-leave-to{opacity:0}`,"simple-home-categories-style");const o={anime:"动画",bangumi:"番剧",china:"国创",manga:"漫画",music:"音乐",dance:"舞蹈",game:"游戏",tech:"科技",digital:"数码",life:"生活",kichiku:"鬼畜",fashion:"时尚",ads:"广告",entertainment:"娱乐",column:"专栏",movie:"电影",tv:"TV剧",film:"影视",documentary:"纪录片"};return{export:Object.assign({template:r},{components:{Icon:()=>t.importAsync("icon.vue"),NormalCategory:()=>t.importAsync("simple-home-normal-category.vue")},data(){return{tabs:Object.entries(o).map(([e,t])=>{return{key:e,name:t}}),selectedTab:Object.entries(e.simpleHomeCategoryOrders).sort((e,t)=>e[1]-t[1])[0][0],reordering:false,reorder:null,regionCodes:null}},async mounted(){const r=this.$refs.reorderContainer;const{RegionCodes:o}=await t.importAsync("category-regions");this.regionCodes=o;const{Reorder:i}=await t.importAsync("reorder");const s=new i(r);this.reorder=s;s.addEventListener("reorder",t=>{const r=t.detail;for(const t of r){const{element:r,order:o}=t;e.simpleHomeCategoryOrders[r.getAttribute("data-key")]=o}e.simpleHomeCategoryOrders=e.simpleHomeCategoryOrders})},methods:{getOrder(t){return e.simpleHomeCategoryOrders[t]}},computed:{content(){if(["bangumi","china"].includes(this.selectedTab)){return null}else if(this.selectedTab==="manga"){return null}else if(this.selectedTab==="column"){return null}else{return"NormalCategory"}},rid(){if(!this.regionCodes){return-1}else{return this.regionCodes[this.selectedTab]}}}})}}})(); -onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/min/simple-home-feeds.vue.min.js"] = (()=>{return(e,t)=>{const a=``;t.applyStyleFromText(`.simple-home .feeds{justify-self:start;display:grid;grid-template-areas:"header header" "contents contents";grid-template-columns:repeat(2,auto);grid-template-rows:repeat(2,auto);row-gap:16px;column-gap:16px}.simple-home .feeds .header,.simple-home .feeds .sub-header{padding:0 8px}.simple-home .feeds .header .tab:nth-child(2),.simple-home .feeds .sub-header .tab:nth-child(2){margin-left:32px}.simple-home .feeds .header .online,.simple-home .feeds .sub-header .online{padding:8px 16px;height:32px;border-radius:16px;background-color:#8882;color:inherit;font-size:12px;display:flex;align-items:center;box-sizing:border-box}.simple-home .feeds .contents{grid-area:contents;display:flex;overflow:auto;--card-width:200px;--card-height:250px;--card-count:3;width:calc((var(--card-width) + 16px) * var(--card-count));padding-bottom:16px;scroll-snap-type:x mandatory;scrollbar-width:none!important;min-height:var(--card-height)}@media screen and (min-width:1100px){.simple-home .feeds .contents{--card-count:4}}@media screen and (min-width:1300px){.simple-home .feeds .contents{--card-count:5}}@media screen and (min-width:1550px){.simple-home .feeds .contents{--card-count:6}}@media screen and (min-width:1850px){.simple-home .feeds .contents{--card-count:7}}.simple-home .feeds .contents::-webkit-scrollbar{width:0!important;height:0!important}.simple-home .feeds .contents .card-wrapper{padding:0 8px;scroll-snap-align:start;flex-shrink:0}`,"simple-home-feeds-style");const i=[{name:"视频",type:"video",url:"https://t.bilibili.com/?tab=8"},{name:"番剧",type:"bangumi",url:"https://t.bilibili.com/?tab=512"}];return{export:Object.assign({template:a},{components:{VideoCard:()=>t.importAsync("video-card.vue"),Icon:()=>t.importAsync("icon.vue")},data(){return{online:"--",tabs:i,currentTab:i[0],feedCards:[]}},watch:{currentTab(e){this.updateFeedCards(e)}},methods:{async updateFeedCards(e){const{getVideoFeeds:a}=await t.importAsync("feeds-apis");this.feedCards=await a(e.type)},changeTab(e){if(this.currentTab===e){open(e.url,"_blank")}else{this.currentTab=e}}},async mounted(){this.updateFeedCards(this.currentTab);const e=await Ajax.getJson("https://api.bilibili.com/x/web-interface/online");if(e.code===0){this.online=e.data.web_online}}})}}})(); -onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/min/simple-home-normal-category.vue.min.js"] = (()=>{return(i,e)=>{const t=``;e.applyStyleFromText(`.category-view{--loading-from:#d4d4d4;--loading-to:#ddd;--rank-width:420px;--rank-height:250px;--slideshow-ratio:1.2;display:grid;grid-template:"new-activity rank" 1fr "new-post rank" 1fr/1fr var(--rank-width);grid-gap:24px;gap:24px;position:relative;--card-height:calc((8 * 34px + 20px + 1.5 * var(--rank-height)) / 2 - 32px);--card-width:calc(var(--card-height) * (42 / 25))}@media screen and (max-width:1800px){.category-view{--slideshow-ratio:1.2;--rank-width:390px;--rank-height:232.1428571429px}}@media screen and (max-width:1700px){.category-view{--slideshow-ratio:1.1333333333;--rank-width:360px;--rank-height:214.2857142857px}}@media screen and (max-width:1600px){.category-view{--slideshow-ratio:1.0666666667;--rank-width:330px;--rank-height:196.4285714286px}}@media screen and (max-width:1500px){.category-view{--slideshow-ratio:1;--rank-width:300px;--rank-height:178.5714285714px}}@media screen and (max-width:1400px){.category-view{--slideshow-ratio:0.9333333333;--rank-width:270px;--rank-height:160.7142857143px}}@media screen and (max-width:1300px){.category-view{--slideshow-ratio:0.8666666667;--rank-width:240px;--rank-height:142.8571428571px}}@media screen and (max-width:1200px){.category-view{--slideshow-ratio:0.8;--rank-width:210px;--rank-height:125px}}@media screen and (max-width:1000px){.category-view{--slideshow-ratio:0.8;--rank-width:210px;--rank-height:125px}}@media screen and (max-width:900px){.category-view{--slideshow-ratio:0.7333333333;--rank-width:180px;--rank-height:107.1428571429px}}@media screen and (max-width:800px){.category-view{--slideshow-ratio:0.6666666667;--rank-width:150px;--rank-height:89.2857142857px}}@media screen and (max-width:700px){.category-view{--slideshow-ratio:0.6;--rank-width:120px;--rank-height:71.4285714286px}}.category-view,.category-view *,.category-view ::after,.category-view ::before{transition:.2s ease-out}@keyframes normal-category-loading{from{background-color:var(--loading-from)}to{background-color:var(--loading-to)}}body.dark .category-view{--loading-from:#333;--loading-to:#262626}.category-view .loading{opacity:0;pointer-events:none;border-radius:16px;animation:.64s ease-in-out infinite alternate normal-category-loading;position:absolute}.category-view .area-header{grid-area:header;display:flex;align-items:center;justify-content:flex-start;font-weight:700;font-size:11pt;margin-bottom:12px}.category-view .area-header::before{content:"";display:inline-flex;height:10px;width:10px;background-color:var(--theme-color);border-radius:50%;margin-right:8px}.category-view .rank{display:grid;width:var(--rank-width);justify-self:right;grid-template:"header header" auto "first first" calc(10px + var(--rank-height)) "second third" calc(var(--rank-height)/ 2 + 10px)/calc(var(--rank-width)/ 2) calc(var(--rank-width)/ 2)}.category-view .rank .rank-item{grid-column:1/3;box-shadow:0 4px 8px 0 #0001;background-color:#fff;color:inherit!important;position:relative}body.dark .category-view .rank .rank-item{background-color:#282828}.category-view .rank .rank-item .cover{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:16px;overflow:hidden}.category-view .rank .rank-item .cover img{width:100%;height:100%;object-fit:cover}.category-view .rank .rank-item:hover .cover img{transform:scale(1.05)}.category-view .rank .rank-item .rank-number{position:absolute;top:6px;left:6px;width:22px;height:22px;line-height:22px;border-radius:50%;box-sizing:border-box;text-align:center;font-weight:700;font-size:13px;z-index:9;background-color:#8884}.category-view .rank .rank-item .watchlater{position:absolute;top:6px;right:6px;width:22px;height:22px;border-radius:50%;box-sizing:border-box;z-index:9;background-color:#000a;color:#fff;display:flex;align-items:center;justify-content:center;opacity:0}.category-view .rank .rank-item:hover .watchlater{opacity:1}.category-view .rank .rank-item .be-icon{font-size:16px}.category-view .rank .rank-item .be-icon.mdi-fire{transform:scale(calc(18 / 16));margin-right:2px}.category-view .rank .rank-item:not(:first-child)>.title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700;font-size:13px;line-height:34px;padding:0 8px 0 34px;opacity:.9}.category-view .rank .rank-item:not(:first-child):hover{background-color:var(--theme-color-30)}.category-view .rank .rank-item:not(:first-child):hover>.title{opacity:1}.category-view .rank .rank-item:not(:first-child) .details{position:absolute;top:50%;right:calc(100% + 10px);transform:translateY(-50%);width:var(--rank-width);padding:4px;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;z-index:10;opacity:0;pointer-events:none}.category-view .rank .rank-item:not(:first-child) .details .title{font-weight:700;font-size:14px;line-height:1.5;color:#fff;padding:8px;z-index:10}.category-view .rank .rank-item:not(:first-child) .details .cover{overflow:hidden;background-color:#000}.category-view .rank .rank-item:not(:first-child) .details .cover img{filter:blur(16px) brightness(.5);transform:scale(1.5)}.category-view .rank .rank-item:not(:first-child) .details .stats,.category-view .rank .rank-item:not(:first-child) .details .up{z-index:10;display:flex;color:#fff}.category-view .rank .rank-item:not(:first-child) .details .stats .be-icon:not(.mdi-fire),.category-view .rank .rank-item:not(:first-child) .details .up .be-icon:not(.mdi-fire){margin:0 4px 0 8px}.category-view .rank .rank-item:not(:first-child) .details .up{justify-content:space-between;margin:0 10px 0 6px}.category-view .rank .rank-item:not(:first-child) .details .up>*{display:flex;align-items:center}.category-view .rank .rank-item:not(:first-child) .details .stats{margin:8px}.category-view .rank .rank-item:not(:first-child) .details .stats .be-icon:first-child{margin-left:0}.category-view .rank .rank-item:not(:first-child):hover .details{opacity:1}.category-view .rank .rank-item:first-child,.category-view .rank .rank-item:nth-child(2),.category-view .rank .rank-item:nth-child(3){border-radius:16px}.category-view .rank .rank-item:first-child .rank-number,.category-view .rank .rank-item:nth-child(2) .rank-number,.category-view .rank .rank-item:nth-child(3) .rank-number{background-color:var(--theme-color);color:var(--foreground-color);opacity:.9}.category-view .rank .rank-item:nth-child(4){border-radius:16px 16px 0 0}.category-view .rank .rank-item:nth-last-child(2){border-radius:0 0 16px 16px}.category-view .rank .rank-item:first-child{grid-area:first;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;margin-bottom:10px}.category-view .rank .rank-item:first-child .details{align-self:stretch}.category-view .rank .rank-item:first-child .cover::after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-image:linear-gradient(to top,#000c 0,transparent 100%);z-index:0}.category-view .rank .rank-item:first-child .title{font-weight:700;font-size:16px;line-height:1.5;color:#fff;padding:0 8px;z-index:10;white-space:nowrap;overflow:hidden;max-width:100%;text-overflow:ellipsis}.category-view .rank .rank-item:first-child .up{display:flex;align-self:stretch;justify-content:space-between;align-items:center;opacity:.75;color:#fff;padding:0 12px 0 6px;margin:4px 0 8px;z-index:10}.category-view .rank .rank-item:first-child .up>*{display:flex;align-items:center}.category-view .rank .rank-item:first-child .up .be-iconfont-up{margin-right:4px}.category-view .rank .rank-item:first-child .up .points{flex-shrink:0;margin-right:8px}.category-view .rank .rank-item:first-child .up .up-info{max-width:61%}.category-view .rank .rank-item:first-child .up .up-info .up-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:break-all}.category-view .rank .rank-item:first-child .stats{display:flex;justify-content:flex-start;align-items:center;color:#fff;opacity:0;padding:0 8px;position:absolute;bottom:8px;left:0;z-index:10}.category-view .rank .rank-item:first-child .stats .be-icon{margin:0 2px 0 8px}.category-view .rank .rank-item:first-child .stats .be-icon:first-child{margin-left:0}.category-view .rank .rank-item:first-child:hover .up{opacity:0}.category-view .rank .rank-item:first-child:hover .stats{opacity:.75}.category-view .rank .rank-item:nth-child(2){grid-area:second;margin-right:5px;margin-bottom:10px}.category-view .rank .rank-item:nth-child(3){grid-area:third;margin-left:5px;margin-bottom:10px}.category-view .new-activity{align-self:start;grid-area:new-activity}.category-view .new-post{align-self:end;grid-area:new-post}.category-view.new-activity-loading .new-activity.loading{position:static;opacity:1;pointer-events:initial;width:100%;height:100%}.category-view.new-activity-loading .new-activity:not(.loading){opacity:0;pointer-events:none}.category-view.new-post-loading .new-post.loading{position:static;opacity:1;pointer-events:initial;width:100%;height:100%}.category-view.new-post-loading .new-post:not(.loading){opacity:0;pointer-events:none}.category-view .rank{grid-area:rank}.category-view.rank-loading .rank.loading{position:static;opacity:1;pointer-events:initial;width:100%;height:100%}.category-view.rank-loading .rank:not(.loading){opacity:0;pointer-events:none}@media screen and (max-width:1100px){.category-view{--slideshow-ratio:0.8666666667;--rank-width:240px;--rank-height:142.8571428571px;grid-template:"new-activity" 1fr "new-post" 1fr "rank" auto/1fr}.category-view .rank{--rank-width:420px;--rank-height:250px}}`,"simple-home-normal-category-style");return{export:Object.assign({template:t},{components:{SlideshowCards:()=>e.importAsync("slideshow-cards.vue"),Icon:()=>e.importAsync("icon.vue"),DpiImg:()=>e.importAsync("dpi-img.vue")},store:store,filters:{bigNumber(i){return formatCount(i)}},props:{rid:{type:Number,required:true}},data(){return{newActivity:{error:false,loading:true,videos:[]},newPost:{error:false,loading:true,videos:[]},rank:{error:false,loading:true,videos:[]},loaded:false}},computed:{...Vuex.mapState(["watchlaterList"])},methods:{async loadCards(i,e,t){if(t===undefined){t=(i=>{const e=getUID();const t=_.get(i,"data.archives",[]);return t.map(i=>{return{id:i.aid,aid:i.aid,coverUrl:i.pic.replace("http:","https:"),title:i.title,upName:i.owner.name,upFaceUrl:i.owner.face.replace("http:","https:"),upID:i.owner.mid,playCount:i.stat.view,danmakuCount:i.stat.danmaku,like:i.stat.like,coins:i.stat.coin,description:i.desc,type:i.tname,watchlater:e?this.watchlaterList.includes(i.aid):null}})})}try{this[i].loading=true;const a=await Ajax.getJson(e);if(a.code!==0){this[i].error=true}this[i].videos=t(a)}catch(e){logError(e);this[i].error=true}finally{this[i].loading=false}},async loadNewActivity(){await this.loadCards("newActivity",`https://api.bilibili.com/x/web-interface/dynamic/region?ps=10&rid=${this.rid}`)},async loadNewPost(){await this.loadCards("newPost",`https://api.bilibili.com/x/web-interface/newlist?ps=10&rid=${this.rid}`)},async loadRank(){await this.loadCards("rank",`https://api.bilibili.com/x/web-interface/ranking/region?rid=${this.rid}&day=3&original=0`,i=>{const e=getUID();const t=i.data;return t.map(i=>{return{id:i.aid,aid:parseInt(i.aid),title:i.title,playCount:i.play,favorites:i.favorites,upID:i.mid,upName:i.author,description:i.description,coverUrl:i.pic.replace("http:","https:"),coins:i.coins,durationText:i.duration,points:i.pts,watchlater:e?this.watchlaterList.includes(parseInt(i.aid)):null}})})},...Vuex.mapActions(["toggleWatchlater"]),updateVideos(){this.loadNewActivity();this.loadNewPost();this.loadRank()}},watch:{rid(i){if(i>0){if(this.loaded){this.updateVideos()}}else{console.warn(`rid=${i}`)}}},mounted(){const i=new IntersectionObserver(()=>{this.updateVideos();this.loaded=true;i.disconnect()});i.observe(this.$el)}})}}})(); +onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/min/simple-home-feeds.vue.min.js"] = (()=>{return(e,t)=>{const a=``;t.applyStyleFromText(`.simple-home .feeds{justify-self:start;display:grid;grid-template-areas:"header header" "contents contents";grid-template-columns:repeat(2,auto);grid-template-rows:repeat(2,auto);row-gap:16px;column-gap:16px}.simple-home .feeds .header,.simple-home .feeds .sub-header{padding:0 8px}.simple-home .feeds .header .tab:nth-child(2),.simple-home .feeds .sub-header .tab:nth-child(2){margin-left:32px}.simple-home .feeds .header .online,.simple-home .feeds .sub-header .online{padding:8px 16px;height:32px;border-radius:16px;background-color:#8882;color:inherit;font-size:12px;display:flex;align-items:center;box-sizing:border-box}.simple-home .feeds .contents{grid-area:contents;display:flex;overflow:auto;--card-width:200px;--card-height:250px;--card-count:3;width:calc((var(--card-width) + 16px) * var(--card-count));padding-bottom:16px;scroll-snap-type:x mandatory;scrollbar-width:none!important;min-height:var(--card-height)}@media screen and (min-width:1100px){.simple-home .feeds .contents{--card-count:4}}@media screen and (min-width:1300px){.simple-home .feeds .contents{--card-count:5}}@media screen and (min-width:1550px){.simple-home .feeds .contents{--card-count:6}}.simple-home .feeds .contents::-webkit-scrollbar{width:0!important;height:0!important}.simple-home .feeds .contents .card-wrapper{padding:0 8px;scroll-snap-align:start;flex-shrink:0}`,"simple-home-feeds-style");const i=[{name:"视频",type:"video",url:"https://t.bilibili.com/?tab=8"},{name:"番剧",type:"bangumi",url:"https://t.bilibili.com/?tab=512"}];return{export:Object.assign({template:a},{components:{VideoCard:()=>t.importAsync("video-card.vue"),Icon:()=>t.importAsync("icon.vue")},data(){return{online:"--",tabs:i,currentTab:i[0],feedCards:[]}},watch:{currentTab(e){this.updateFeedCards(e)}},methods:{async updateFeedCards(e){const{getVideoFeeds:a}=await t.importAsync("feeds-apis");this.feedCards=await a(e.type)},changeTab(e){if(this.currentTab===e){open(e.url,"_blank")}else{this.currentTab=e}}},async mounted(){this.updateFeedCards(this.currentTab);const e=await Ajax.getJson("https://api.bilibili.com/x/web-interface/online");if(e.code===0){this.online=e.data.web_online}}})}}})(); +onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/min/simple-home-normal-category.vue.min.js"] = (()=>{return(i,e)=>{const t=``;e.applyStyleFromText(`.category-view{--loading-from:#d4d4d4;--loading-to:#ddd;--rank-width:370px;--rank-height:calc(var(--rank-width) / 16 * 9);--slideshow-ratio:0.6;--card-height:300px;--card-width:calc(var(--card-height) * (42 / 25));display:grid;grid-template:"new-activity rank" 1fr "new-post rank" 1fr/1fr calc(1.5 * var(--rank-width) + 10px);grid-row-gap:24px;row-gap:24px;grid-column-gap:32px;column-gap:32px;position:relative}@media screen and (max-width:1800px){.category-view{--card-height:288px;--rank-width:350px}}@media screen and (max-width:1700px){.category-view{--card-height:276px;--rank-width:330px}}@media screen and (max-width:1600px){.category-view{--card-height:264px;--rank-width:310px}}@media screen and (max-width:1500px){.category-view{--card-height:252px;--rank-width:290px}}@media screen and (max-width:1400px){.category-view{--card-height:240px;--rank-width:270px}}@media screen and (max-width:1200px){.category-view{--card-height:216px;--rank-width:230px}}@media screen and (max-width:1100px){.category-view{--card-height:204px;--rank-width:210px}}@media screen and (max-width:1000px){.category-view{--card-height:192px;--rank-width:190px}}@media screen and (max-width:900px){.category-view{--card-height:180px;--rank-width:170px}}@media screen and (max-width:800px){.category-view{--card-height:168px;--rank-width:150px}}@media screen and (max-width:700px){.category-view{--card-height:156px;--rank-width:130px}}.category-view,.category-view *,.category-view ::after,.category-view ::before{transition:.2s ease-out}@keyframes normal-category-loading{from{background-color:var(--loading-from)}to{background-color:var(--loading-to)}}body.dark .category-view{--loading-from:#333;--loading-to:#262626}.category-view .loading{opacity:0;pointer-events:none;border-radius:16px;animation:.64s ease-in-out infinite alternate normal-category-loading;position:absolute}.category-view .area-header{grid-area:header;display:flex;align-items:center;justify-content:flex-start;font-weight:700;font-size:11pt;margin-bottom:12px}.category-view .area-header::before{content:"";display:inline-flex;height:10px;width:10px;background-color:var(--theme-color);border-radius:50%;margin-right:8px}.category-view .rank{display:grid;width:calc(1.5 * var(--rank-width) + 10px);justify-self:right;grid-template:"header header" auto "first second" calc(var(--rank-height)/ 2 + 10px) "first third" calc(var(--rank-height)/ 2 + 10px)/calc(var(--rank-width)) calc(10px + var(--rank-width)/ 2)}.category-view .rank .rank-item{grid-column:1/3;box-shadow:0 4px 8px 0 #0001;background-color:#fff;color:inherit!important;position:relative}body.dark .category-view .rank .rank-item{background-color:#282828}.category-view .rank .rank-item .cover{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:16px;overflow:hidden}.category-view .rank .rank-item .cover img{width:100%;height:100%;object-fit:cover}.category-view .rank .rank-item:hover .cover img{transform:scale(1.05)}.category-view .rank .rank-item .rank-number{position:absolute;top:6px;left:6px;width:22px;height:22px;line-height:22px;border-radius:50%;box-sizing:border-box;text-align:center;font-weight:700;font-size:13px;z-index:9;background-color:#8884}.category-view .rank .rank-item .watchlater{position:absolute;top:6px;right:6px;width:22px;height:22px;border-radius:50%;box-sizing:border-box;z-index:9;background-color:#000a;color:#fff;display:flex;align-items:center;justify-content:center;opacity:0}.category-view .rank .rank-item:hover .watchlater{opacity:1}.category-view .rank .rank-item .be-icon{font-size:16px}.category-view .rank .rank-item .be-icon.mdi-fire{transform:scale(calc(18 / 16));margin-right:2px}.category-view .rank .rank-item:not(:first-child)>.title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700;font-size:13px;line-height:34px;padding:0 8px 0 34px;opacity:.9}.category-view .rank .rank-item:not(:first-child):hover{background-color:var(--theme-color-30)}.category-view .rank .rank-item:not(:first-child):hover>.title{opacity:1}.category-view .rank .rank-item:not(:first-child) .details{position:absolute;top:50%;right:calc(100% + 10px);transform:translateY(-50%);width:var(--rank-width);padding:4px;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;z-index:10;opacity:0;pointer-events:none}.category-view .rank .rank-item:not(:first-child) .details .title{font-weight:700;font-size:14px;line-height:1.5;color:#fff;padding:8px;z-index:10}.category-view .rank .rank-item:not(:first-child) .details .cover{overflow:hidden;background-color:#000}.category-view .rank .rank-item:not(:first-child) .details .cover img{filter:blur(16px) brightness(.5);transform:scale(1.5)}.category-view .rank .rank-item:not(:first-child) .details .stats,.category-view .rank .rank-item:not(:first-child) .details .up{z-index:10;display:flex;color:#fff}.category-view .rank .rank-item:not(:first-child) .details .stats .be-icon:not(.mdi-fire),.category-view .rank .rank-item:not(:first-child) .details .up .be-icon:not(.mdi-fire){margin:0 4px 0 8px}.category-view .rank .rank-item:not(:first-child) .details .up{justify-content:space-between;margin:0 10px 0 6px}.category-view .rank .rank-item:not(:first-child) .details .up>*{display:flex;align-items:center}.category-view .rank .rank-item:not(:first-child) .details .stats{margin:8px}.category-view .rank .rank-item:not(:first-child) .details .stats .be-icon:first-child{margin-left:0}.category-view .rank .rank-item:not(:first-child):hover .details{opacity:1}.category-view .rank .rank-item:first-child,.category-view .rank .rank-item:nth-child(2),.category-view .rank .rank-item:nth-child(3){border-radius:16px}.category-view .rank .rank-item:first-child .rank-number,.category-view .rank .rank-item:nth-child(2) .rank-number,.category-view .rank .rank-item:nth-child(3) .rank-number{background-color:var(--theme-color);color:var(--foreground-color);opacity:.9}.category-view .rank .rank-item:nth-child(4){border-radius:16px 16px 0 0}.category-view .rank .rank-item:nth-last-child(2){border-radius:0 0 16px 16px}.category-view .rank .rank-item:first-child{grid-area:first;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;margin-bottom:10px}.category-view .rank .rank-item:first-child .details{align-self:stretch}.category-view .rank .rank-item:first-child .cover::after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-image:linear-gradient(to top,#000c 0,transparent 100%);z-index:0}.category-view .rank .rank-item:first-child .title{font-weight:700;font-size:16px;line-height:1.5;color:#fff;padding:0 8px;z-index:10;white-space:nowrap;overflow:hidden;max-width:100%;text-overflow:ellipsis}.category-view .rank .rank-item:first-child .up{display:flex;align-self:stretch;justify-content:space-between;align-items:center;opacity:.75;color:#fff;padding:0 12px 0 6px;margin:4px 0 8px;z-index:10}.category-view .rank .rank-item:first-child .up>*{display:flex;align-items:center}.category-view .rank .rank-item:first-child .up .be-iconfont-up{margin-right:4px}.category-view .rank .rank-item:first-child .up .points{flex-shrink:0;margin-right:8px}.category-view .rank .rank-item:first-child .up .up-info{max-width:61%}.category-view .rank .rank-item:first-child .up .up-info .up-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:break-all}.category-view .rank .rank-item:first-child .stats{display:flex;justify-content:flex-start;align-items:center;color:#fff;opacity:0;padding:0 8px;position:absolute;bottom:8px;left:0;z-index:10}.category-view .rank .rank-item:first-child .stats .be-icon{margin:0 2px 0 8px}.category-view .rank .rank-item:first-child .stats .be-icon:first-child{margin-left:0}.category-view .rank .rank-item:first-child:hover .up{opacity:0}.category-view .rank .rank-item:first-child:hover .stats{opacity:.75}.category-view .rank .rank-item:nth-child(2){grid-area:second;margin-bottom:10px;margin-left:10px}.category-view .rank .rank-item:nth-child(3){grid-area:third;margin-bottom:10px;margin-left:10px}.category-view .new-activity{align-self:start;grid-area:new-activity}.category-view .new-post{align-self:end;grid-area:new-post}.category-view.new-activity-loading .new-activity.loading{position:static;opacity:1;pointer-events:initial;width:100%;height:100%}.category-view.new-activity-loading .new-activity:not(.loading){opacity:0;pointer-events:none}.category-view.new-post-loading .new-post.loading{position:static;opacity:1;pointer-events:initial;width:100%;height:100%}.category-view.new-post-loading .new-post:not(.loading){opacity:0;pointer-events:none}.category-view .rank{grid-area:rank}.category-view.rank-loading .rank.loading{position:static;opacity:1;pointer-events:initial;width:100%;height:100%}.category-view.rank-loading .rank:not(.loading){opacity:0;pointer-events:none}@media screen and (max-width:1300px){.category-view{--card-height:228px;--rank-width:250px;grid-template:"new-activity" 1fr "new-post" 1fr "rank" auto/1fr;--card-height:300px}.category-view .rank{--rank-width:420px;justify-self:center}}`,"simple-home-normal-category-style");return{export:Object.assign({template:t},{components:{SlideshowCards:()=>e.importAsync("slideshow-cards.vue"),Icon:()=>e.importAsync("icon.vue"),DpiImg:()=>e.importAsync("dpi-img.vue")},store:store,filters:{bigNumber(i){return formatCount(i)}},props:{rid:{type:Number,required:true}},data(){return{newActivity:{error:false,loading:true,videos:[]},newPost:{error:false,loading:true,videos:[]},rank:{error:false,loading:true,videos:[]},loaded:false}},computed:{...Vuex.mapState(["watchlaterList"])},methods:{async loadCards(i,e,t){if(t===undefined){t=(i=>{const e=getUID();const t=_.get(i,"data.archives",[]);return t.map(i=>{return{id:i.aid,aid:i.aid,coverUrl:i.pic.replace("http:","https:"),title:i.title,upName:i.owner.name,upFaceUrl:i.owner.face.replace("http:","https:"),upID:i.owner.mid,playCount:i.stat.view,danmakuCount:i.stat.danmaku,like:i.stat.like,coins:i.stat.coin,description:i.desc,type:i.tname,watchlater:e?this.watchlaterList.includes(i.aid):null}})})}try{this[i].loading=true;const a=await Ajax.getJson(e);if(a.code!==0){this[i].error=true}this[i].videos=t(a)}catch(e){logError(e);this[i].error=true}finally{this[i].loading=false}},async loadNewActivity(){await this.loadCards("newActivity",`https://api.bilibili.com/x/web-interface/dynamic/region?ps=10&rid=${this.rid}`)},async loadNewPost(){await this.loadCards("newPost",`https://api.bilibili.com/x/web-interface/newlist?ps=10&rid=${this.rid}`)},async loadRank(){await this.loadCards("rank",`https://api.bilibili.com/x/web-interface/ranking/region?rid=${this.rid}&day=3&original=0`,i=>{const e=getUID();const t=i.data;return t.map(i=>{return{id:i.aid,aid:parseInt(i.aid),title:i.title,playCount:i.play,favorites:i.favorites,upID:i.mid,upName:i.author,description:i.description,coverUrl:i.pic.replace("http:","https:"),coins:i.coins,durationText:i.duration,points:i.pts,watchlater:e?this.watchlaterList.includes(parseInt(i.aid)):null}})})},...Vuex.mapActions(["toggleWatchlater"]),updateVideos(){this.loadNewActivity();this.loadNewPost();this.loadRank()}},watch:{rid(i){if(i>0){if(this.loaded){this.updateVideos()}}else{console.warn(`rid=${i}`)}}},mounted(){const i=new IntersectionObserver(()=>{this.updateVideos();this.loaded=true;i.disconnect()});i.observe(this.$el)}})}}})(); onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/min/simplify-home.min.css"] = `#app>.bili-header-m.stardust-common>.bili-wrapper,#app>.bili-wrapper,#app>.elevator-module,.bili-header-m .head-banner .head-content .head-logo,.international-footer,.international-header .b-wrap,.international-home>:not(.international-header){display:none!important}`; onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/min/simplify-home.min.js"] = (()=>{return(e,i)=>{(async()=>{if(document.URL.replace(window.location.search,"")!=="https://www.bilibili.com/"){i.removeStyle("simplifyHomeStyle");return}document.body.insertAdjacentHTML("beforeend",`\n\n`);const m=new Vue({el:"simplify-home",components:{SimplifyHome:()=>i.importAsync("simplify-home.vue")},data:{homeStyle:e.simplifyHomeStyle}});addSettingsListener("simplifyHomeStyle",e=>m.homeStyle=e,false)})()}})(); onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/min/simplify-home.vue.min.js"] = (()=>{return(e,o)=>{const m=`
`;o.applyStyleFromText(`.simplify-home{padding-top:32px;display:flex;align-items:flex-start;justify-content:center;min-height:100vh;background-color:#f4f4f4}body.dark .simplify-home{background-color:#181818}.simplify-home .simplify-home-component{max-width:100%}html{scroll-behavior:smooth}`,"simplify-home-style");return{export:Object.assign({template:m},{components:{"minimal-home":()=>o.importAsync("minimal-home.vue"),"simple-home":()=>o.importAsync("simple-home.vue")},computed:{activeComponent(){return this.homeStyle==="清爽"?"simple-home":"minimal-home"}},props:{homeStyle:String}})}}})(); @@ -1233,7 +1233,7 @@ onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/m onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/min/simplify-liveroom.min.js"] = (()=>{return(e,i)=>{const s={vip:"老爷图标",fansMedal:"粉丝勋章",title:"活动头衔",userLevel:"用户等级",guard:"舰长图标",systemMessage:"全区广播",welcomeMessage:"欢迎信息",giftMessage:"礼物弹幕",guardPurchase:"上舰提示",giftPanel:"付费礼物",kanban:"看板娘",eventsBanner:"活动横幅",popup:"抽奖提示",skin:"房间皮肤"};class t{constructor(i,s){this.skinDisabled=e.simplifyLiveroomSettings.skin;this.skinSelectors=i;this.skinClass=s;i.forEach(e=>{SpinQuery.select(e,i=>{Observer.attributes(e,e=>{e.forEach(e=>{if(e.attributeName==="class"){if(this.skinDisabled&&i.classList.contains(s)){i.classList.remove(s)}else if(!this.skinDisabled&&!i.classList.contains(s)){i.classList.add(s)}}})})})})}setSkin(e){this.skinDisabled=!e;this.skinSelectors.forEach(i=>{SpinQuery.select(i,i=>i.classList[e?"add":"remove"](this.skinClass))})}}const n=[new t(["#head-info-vm","#gift-control-vm","#rank-list-vm","#rank-list-ctnr-box",".gift-panel.base-panel",".gift-panel.extend-panel",".seeds-wrap>div:first-child",".gift-section>div:last-child",".z-gift-package>div>div",".right-action"],"live-skin-coloration-area"),new t([".rank-list-ctnr .tabs"],"isHundred"),new t([".rank-list-ctnr .tab-content > div"],"hundred")];const a=(e,i)=>{document.body.classList[e?"add":"remove"](`simplify-${i}`);if(i==="skin"){n.forEach(i=>i.setSkin(!e))}};const c=()=>document.URL.startsWith(`https://live.bilibili.com/`);if(c()){Object.keys(s).forEach(i=>{const s=e.simplifyLiveroomSettings[i];a(s,i)})}return{widget:{condition:c,content:`\n
\n\n简化直播间\n\n
\n`,success:()=>{const i=document.querySelector("#simplify-liveroom");const t=document.querySelector(".gui-settings-mask");i.addEventListener("click",e=>{const i=document.querySelector(".simplify-liveroom-settings");if(i.contains(e.target)||e.target===i){return}i.classList.toggle("opened")});i.addEventListener("mouseenter",()=>t.classList.add("transparent"));i.addEventListener("mouseleave",()=>t.classList.remove("transparent"));new Vue({el:".simplify-liveroom-settings",data:{items:Object.entries(s).map(([i,s])=>{const t=e.simplifyLiveroomSettings[i];a(t,i);return{key:i,name:s,checked:t}})},methods:{itemClick(i){i.checked=!i.checked;a(i.checked,i.key);e.simplifyLiveroomSettings=Object.assign(e.simplifyLiveroomSettings,{[i.key]:i.checked})}}})}}}}})(); onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/min/skip-charge-list.min.css"] = `.bilibili-player .bilibili-player-area .bilibili-player-electric-panel{display:none!important}`; onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/min/skip-charge-list.min.js"] = (()=>{return(e,i)=>{async function n(){const e=await SpinQuery.select(()=>document.querySelector("video"));e&&e.addEventListener("ended",async()=>{const e=await SpinQuery.select(()=>document.querySelector(".bilibili-player-electric-panel-jump"));e&&e.click()})}if(Observer.videoChange){Observer.videoChange(n)}else{Observer.childList("#bofqi",n)}}})(); -onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/min/slideshow-cards.vue.min.js"] = (()=>{return(e,r)=>{const i=`
{{title}}
`;r.applyStyleFromText(`.slideshow-cards{display:grid;position:relative;grid-template:"header header header header" auto "cards . operations info" var(--card-height)/var(--card-width) 44px 1fr calc(var(--slideshow-ratio) * var(--card-width))}.slideshow-cards .error{grid-column:1/4;grid-row:2/3;align-self:stretch;justify-self:stretch}.slideshow-cards .operations{grid-area:operations;display:flex;flex-direction:column;align-self:center;justify-self:start}.slideshow-cards .operations>*{background-color:#ddd;border-radius:50%;border:none;display:flex;height:32px;width:32px;align-items:center;justify-content:center;box-sizing:border-box;margin-right:8px;cursor:pointer}.slideshow-cards .operations>:hover{background-color:#ccc}body.dark .slideshow-cards .operations>*{background-color:#333}body.dark .slideshow-cards .operations>:hover{background-color:#444}.slideshow-cards .operations>.checked{border:2px solid var(--theme-color)}.slideshow-cards .operations>* .be-icon{font-size:22px}.slideshow-cards .operations>:not(:last-child){margin-bottom:8px}.slideshow-cards .operations .play .be-icon{font-size:16px;transform:translateX(1.5px)}.slideshow-cards .operations .play,body.dark .slideshow-cards .operations .play{color:var(--foreground-color);background-color:var(--theme-color)}.slideshow-cards .operations .play:hover,body.dark .slideshow-cards .operations .play:hover{background-color:var(--theme-color-80)}.slideshow-cards .info{grid-area:info;display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between}.slideshow-cards .info>*{display:flex;align-items:center}.slideshow-cards .info .title{color:inherit!important;font-size:12pt;font-weight:700;text-align:right;display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.5;max-height:3em}.slideshow-cards .info .up{font-size:10pt;color:inherit!important}.slideshow-cards .info .up .face{border-radius:50%;width:24px;height:24px;margin-right:8px}.slideshow-cards .info .stat,.slideshow-cards .info .type{opacity:.75;align-items:center}.slideshow-cards .info .stat .be-icon,.slideshow-cards .info .type .be-icon{margin:0 4px 0 16px;font-size:12pt}.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:6;-webkit-box-orient:vertical;line-height:1.5;max-height:9em;flex-grow:1;white-space:pre-wrap;text-align:right;opacity:.75}.slideshow-cards .info .buttons .be-icon{font-weight:400}.slideshow-cards .info .buttons>button{outline:0!important;cursor:pointer}.slideshow-cards .info .buttons .refresh{background-color:#ddd;border-radius:50%;border:none;display:flex;height:32px;width:32px;align-items:center;justify-content:center;box-sizing:border-box;margin-right:8px;cursor:pointer}.slideshow-cards .info .buttons .refresh:hover{background-color:#ccc}body.dark .slideshow-cards .info .buttons .refresh{background-color:#333}body.dark .slideshow-cards .info .buttons .refresh:hover{background-color:#444}.slideshow-cards .info .buttons .refresh.checked{border:2px solid var(--theme-color)}.slideshow-cards .info .buttons .refresh .be-icon{transition-duration:.5s;transform:scale(.9)}.slideshow-cards .info .buttons .refresh:hover .be-icon{transform:scale(.9) rotate(360deg)}.slideshow-cards .info .buttons .previous{background-color:#ddd;border-radius:50%;border:none;display:flex;height:32px;width:32px;align-items:center;justify-content:center;box-sizing:border-box;margin-right:8px;cursor:pointer}.slideshow-cards .info .buttons .previous:hover{background-color:#ccc}body.dark .slideshow-cards .info .buttons .previous{background-color:#333}body.dark .slideshow-cards .info .buttons .previous:hover{background-color:#444}.slideshow-cards .info .buttons .previous.checked{border:2px solid var(--theme-color)}.slideshow-cards .info .buttons .previous .be-icon{transform:translateX(-1px)}.slideshow-cards .info .buttons .next{display:flex;align-items:center;padding:4px 6px 4px 12px;background-color:var(--theme-color);border:none;color:var(--foreground-color)!important;height:32px;box-sizing:border-box;line-height:normal;font-size:11pt;font-weight:700;border-radius:16px}.slideshow-cards .info .buttons .next:hover{background-color:var(--theme-color-80)}.slideshow-cards .slideshow-card{grid-area:cards;cursor:pointer;align-self:stretch;justify-self:stretch;position:absolute;top:0;left:0;width:100%;height:100%;background-color:#8882;border-radius:16px}.slideshow-cards .slideshow-card:not(:first-child){transform-origin:right}.slideshow-cards .slideshow-card:not(:nth-child(2)){pointer-events:none;transform:translateX(39px) scale(.45);opacity:0}.slideshow-cards .slideshow-card img{border-radius:16px;width:100%;height:100%;object-fit:cover}.slideshow-cards .slideshow-card:nth-child(1){z-index:7}.slideshow-cards .slideshow-card:nth-child(2){z-index:6;pointer-events:initial}.slideshow-cards .slideshow-card:nth-child(3){z-index:5}.slideshow-cards .slideshow-card:nth-child(4){z-index:4}.slideshow-cards .slideshow-card:nth-child(5){z-index:3}.slideshow-cards .slideshow-card:nth-child(6){z-index:2}.slideshow-cards .slideshow-card:nth-child(7){z-index:1}.slideshow-cards .slideshow-card:first-child{transform:translateX(-10%) scale(1.1);opacity:0}.slideshow-cards .slideshow-card:nth-child(3){transform:translateX(20px) scale(.9);opacity:.5}.slideshow-cards .slideshow-card:nth-child(4){transform:translateX(30px) scale(.75);opacity:.25}.slideshow-cards .slideshow-card:nth-child(5){transform:translateX(35px) scale(.65);opacity:.125}.slideshow-cards .slideshow-card:nth-child(6){transform:translateX(37.5px) scale(.5);opacity:.0625}@media screen and (max-width:1600px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical;line-height:1.5;max-height:6em}}@media screen and (max-width:1400px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical;line-height:1.5;max-height:4.5em}}@media screen and (max-width:1200px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.5;max-height:3em}}@media screen and (max-width:1050px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical;line-height:1.5;max-height:1.5em}}@media screen and (max-width:950px){.slideshow-cards .info .title{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical;line-height:1.5;max-height:1.5em}}`,"slideshow-cards-style");return{export:Object.assign({template:i},{components:{Icon:()=>r.importAsync("icon.vue"),DpiImg:()=>r.importAsync("dpi-img.vue")},store:store,filters:{bigNumber(e){return formatCount(e)}},props:["cards","error","title","showStat"],data(){return{cardQueue:[]}},methods:{...Vuex.mapActions(["toggleWatchlater"]),regenerateQueue(){if(this.cards.length<7){return}const e=[...this.cards];e.unshift(e.pop());this.cardQueue=e},previousCard(){this.cardQueue.unshift(this.cardQueue.pop())},nextCard(){this.cardQueue.push(this.cardQueue.shift())},refresh(){this.$emit("refresh")}},watch:{cards(){this.regenerateQueue()}},computed:{...Vuex.mapState(["watchlaterList"]),currentCard(){return this.cardQueue[1]}},mounted(){this.regenerateQueue()}})}}})(); +onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/min/slideshow-cards.vue.min.js"] = (()=>{return(e,r)=>{const i=`
{{title}}
`;r.applyStyleFromText(`.slideshow-cards{display:grid;position:relative;grid-template:"header header header header" auto "cards . operations info" var(--card-height)/var(--card-width) 48px auto calc(var(--card-width) * var(--slideshow-ratio))}.slideshow-cards .error{grid-column:1/4;grid-row:2/3;align-self:stretch;justify-self:stretch}.slideshow-cards .operations{grid-area:operations;display:flex;flex-direction:column;align-self:center;justify-self:start}.slideshow-cards .operations>*{background-color:#ddd;border-radius:50%;border:none;display:flex;height:32px;width:32px;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;margin-right:16px}.slideshow-cards .operations>:hover{background-color:#ccc}body.dark .slideshow-cards .operations>*{background-color:#333}body.dark .slideshow-cards .operations>:hover{background-color:#444}.slideshow-cards .operations>.checked{border:2px solid var(--theme-color)}.slideshow-cards .operations>* .be-icon{font-size:22px}.slideshow-cards .operations>:not(:last-child){margin-bottom:8px}.slideshow-cards .operations .play .be-icon{font-size:16px;transform:translateX(1.5px)}.slideshow-cards .operations .play,body.dark .slideshow-cards .operations .play{color:var(--foreground-color);background-color:var(--theme-color)}.slideshow-cards .operations .play:hover,body.dark .slideshow-cards .operations .play:hover{background-color:var(--theme-color-80)}.slideshow-cards .info{grid-area:info;display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between}.slideshow-cards .info>*{display:flex;align-items:center}.slideshow-cards .info .title{color:inherit!important;font-size:12pt;font-weight:700;text-align:right;display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.5;max-height:3em}.slideshow-cards .info .up{font-size:10pt;color:inherit!important}.slideshow-cards .info .up .face{border-radius:50%;width:24px;height:24px;margin-right:8px}.slideshow-cards .info .stat,.slideshow-cards .info .type{opacity:.75;align-items:center}.slideshow-cards .info .stat .be-icon,.slideshow-cards .info .type .be-icon{margin:0 4px 0 16px;font-size:12pt}.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:6;-webkit-box-orient:vertical;line-height:1.5;max-height:9em;flex-grow:1;white-space:pre-wrap;text-align:right;opacity:.75}.slideshow-cards .info .buttons .be-icon{font-weight:400}.slideshow-cards .info .buttons>button{outline:0!important;cursor:pointer}.slideshow-cards .info .buttons .refresh{background-color:#ddd;border-radius:50%;border:none;display:flex;height:32px;width:32px;align-items:center;justify-content:center;box-sizing:border-box;margin-right:8px;cursor:pointer}.slideshow-cards .info .buttons .refresh:hover{background-color:#ccc}body.dark .slideshow-cards .info .buttons .refresh{background-color:#333}body.dark .slideshow-cards .info .buttons .refresh:hover{background-color:#444}.slideshow-cards .info .buttons .refresh.checked{border:2px solid var(--theme-color)}.slideshow-cards .info .buttons .refresh .be-icon{transition-duration:.5s;transform:scale(.9)}.slideshow-cards .info .buttons .refresh:hover .be-icon{transform:scale(.9) rotate(360deg)}.slideshow-cards .info .buttons .previous{background-color:#ddd;border-radius:50%;border:none;display:flex;height:32px;width:32px;align-items:center;justify-content:center;box-sizing:border-box;margin-right:8px;cursor:pointer}.slideshow-cards .info .buttons .previous:hover{background-color:#ccc}body.dark .slideshow-cards .info .buttons .previous{background-color:#333}body.dark .slideshow-cards .info .buttons .previous:hover{background-color:#444}.slideshow-cards .info .buttons .previous.checked{border:2px solid var(--theme-color)}.slideshow-cards .info .buttons .previous .be-icon{transform:translateX(-1px)}.slideshow-cards .info .buttons .next{display:flex;align-items:center;padding:4px 6px 4px 12px;background-color:var(--theme-color);border:none;color:var(--foreground-color)!important;height:32px;box-sizing:border-box;line-height:normal;font-size:11pt;font-weight:700;border-radius:16px}.slideshow-cards .info .buttons .next:hover{background-color:var(--theme-color-80)}.slideshow-cards .slideshow-card{grid-area:cards;cursor:pointer;align-self:stretch;justify-self:stretch;position:absolute;top:0;left:0;width:100%;height:100%;background-color:#8882;border-radius:16px}.slideshow-cards .slideshow-card:not(:first-child){transform-origin:right}.slideshow-cards .slideshow-card:not(:nth-child(2)){pointer-events:none;transform:translateX(39px) scale(.45);opacity:0}.slideshow-cards .slideshow-card img{border-radius:16px;width:100%;height:100%;object-fit:cover}.slideshow-cards .slideshow-card:nth-child(1){z-index:7}.slideshow-cards .slideshow-card:nth-child(2){z-index:6;pointer-events:initial}.slideshow-cards .slideshow-card:nth-child(3){z-index:5}.slideshow-cards .slideshow-card:nth-child(4){z-index:4}.slideshow-cards .slideshow-card:nth-child(5){z-index:3}.slideshow-cards .slideshow-card:nth-child(6){z-index:2}.slideshow-cards .slideshow-card:nth-child(7){z-index:1}.slideshow-cards .slideshow-card:first-child{transform:translateX(-10%) scale(1.1);opacity:0}.slideshow-cards .slideshow-card:nth-child(3){transform:translateX(20px) scale(.9);opacity:.5}.slideshow-cards .slideshow-card:nth-child(4){transform:translateX(30px) scale(.75);opacity:.25}.slideshow-cards .slideshow-card:nth-child(5){transform:translateX(35px) scale(.65);opacity:.125}.slideshow-cards .slideshow-card:nth-child(6){transform:translateX(37.5px) scale(.5);opacity:.0625}@media screen and (max-width:1600px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical;line-height:1.5;max-height:6em}}@media screen and (max-width:1400px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical;line-height:1.5;max-height:4.5em}}@media screen and (max-width:1200px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.5;max-height:3em}}@media screen and (max-width:1050px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical;line-height:1.5;max-height:1.5em}}@media screen and (max-width:950px){.slideshow-cards .info .title{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical;line-height:1.5;max-height:1.5em}}`,"slideshow-cards-style");return{export:Object.assign({template:i},{components:{Icon:()=>r.importAsync("icon.vue"),DpiImg:()=>r.importAsync("dpi-img.vue")},store:store,filters:{bigNumber(e){return formatCount(e)}},props:["cards","error","title","showStat"],data(){return{cardQueue:[]}},methods:{...Vuex.mapActions(["toggleWatchlater"]),regenerateQueue(){if(this.cards.length<7){return}const e=[...this.cards];e.unshift(e.pop());this.cardQueue=e},previousCard(){this.cardQueue.unshift(this.cardQueue.pop())},nextCard(){this.cardQueue.push(this.cardQueue.shift())},refresh(){this.$emit("refresh")}},watch:{cards(){this.regenerateQueue()}},computed:{...Vuex.mapState(["watchlaterList"]),currentCard(){return this.cardQueue[1]}},mounted(){this.regenerateQueue()}})}}})(); onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/min/slip.min.js"] = (()=>{return(t,e)=>{const i=function(){"use strict";var t={container:{ariaRole:"listbox",tabIndex:0,focus:false},items:{ariaRole:"option",tabIndex:-1,focus:false}};var e=/Chrome\/[3-5]/.test(navigator.userAgent);var i=e;var n=e;var s=document.createElement("div").style;var o="transition"in s?"transition":"webkitTransition";var a="transform"in s?"transform":"webkitTransform";var r=a==="webkitTransform"?"-webkit-transform":"transform";var h="userSelect"in s?"userSelect":"webkitUserSelect";s[a]="translateZ(0)";var l=s[a]?"translateZ(0) ":"";var c=s[a]?"translateZ(1px) ":"";s=null;var u=0;var d=false;var f=function(){};function g(t,e){if("string"===typeof t)t=document.querySelector(t);if(!t||!t.addEventListener)throw new Error("Please specify DOM node to attach to");if(!this||this===window)return new g(t,e);this.options=e=e||{};this.options.keepSwipingPercent=e.keepSwipingPercent||0;this.options.minimumSwipeVelocity=e.minimumSwipeVelocity||1;this.options.minimumSwipeTime=e.minimumSwipeTime||110;this.options.ignoredElements=e.ignoredElements||[];if(!Array.isArray(this.options.ignoredElements))throw new Error("ignoredElements must be an Array");this.cancel=this.setState.bind(this,this.states.idle);this.onTouchStart=this.onTouchStart.bind(this);this.onTouchMove=this.onTouchMove.bind(this);this.onTouchEnd=this.onTouchEnd.bind(this);this.onMouseDown=this.onMouseDown.bind(this);this.onMouseMove=this.onMouseMove.bind(this);this.onMouseUp=this.onMouseUp.bind(this);this.onMouseLeave=this.onMouseLeave.bind(this);this.onSelection=this.onSelection.bind(this);this.onContainerFocus=this.onContainerFocus.bind(this);this.setState(this.states.idle);this.attach(t)}function m(t){var e=t.style[a];if(e){return{value:e,original:e}}if(window.getComputedStyle){var i=window.getComputedStyle(t).getPropertyValue(r);if(i&&i!=="none")return{value:i,original:""}}return{value:"",original:""}}function v(t,e){var i=0;var n=0;for(var s=0;s20&&t.y20){this.setState(this.states.idle)}if(t.x>t.y*1.2)return false},onLeave:function(){this.setState(this.states.idle)},onEnd:function(){var t=this.dispatch(this.target.originalTarget,"tap");this.setState(this.states.idle);return t}}},swipe:function t(){var e=false;var i=this.container;var n=v(this.target,this.container.childNodes);i.classList.add("slip-swiping-container");function s(){i.classList.remove("slip-swiping-container")}this.target.height=this.target.node.offsetHeight;return{leaveState:function(){if(e){this.animateSwipe(function(t){t.node.style[a]=t.baseTransform.original;if(this.dispatch(t.node,"afterswipe")){s();return true}else{this.animateToZero(undefined,t)}}.bind(this))}else{this.animateToZero(s)}},onMove:function(){var t=this.getTotalMovement();if(Math.abs(t.y)this.options.minimumSwipeVelocity&&t.time>this.options.minimumSwipeTime||this.options.keepSwipingPercent&&s>this.options.keepSwipingPercent;if(o){if(this.dispatch(this.target.node,"swipe",{direction:t.directionX,originalIndex:n})){e=true}}else{this.dispatch(this.target.node,"cancelswipe")}this.setState(this.states.idle);return!o}}},reorder:function e(){if(this.target.node.focus&&t.items.focus){this.target.node.focus()}this.target.height=this.target.node.offsetHeight;var i;if(this.options.ignoredElements.length){var s=this.container;var o=s.tagName.toLowerCase();if(s.getAttribute("id")){o="#"+s.getAttribute("id")}else if(s.classList.length){o+="."+s.getAttribute("class").replace(" ",".")}o+=" > ";this.options.ignoredElements.forEach(function(t){o+=":not("+t+")"});try{i=s.parentNode.querySelectorAll(o)}catch(t){if(t instanceof DOMException&&t.name==="SyntaxError")throw new Error("ignoredElements you specified contain invalid query");else throw t}}else{i=this.container.childNodes}var r=v(this.target,i);var u;var d=this.target.node.offsetTop+this.target.height/2;var f=[];for(var g=0;gt.y){n=e}else if(i.pos>0&&t.y>0&&i.post.y){break}}i=e}else{for(e=f.length-1;e>=0;e--){if(f[e].pos1){this.setState(this.states.idle);return}if(!this.setTarget(t))return;this.startAtPosition({x:t.touches[0].clientX,y:t.touches[0].clientY,time:t.timeStamp})},setTarget:function(t){var e=this.findTargetNode(t.target);if(!e){this.setState(this.states.idle);return false}var i=this.options.scrollContainer;if(!i){var n=document.scrollingElement||document.documentElement;i=e.parentNode;while(i){if(i==n)break;if(i!=document.body&&i.scrollHeight>i.clientHeight&&window.getComputedStyle(i)["overflow-y"]!="visible")break;i=i.parentNode}i=i||n}this.target={originalTarget:t.target,node:e,scrollContainer:i,origScrollTop:i.scrollTop,origScrollHeight:i.scrollHeight,baseTransform:m(e)};return true},startAtPosition:function(t){this.startPosition=this.previousPosition=this.latestPosition=t;this.setState(this.states.undecided)},updatePosition:function(t,e){if(this.target==null){return}this.latestPosition=e;if(this.state.onMove){if(this.state.onMove.call(this)===false){t.preventDefault()}}if(this.latestPosition.time-this.previousPosition.time>100){this.previousPosition=this.latestPosition}},onMouseMove:function(t){t.stopPropagation();this.updatePosition(t,{x:t.clientX,y:t.clientY,time:t.timeStamp})},onTouchMove:function(t){t.stopPropagation();this.updatePosition(t,{x:t.touches[0].clientX,y:t.touches[0].clientY,time:t.timeStamp});this.canPreventScrolling=false},onMouseUp:function(t){t.stopPropagation();if(this.usingTouch||t.button!==0)return;if(this.state.onEnd&&false===this.state.onEnd.call(this)){t.preventDefault()}},onTouchEnd:function(t){t.stopPropagation();if(t.touches.length>1){this.cancel()}else if(this.state.onEnd&&false===this.state.onEnd.call(this)){t.preventDefault()}},getTotalMovement:function(){var t=this.target.scrollContainer.scrollTop-this.target.origScrollTop;return{x:this.latestPosition.x-this.startPosition.x,y:this.latestPosition.y-this.startPosition.y+t,time:this.latestPosition.time-this.startPosition.time}},getAbsoluteMovement:function(){var t=this.getTotalMovement();return{x:Math.abs(t.x),y:Math.abs(t.y),time:t.time,directionX:t.x<0?"left":"right",directionY:t.y<0?"up":"down"}},updateScrolling:function(){var t=40,e=0;var i=this.target.scrollContainer,n=i.getBoundingClientRect(),s=this.target.node.getBoundingClientRect(),o=Math.min(n.bottom,window.innerHeight)-s.bottom,a=s.top-Math.max(n.top,0),r=this.target.origScrollHeight-Math.min(i.clientHeight,window.innerHeight);if(o0?"":"-")+"100%,0) "+l+e.baseTransform.value;setTimeout(function(){if(t.call(this,e)){i.forEach(function(t){t.node.style[a]=n+t.baseTransform.value});setTimeout(function(){i.forEach(function(t){t.node.style[a]="translate(0,0) "+l+t.baseTransform.value});setTimeout(function(){i.forEach(function(t){t.node.style[a]=t.baseTransform.original})},101)},1)}}.bind(this),101)}};if("function"===typeof define&&define.amd){define(function(){return g})}if("object"===typeof module&&module.exports){module.exports=g}return g}();return{export:{Slip:i}}}})(); onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/min/style.min.css"] = `.bili-wrapper{display:flex!important;justify-content:center!important;align-items:center!important;height:50px!important}.bili-header-m>.nav-menu,.link-navbar,.link-navbar .main-ctnr .nav-items-ctnr,.link-navbar-ctnr .link-navbar,.link-navbar-ctnr .link-navbar .main-ctnr .nav-items-ctnr,.nav-header-wrapper{background:var(--theme-color)!important}.bili-header-m>.nav-menu,.link-navbar-ctnr,.nav-header-wrapper{box-shadow:var(--theme-color-70) 0 2px 10px 1px!important}div.stardust-player{background:#fff!important}.nav-header-wrapper>.nav-header,.nav-mask{background-color:transparent!important}.link-navbar,.nav-mask{box-shadow:none!important}.nav-con{flex-grow:10!important;flex-shrink:0!important}.nav-con.fl{margin-left:-2em!important}.nav-search-box{margin:9px 0 0!important}.bili-header-m .nav-menu .nav-con .nav-item .t,.link-navbar .main-ctnr .custom-link>a,.link-navbar .main-ctnr .nav-logo,.link-navbar .main-ctnr .nav-switcher,.link-navbar .nav-item,.link-navbar .nav-item .icon-font,.link-navbar .nav-item.selected .label,.link-navbar .nav-item:hover,.my-link-btn,.nav-header-wrapper .nav-header .nav-header-mainsite,.nav-header-wrapper .nav-header .order-center,.shortcuts-ctnr,.shortcuts-ctnr .shortcut-item,.stardust-video .nav-menu .nav-con .nav-item.home .drop,.stardust-video .nav-menu .nav-con .nav-item.home .header-icon-Navbar_logo{color:var(--foreground-color-d)!important}.stardust-video .nav-menu .nav-con .nav-item.home .header-icon-Navbar_logo{transform:scale(.75)!important;top:7px!important}.stardust-video .nav-menu .up-load .up-nav{top:42px!important}.link-navbar .nav-item:hover,.link-navbar-ctnr .link-navbar .nav-item:hover,.link-navbar-ctnr .shortcuts-ctnr .shortcut-item:hover,.my-link-btn:hover,.publish-btn:hover,.shortcuts-ctnr .shortcut-item:hover,li.nav-item:not(.profile-info):hover{background-color:hsla(0,0%,var(--brightness),.2)!important}.link-navbar .nav-item:hover .nav-link .label,.my-link-btn .label:hover,.publish-btn:hover::after,.shortcuts-ctnr .shortcut-item .label-wrapper .text:hover,li.nav-item.home:hover{background:0 0!important}.vip-m{background:#fff!important}a.t>i.bili-icon,a.t>i.bili-icon-logo{width:50px!important;left:-60px!important;top:0!important;height:50px!important;background-position-y:12px!important}.link-navbar .nav-item:first-child::before,.main-ctnr .nav-logo:before,.nav-header-wrapper .nav-header .nav-header-logo,.nav-header-wrapper .nav-header .nav-header-tv-icon,.nav-header-wrapper .nav-header .order-icon,a.t>i.bili-icon,a.t>i.bili-icon-logo{filter:brightness(0) var(--invert-filter)!important;opacity:.81!important}#entryOld,.b-icon-app,.blp-red-tip::after,.main-container .entry-old,.nav-search-submit,.title-icon,body>#Header{display:none!important}.bilibili-player-video-inputbar{display:flex!important}.i-face>.face,.user-panel-ctnr .msg-hinter{box-shadow:0 0 2px 1.5px #0002!important}div.up-load{margin-top:8px!important;margin-left:9px!important;height:32px!important;order:4!important;flex-grow:0;flex-shrink:0}.stardust-video .nav-menu .nav-wrapper{padding:0 5rem!important}.publish-btn{height:40px!important;line-height:40px!important;background:var(--theme-color)!important;border:1px solid!important;border-radius:5px!important;box-shadow:none!important;top:calc(50% - 20px)!important;transition:.2s!important}.publish-panel{margin-top:7px!important}.my-link-btn{border-radius:0!important}.main-ctnr .search-bar-ctnr .search-bar input,.slot-ctnr a{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:0 2px 10px 1px #0002!important}.u-link{background:0 0!important;color:var(--foreground-color-d)!important;border-radius:4px!important;line-height:30px!important;height:30px!important;transition:background-color .2s!important}.shortcuts-ctnr .shortcut-item .hinter,.shortcuts-ctnr .shortcut-item .num-hinter,.u-link{border:1px solid!important}.u-link:hover{opacity:1!important;background-color:hsla(0,0%,var(--brightness),.2)!important}#nav_searchform,.stardust-video .nav-con .nav-search{width:130px!important}.stardust-video .nav-con .nav-search .nav-search-keyword{color:#222!important;width:120px!important;padding-right:32px}.nav-header-wrapper .nav-header .nav-header-search-bar,.stardust-video .nav-con #nav_searchform{border-radius:4px!important;background:#fffb!important;border:none!important;transition:background-color .2s!important;box-shadow:0 2px 10px 1px #0002;padding-right:0!important}.search-bar-ctnr .search-bar{background-color:#fffd!important;transition:.2s!important}.nav-header-wrapper .nav-header .nav-header-search-bar:focus-within,.nav-header-wrapper .nav-header .nav-header-search-bar:hover,.search-bar-ctnr .search-bar:focus-within,.search-bar-ctnr .search-bar:hover,.stardust-video .nav-con #nav_searchform:focus-within,.stardust-video .nav-con #nav_searchform:hover{background-color:#fff!important}#bilibiliPlayer{box-shadow:0 4px 16px 0 var(--theme-color-40)!important}.blur-bg{opacity:var(--blur-background-opacity)!important;filter:blur(20px)!important}.suggest-item .cancel{width:28px!important}.stardust-video .nav-con ul.bilibili-suggest{margin-left:-35px!important;width:200px!important}li.suggest-item>a{max-width:155px!important}.nav-item div.num{box-shadow:0 .5px 4px 0 #0004!important}#primary_menu,#primary_menu>ul.nav-menu{display:flex!important;align-items:center!important}.bilibili-player-video-btn-quality{width:auto!important;margin:0 6px!important}#primary_menu,div.nav-gif{padding:0!important}.filter-item.search,body{margin:0!important}.input-box textarea{padding:8px!important}.link-navbar .main-ctnr .nav-switcher.open-btn{filter:brightness(0) invert(1)!important;opacity:.8!important}.guard-rank-cntr.open .tip.rank-desc{visibility:visible!important}.guard-rank-cntr .rank-cntr .tip{visibility:hidden!important}.tag-container .tag-item .tag-border .tag-border-inner{width:100%!important}.bilibili-player-video-control{background-color:transparent!important}.mouse-hover .bilibili-player-video-control-top,.video-control-show .bilibili-player-video-control-top{left:0!important;right:0!important;bottom:32px!important}.bilibili-player-video-control-top{left:-12px!important;right:-12px!important;bottom:0!important}.bilibili-player .bilibili-player-area .bilibili-player-video-control-wrap{bottom:0!important}.showSearch .nav-search-submit{top:6px!important}.nav-header-wrapper .nav-header .nav-header-search-bar::placeholder,.search-bar-ctnr .search-bar .search-btn,.search-bar-ctnr .search-bar input::placeholder{color:#888!important}.card-list .card{border:none!important;border-radius:4px!important}@media only screen and (min-width:1291px){.nav-con{margin:0 1em!important}#nav_searchform,.stardust-video .nav-con .bilibili-suggest.nav,.stardust-video .nav-con .nav-search{width:250px!important}.stardust-video .nav-con .nav-search .nav-search-keyword{width:240px!important}.stardust-video .nav-con ul.bilibili-suggest{margin-left:0!important;width:250px!important}.stardust-video .nav-con li.suggest-item>a{max-width:205px!important}}@media screen and (min-width:750px){.player .bilibili-player.mode-fullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-top,.player .bilibili-player.mode-webfullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-top{left:-12px!important;right:-12px!important;bottom:0!important}.mode-fullscreen .bilibili-player-area.mouse-hover:not(.disable-original-hover) .bilibili-player-video-control-top,.mode-fullscreen .bilibili-player-area.video-control-show:not(.disable-original-hover) .bilibili-player-video-control-top,.mode-webfullscreen .bilibili-player-area.mouse-hover:not(.disable-original-hover) .bilibili-player-video-control-top,.mode-webfullscreen .bilibili-player-area.video-control-show:not(.disable-original-hover) .bilibili-player-video-control-top{left:0!important;right:0!important;bottom:42px!important}}`; onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/min/superchat-translate.min.css"] = `.chat-history-panel .chat-item.superChat-card-detail .input-contain .text{display:block!important}`; @@ -1248,7 +1248,7 @@ onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/m onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/min/touch-player.min.css"] = `.touch-video-box-wrapper{display:flex;align-items:center;justify-content:center;width:100%;height:100%;position:absolute;top:0;left:0;z-index:14;pointer-events:none}.touch-video-box{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:rgba(0,0,0,.85);position:relative;max-width:390px;max-height:180px;border:4px solid transparent;transform-origin:center}.round-corner .touch-speed,.round-corner .touch-video-box{border-radius:var(--corner-radius)}.touch-video-box-wrapper.simple{align-items:flex-start}.touch-video-box.animation{transition:.2s cubic-bezier(.18,.89,.32,1.28)}.touch-video-info{color:#fff;font-size:14pt;text-align:center;display:flex;align-items:center;justify-content:center;flex-direction:column;height:100%;width:100%}.touch-row{flex-grow:1;display:flex;align-items:center;justify-content:center;width:100%}.touch-info{display:block;color:var(--theme-color)}.touch-result{display:block;font-size:12pt;line-height:150%}.touch-speed{display:block;background:rgba(0,0,0,.1);padding:.5em}.touch-progress{position:absolute;bottom:0;left:0;background:var(--theme-color);width:0;height:4px}.round-corner .touch-progress{border-radius:2px}.touch-row-item{flex:1 0 0;display:none;align-items:center;justify-content:center}.touch-row-item-wide{flex:1.5 0 0;display:flex;align-items:center;justify-content:center}.videoshot{background-color:transparent;background-image:none;transform-origin:center;transform:scale(.9)}.adjust-closed{opacity:0;transform:scale(.9)}.adjust-opened{opacity:1;transform:scale(1)}.touch-video-info.speed .touch-row-item{display:flex}.touch-video-info.cancel .touch-progress,.touch-video-info.cancel .touch-result{opacity:0}.bilibili-player-video-control-top{left:0!important;right:0!important}.bilibili-player-video-control-top,.bilibili-player-video-progress-detail{bottom:0!important}div.bilibili-player-video-control{height:38px!important;align-items:center!important}.bilibili-player-video-btn{flex-grow:1!important;height:100%!important;display:flex!important;align-items:center!important;justify-content:center!important}.pbp-panel-icon-wrap{height:auto!important;display:flex!important;transform:translateY(-1px)!important}.bilibili-player-video-btn-pagelist .bilibili-player-video-btn-name{display:none!important}.bilibili-player-video-btn-pagelist::before{display:block;width:36px;color:#eee;content:"";font:22px/1 "Material Design Icons";text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.bilibili-player-video-inputbar,.bilibili-player-video-progress{flex-grow:30!important}.bilibili-player-video-quality-menu{display:flex!important;align-items:center!important;justify-content:center!important}.bilibili-player-iconfont-color,.bilibili-player-iconfont-danmaku,.bilibili-player-iconfont-danmaku-off,.bilibili-player-iconfont-fullscreen,.bilibili-player-iconfont-pause,.bilibili-player-iconfont-repeat,.bilibili-player-iconfont-setting,.bilibili-player-iconfont-start,.bilibili-player-iconfont-volume,.bilibili-player-iconfont-volume-max,.bilibili-player-iconfont-volume-min,.bilibili-player-iconfont-web-fullscreen,.bilibili-player-iconfont-widescreen{font-size:2.5rem!important}.bilibili-player-iconfont-next{font-size:2rem!important}.bilibili-player-video-btn-setting-panel,.bilibili-player-video-danmaku-setting-wrap,.bilibili-player.mode-fullscreen .bilibili-player-video-sendbar,.bpui-selectmenu-list{left:unset!important;bottom:38px!important}.bilibili-player-video-volumebar-wrp{left:unset!important}.bilibili-player-video-control-wrap{padding:0!important}.bilibili-player-video-control-bottom{padding:0!important;align-items:center!important}.bilibili-player-iconfont-next,.bilibili-player-iconfont-setting,.bilibili-player-video-btn-volume.video-state-volume-max .bilibili-player-iconfont-volume-max,.bilibili-player-video-btn-volume.video-state-volume-min .bilibili-player-iconfont-volume-min,.bilibili-player-video-btn-volume:not(.video-state-volume-max):not(.video-state-volume-min) .bilibili-player-iconfont-volume,.bilibili-player-video-control-bottom-left{display:flex!important;align-items:center!important}.bilibili-player-video-btn-danmaku{flex-grow:0!important;display:flex!important;align-items:center!important;height:100%!important;margin:0!important;padding:0!important}.bilibili-player.mode-webfullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-bottom-right{flex-grow:1!important}.bilibili-player.mode-fullscreen .bilibili-player-video-sendbar{bottom:0!important}.bilibili-player .bilibili-player-area #bilibili_pbp,.bilibili-player .bilibili-player-area #bilibili_pbp_canvas{left:0!important;width:100%!important}.bilibili-player .bilibili-player-area #bilibili_pbp_pin,.bilibili-player .bilibili-player-area .bilibili-player-video-control-wrap:hover #bilibili_pbp_pin{right:0!important}.bilibili-player .bilibili-player-area.video-control-show:not(.disable-original-hover) .bilibili-player-video-control-top{left:0!important;right:0!important;bottom:31px!important}.bilibili-player .bilibili-player-area.video-control-show:not(.disable-original-hover) #bilibili_pbp,.bilibili-player .bilibili-player-area.video-control-show:not(.disable-original-hover) #bilibili_pbp_canvas{bottom:calc(100% + 3px)!important}.bilibili-player .bilibili-player-area.video-control-show:not(.disable-original-hover) .bilibili-player-video-progress-detail{bottom:7px!important}.bilibili-player .bilibili-player-area .bilibili-player-video-control .bilibili-player-video-btn.bilibili-player-video-btn-fullscreen{margin-right:0!important;padding-right:8px!important}.bilibili-player .bilibili-player-area .bilibili-player-video-control .bilibili-player-video-btn.bilibili-player-video-btn-start{padding-left:8px!important;flex-grow:1.2!important;margin-right:0!important;margin-left:0!important}.bilibili-player .bilibili-player-area .bilibili-player-video-control .bilibili-player-video-btn{padding:0 3px!important}.bilibili-player .bilibili-player-area .bilibili-player-video-control-bottom,.bilibili-player .bilibili-player-area .bilibili-player-video-control-bottom-right,.bilibili-player-video-control-bottom-left{height:100%!important;margin:0!important}.bilibili-player-video-btn-setting-panel-hover-bridge{display:none!important}#bofqi *{-webkit-tap-highlight-color:transparent!important}.disable-original-hover .bilibili-player-video-control-bottom,.disable-original-hover .bilibili-player-video-control-mask{opacity:0!important;visibility:hidden!important}.disable-original-hover .bilibili-player-video-control-wrap{opacity:1!important;visibility:visible!important}.disable-original-hover .bilibili-player-video-control-top{left:0!important;right:0!important;bottom:0!important}.disable-original-hover #bilibili_pbp,.disable-original-hover #bilibili_pbp_canvas{left:0!important;width:100%!important;bottom:3px!important;opacity:0!important}.disable-original-hover #bilibili_pbp.pin,.disable-original-hover #bilibili_pbp_canvas.pin{opacity:1!important}.disable-original-hover #bilibili_pbp_pin{opacity:0!important}.disable-original-hover.touch-video-control-show .bilibili-player-video-control-bottom,.disable-original-hover.touch-video-control-show .bilibili-player-video-control-mask{opacity:1!important;visibility:visible!important}.disable-original-hover.touch-video-control-show #bilibili_pbp,.disable-original-hover.touch-video-control-show #bilibili_pbp_canvas{bottom:calc(100% + 3px)!important;opacity:1!important}.disable-original-hover.touch-video-control-show #bilibili_pbp_pin{opacity:1!important}.disable-original-hover.touch-video-control-show .bilibili-player-video-progress-detail{bottom:0!important}.disable-original-hover.touch-video-control-show .bilibili-player-video-control-top{bottom:38px!important}.disable-original-hover .bilibili-player-video-control-wrap:hover .bilibili-player-video-control-top .bilibili-player-video-progress-slider,.disable-original-hover.bilibili-player-area.video-control-show .bilibili-player-video-control-top .bilibili-player-video-progress-slider{height:2px!important}.disable-original-hover.bilibili-player-area .bilibili-player-video-control .bilibili-player-video-progress-detail.show{bottom:1px!important}.disable-original-hover.bilibili-player-area .subtitle-position.subtitle-position-bc,.disable-original-hover.bilibili-player-area .subtitle-position.subtitle-position-bl,.disable-original-hover.bilibili-player-area .subtitle-position.subtitle-position-br{bottom:20px!important}.disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-bc,.disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-bl,.disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-br{bottom:44px!important}.bilibili-player.mode-fullscreen .disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-bc,.bilibili-player.mode-fullscreen .disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-bl,.bilibili-player.mode-fullscreen .disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-br,.bilibili-player.mode-webfullscreen .disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-bc,.bilibili-player.mode-webfullscreen .disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-bl,.bilibili-player.mode-webfullscreen .disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-br{bottom:60px!important}.disable-original-hover .bilibili-player:not(.mode-webfullscreen):not(.mode-fullscreen) .bilibili-player-area:not(.disable-original-hover) .bilibili-player-video-control-wrap:hover .bilibili-player-video-control-top .bilibili-player-video-progress-slider,.disable-original-hover .bilibili-player:not(.mode-webfullscreen):not(.mode-fullscreen) .bilibili-player-area:not(.disable-original-hover).video-control-show .bilibili-player-video-control-top .bilibili-player-video-progress-slider{height:74px!important}.bilibili-player.mode-fullscreen .disable-original-hover .bilibili-player-video-control-top{opacity:1!important}@media screen and (min-width:750px){.bilibili-player.mode-fullscreen .bilibili-player-video-btn-pagelist::before,.bilibili-player.mode-webfullscreen .bilibili-player-video-btn-pagelist::before{font-size:26px}.bilibili-player.mode-fullscreen .bilibili-player-video-control-wrap .bilibili-player-video-inputbar,.bilibili-player.mode-webfullscreen .bilibili-player-video-control-wrap .bilibili-player-video-inputbar{background:#fff1!important}.bilibili-player.mode-fullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control,.bilibili-player.mode-webfullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control{height:100%!important;margin:0!important}.bilibili-player.mode-fullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-bottom,.bilibili-player.mode-webfullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-bottom{margin:0!important}.bilibili-player.mode-fullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-bottom-left,.bilibili-player.mode-webfullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-bottom-left{height:100%!important}.bilibili-player.mode-fullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-top,.bilibili-player.mode-webfullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-top{left:0!important;right:0!important}.bilibili-player-video-btn.bilibili-player-video-btn-start{flex-grow:.5!important}.player .bilibili-player.mode-fullscreen .disable-original-hover .bilibili-player-video-control-top,.player .bilibili-player.mode-webfullscreen .disable-original-hover .bilibili-player-video-control-top{left:0!important;right:0!important;bottom:0!important}.player .bilibili-player.mode-fullscreen .disable-original-hover.touch-video-control-show .bilibili-player-video-control-top,.player .bilibili-player.mode-webfullscreen .disable-original-hover.touch-video-control-show .bilibili-player-video-control-top{left:0!important;right:0!important;bottom:54px!important}.player .bilibili-player.mode-fullscreen .bilibili-player-area.mouse-hover:not(.disable-original-hover) .bilibili-player-video-control-top,.player .bilibili-player.mode-fullscreen .bilibili-player-area.video-control-show:not(.disable-original-hover) .bilibili-player-video-control-top,.player .bilibili-player.mode-webfullscreen .bilibili-player-area.mouse-hover:not(.disable-original-hover) .bilibili-player-video-control-top,.player .bilibili-player.mode-webfullscreen .bilibili-player-area.video-control-show:not(.disable-original-hover) .bilibili-player-video-control-top{left:0!important;right:0!important;bottom:48px!important}}`; onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/min/touch-player.min.js"] = (()=>{return(t,e)=>{const i=t=>{let e=0;let i=0;while(t&&!isNaN(t.offsetLeft)&&!isNaN(t.offsetTop)){e+=t.offsetLeft-t.scrollLeft;i+=t.offsetTop-t.scrollTop;t=t.offsetParent}return{x:e,y:i}};const s=t=>{t=Math.abs(t);const e=Math.floor(t/3600);const i=Math.floor((t-e*3600)/60);const s=t-e*3600-i*60;let o=fixed(s)+"秒";if(i>0){o=i+"分"+o}if(e>0){o=e+"时"+o}return o};const o=t=>{t=Math.abs(t);const e=Math.floor(t/3600);const i=Math.floor((t-e*3600)/60);const s=t-e*3600-i*60;let o=(s<10?"0":"")+fixed(s);o=(i<10?"0":"")+i+":"+o;o=(e<10?"0":"")+e+":"+o;return o};class n{constructor(t){this.action=new l(t);this.onTouchStart=null;this.onTouchEnd=null;this.direction=null;t.addEventListener("touchstart",t=>{this.xDown=t.touches[0].clientX;this.yDown=t.touches[0].clientY;if(this.onTouchStart){this.onTouchStart(t)}});t.addEventListener("touchmove",e=>{if(!this.xDown||!this.yDown){return}const s=e.touches[0].clientX;const o=e.touches[0].clientY;const n=i(t);const l={x:(e.touches[0].pageX-n.x)/t.clientWidth,y:(e.touches[0].pageY-n.y)/t.clientHeight,width:t.clientWidth,height:t.clientHeight};const a=this.xDown-s;const c=this.yDown-o;if(!this.direction){let t="";if(Math.abs(a)>Math.abs(c)){t="horizontal"}else{t="vertical"}this.direction=t}else{if(this.direction==="vertical"){this.action.startAction(this.direction,c,l)}else if(this.direction==="horizontal"){this.action.startAction(this.direction,-a,l)}}if(e.cancelable){e.preventDefault()}});t.addEventListener("touchend",t=>{this.xDown=null;this.yDown=null;this.direction=null;if(this.onTouchEnd){this.onTouchEnd(t)}})}}class l{constructor(t){this.lowSpeedForward=null;this.lowSpeedBackward=null;this.mediumSpeedForward=null;this.mediumSpeedBackward=null;this.highSpeedForward=null;this.highSpeedBackward=null;this.volumeUp=null;this.volumeDown=null;this.brightnessUp=null;this.brightnessDown=null;this.speedCancel=null;this.minSwipeDistance=20;this.onActionStart=null;this.onActionEnd=null;this.element=t;this.touchStart=false;this.startPosition=null;this.lastAction=null;t.addEventListener("touchstart",()=>{this.touchStart=true});t.addEventListener("touchend",()=>{this.startPosition=null;this.onActionEnd&&this.onActionEnd(this.lastAction);this.lastAction=null})}startAction(t,e,i){if(this.touchStart){this.onActionStart&&this.onActionStart(t);this.startPosition=i;this.touchStart=false}if(t==="vertical"){let t;let s;if(this.startPosition.x<1/2){t=this.brightnessUp;s=this.brightnessDown;const o=Math.round(200*(e-this.minSwipeDistance)/(1.5*i.height));if(e>0){t&&t(o)}else{s&&s(o)}this.lastAction={type:"brightness",brightness:o}}else{t=this.volumeUp;s=this.volumeDown;const o=Math.round(200*(e-this.minSwipeDistance)/(1.5*i.height));if(e>0){t&&t(o)}else{s&&s(o)}this.lastAction={type:"volume",volume:o}}}else if(t==="horizontal"){if(i.y<1/3&&(i.x<.1||i.x>.9)){this.speedCancel&&this.speedCancel();this.lastAction=null}else{let t=0;let i;let s;if(this.startPosition.y<1/3){t=.05;i=this.lowSpeedForward;s=this.lowSpeedBackward}else if(this.startPosition.y>=1/3&&this.startPosition.y<=2/3){t=.2;i=this.mediumSpeedForward;s=this.mediumSpeedBackward}else{t=1;i=this.highSpeedForward;s=this.highSpeedBackward}if(e>0){const s=(e-this.minSwipeDistance)*t;i&&i(s);this.lastAction={type:"playback",seconds:s}}else{const i=(e+this.minSwipeDistance)*t;s&&s(i);this.lastAction={type:"playback",seconds:i}}}}}}class a{constructor(){this.aid=unsafeWindow.aid;this.cid=unsafeWindow.cid;this.cidData=null;this.supportWebp=a.supportWebp}getVideoshot(t,e){if(!(this.aid&&this.cid)){return}if(!this.cidData){Ajax.getText(`https://api.bilibili.com/x/player/videoshot?aid=${this.aid}&cid=${this.cid}&index=1`).then(i=>{this.cidData=JSON.parse(i).data;this.getVideoshot(t,e)})}else{const i=this.cidData;const s=i.index;let o=0;for(let e=0;e=s[e]&&tt.replace(".jpg",".jpg@.webp"))}const l=parseInt(i.pv_x_len)||10;const a=parseInt(i.pv_y_len)||10;const c=parseInt(i.pv_x_size)||160;const r=parseInt(i.pv_y_size)||90;const h=-(o%100%l)*c;const d=-Math.floor(o%100/a)*r;e({width:c,height:r,backgroundImage:`url(${n[Math.floor(o/100)]})`,backgroundPosition:`${h}px ${d}px`})}}static get supportWebp(){try{const t=document.createElement("canvas");if(t.getContext&&t.getContext("2d")){try{return t.toDataURL("image/webp").indexOf("data:image/webp")===0}catch(t){return false}}else{return false}}catch(t){return false}}}function c(t){t.unbind("click")}function r(t){if($(".touch-video-box").length!==0){return}$(".bilibili-player-video-subtitle").before(`\n
\n
\n
\n
\n
\n\n
\n
\n\n
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n
`);let e=$("video");const i=e.prop("duration");const l=new n(t.get(0));const c=document.querySelector(".touch-video-info");const r=document.querySelector(".touch-video-box");const h=50;let d=100;let u=Math.round(e.prop("volume")*100);const p=_.debounce(t=>{t/=100;if(t<0){t=0}else if(t>1){t=1}e.prop("volume",t);$(".bilibili-player-video-volume-num").text(Math.round(t*100));$(".bui-thumb").css("transform",`translateY(-${48*t}px)`);$(".bui-track-vertical .bui-bar").css("transform",`scaleY(${t})`);if(t===0){$(".bilibili-player-video-btn-volume").addClass("video-state-volume-min");$(".bilibili-player-video-btn-volume").removeClass("video-state-volume-max");e.prop("muted",true)}else if(t===1){$(".bilibili-player-video-btn-volume").removeClass("video-state-volume-min");$(".bilibili-player-video-btn-volume").addClass("video-state-volume-max");e.prop("muted",false)}else{$(".bilibili-player-video-btn-volume").removeClass("video-state-volume-min");$(".bilibili-player-video-btn-volume").removeClass("video-state-volume-max");e.prop("muted",false)}},h);l.action.onActionStart=(t=>{r.classList.add("adjust-opened");c.classList[t==="vertical"?"remove":"add"]("speed");e=$("video");u=Math.round(e.prop("volume")*100);const i=e.css("filter").match(/brightness\((.+)\)/);d=Math.trunc((i?i[1]:1)*100)});const v=new a;const f=t=>{return n=>{const l=e.prop("currentTime");const a=fixed(100*l/i);let r=l+n;let h=fixed(100*r/i);let d=n;if(r>i){r=i;h=100;d=i-l}else if(r<0){r=0;h=0;d=l}const u=`${o(l)} (${a}%)
👇
${o(r)} (${h}%)`;c.classList.remove("cancel");c.querySelector(".touch-speed").innerHTML=`${t}速`;c.querySelector(".touch-info").innerHTML=`进度: ${n>0?"+":"-"}${s(d)}`;c.querySelector(".touch-result").innerHTML=u;v.getVideoshot(r,t=>$(".videoshot").css(t));$(".touch-progress").css("width",`${h}%`)}};l.action.lowSpeedBackward=f("低");l.action.lowSpeedForward=f("低");l.action.mediumSpeedBackward=f("中");l.action.mediumSpeedForward=f("中");l.action.highSpeedBackward=f("高");l.action.highSpeedForward=f("高");const b=t=>{let e=u+t;let i=Math.abs(t);if(e>100){e=100;i=100-u}else if(e<0){e=0;i=u}const s=`${u} 👉 ${e}`;p(e);c.classList.remove("cancel");c.querySelector(".touch-info").innerHTML=`音量: ${t>0?"+":"-"}${i}`;c.querySelector(".touch-result").innerHTML=s;$(".touch-progress").css("width",`${e}%`)};l.action.volumeUp=b;l.action.volumeDown=b;const m=_.debounce(t=>{e.css("filter",`brightness(${t/100})`)},h);const w=t=>{let e=d+t;let i=Math.abs(t);if(e<0){e=0;i=d}const s=`${d} 👉 ${e}`;m(e);c.classList.remove("cancel");c.querySelector(".touch-info").innerHTML=`亮度: ${t>0?"+":"-"}${i}`;c.querySelector(".touch-result").innerHTML=s;$(".touch-progress").css("width",`${e>100?100:e}%`)};l.action.brightnessUp=w;l.action.brightnessDown=w;l.action.speedCancel=(()=>{c.querySelector(".touch-info").innerHTML=`取消时间调整`;c.classList.add("cancel")});l.action.onActionEnd=(t=>{if(!unsafeWindow.touchPlayerDebug){if(t){if(t.type==="playback"){let s=e.prop("currentTime");s+=t.seconds;if(s<0){s=0}else if(s>i){s=i}e.prop("currentTime",s)}else if(t.type==="volume"){const t=JSON.parse(localStorage.bilibili_player_settings);t.video_status.volume=e.prop("volume");localStorage.bilibili_player_settings=JSON.stringify(t)}}r.classList.remove("adjust-opened")}})}function h(t){if(!t.hasClass("disable-original-hover")){t.addClass("disable-original-hover");const e=unsafeWindow.$(".bilibili-player-video");const i="touch-video-control-show";const s=e.data("events").click[0].handler;const o=new DoubleClickEvent(t=>s(t),()=>t.toggleClass(i));e.unbind("click");o.bind(e[0])}}const d=()=>{SpinQuery.any(()=>$(".bilibili-player-iconfont,.bilibili-player-video-quality-menu"),c);SpinQuery.condition(()=>$(".bilibili-player-video"),t=>t.length>0&&$("video").length>0&&$("video").prop("duration"),r);if(t.touchVideoPlayerDoubleTapControl){new SpinQuery(()=>$(".bilibili-player-area"),t=>t.length>0&&unsafeWindow.$&&unsafeWindow.$(".bilibili-player-video").data("events"),h).start()}};Observer.videoChange(d);e.applyStyle("touchPlayerStyle")}})(); onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/min/trending-videos.min.js"] = (()=>{return(t,e)=>{const i=async(t,e)=>{const i=await Ajax.getJsonWithCredentials(`https://api.bilibili.com/x/web-interface/ranking/index?day=${t}`);if(i.code!==0){throw new Error(i.message)}return i.data.map(e=>({id:e.aid+"-"+t,aid:parseInt(e.aid),title:e.title,upID:e.mid,upName:e.author,coverUrl:e.pic.replace("http://","https://"),description:e.description,durationText:e.duration,playCount:formatCount(e.play),coins:formatCount(e.coins),favorites:formatCount(e.favorites),watchlater:true}))};return{export:{getTrendingVideos:i}}}})(); -onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/min/trending-videos.vue.min.js"] = (()=>{return(a,n)=>{const t=`
热门
{{tab.name}}
`;n.applyStyleFromText(`.simple-home .trendings{display:flex;flex-direction:column}.simple-home .trendings .header{padding:0 8px}.simple-home .trendings .contents{--card-width:200px;--card-height:250px;--card-count:3;margin-top:16px;display:flex;overflow:auto;height:calc(var(--card-height) + 16px);width:calc((var(--card-width) + 16px) * var(--card-count));scroll-snap-type:x mandatory;scrollbar-width:none!important}@media screen and (max-width:1300px) and (min-width:900px){.simple-home .trendings .contents{--card-count:2}}@media screen and (max-width:1100px) and (min-width:900px){.simple-home .trendings .contents{--card-count:1}}@media screen and (min-width:1550px){.simple-home .trendings .contents{--card-count:4}}@media screen and (min-width:1850px){.simple-home .trendings .contents{--card-count:5}}.simple-home .trendings .contents::-webkit-scrollbar{width:0!important;height:0!important}.simple-home .trendings .contents .card-wrapper{padding:0 8px;scroll-snap-align:start;flex-shrink:0}`,"trending-videos-style");const e=[{name:"今日",day:1,url:"https://www.bilibili.com/ranking/all/0/0/1"},{name:"三日",day:3,url:"https://www.bilibili.com/ranking"},{name:"一周",day:7,url:"https://www.bilibili.com/ranking/all/0/0/7"}];return{export:Object.assign({template:t},{components:{VideoCard:()=>n.importAsync("video-card.vue")},data(){return{tabs:e,currentTab:e[0],trendingCards:[]}},watch:{currentTab(a){this.updateTrendingTab(a)}},methods:{async updateTrendingTab(a){const{getTrendingVideos:t}=await n.importAsync("trending-videos");this.trendingCards=await t(a.day)},changeTab(a){if(this.currentTab===a){open(a.url,"_blank")}else{this.currentTab=a}}},mounted(){this.updateTrendingTab(this.currentTab)}})}}})(); +onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/min/trending-videos.vue.min.js"] = (()=>{return(a,t)=>{const n=`
热门
{{tab.name}}
`;t.applyStyleFromText(`.simple-home .trendings{display:flex;flex-direction:column}.simple-home .trendings .header{padding:0 8px}.simple-home .trendings .contents{--card-width:200px;--card-height:250px;--card-count:3;margin-top:16px;display:flex;overflow:auto;height:calc(var(--card-height) + 16px);width:calc((var(--card-width) + 16px) * var(--card-count));scroll-snap-type:x mandatory;scrollbar-width:none!important}@media screen and (max-width:1300px) and (min-width:900px){.simple-home .trendings .contents{--card-count:2}}@media screen and (max-width:1100px) and (min-width:900px){.simple-home .trendings .contents{--card-count:1}}@media screen and (min-width:1550px){.simple-home .trendings .contents{--card-count:4}}.simple-home .trendings .contents::-webkit-scrollbar{width:0!important;height:0!important}.simple-home .trendings .contents .card-wrapper{padding:0 8px;scroll-snap-align:start;flex-shrink:0}`,"trending-videos-style");const i=[{name:"今日",day:1,url:"https://www.bilibili.com/ranking/all/0/0/1"},{name:"三日",day:3,url:"https://www.bilibili.com/ranking"},{name:"一周",day:7,url:"https://www.bilibili.com/ranking/all/0/0/7"}];return{export:Object.assign({template:n},{components:{VideoCard:()=>t.importAsync("video-card.vue")},data(){return{tabs:i,currentTab:i[0],trendingCards:[]}},watch:{currentTab(a){this.updateTrendingTab(a)}},methods:{async updateTrendingTab(a){const{getTrendingVideos:n}=await t.importAsync("trending-videos");this.trendingCards=await n(a.day)},changeTab(a){if(this.currentTab===a){open(a.url,"_blank")}else{this.currentTab=a}}},mounted(){this.updateTrendingTab(this.currentTab)}})}}})(); onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/min/tweets.min.css"] = `.nav-search-submit{display:block!important;color:var(--foreground-color-d)!important;transform:translateX(-125px);-webkit-tap-highlight-color:transparent}.nav-search-submit:hover{color:var(--foreground-color)!important}#nav_searchform{transition:.3s ease-out;box-shadow:none;width:0!important;padding:0!important}.preserve-rank>a{opacity:0!important;pointer-events:none}.showSearch .preserve-rank>a{opacity:.382!important;pointer-events:initial}.showSearch #nav_searchform{box-shadow:0 2px 10px 1px #0002;width:250px!important}.showSearch .nav-search-submit,.showSearch .nav-search-submit:hover{color:#888!important;transform:none}@media only screen and (max-width:1291px){.showSearch #nav_searchform{width:140px!important}}`; onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/min/url-params-clean.min.js"] = (()=>{return(e,t)=>{const o=["spm_id_from","from_source","from","seid","share_source","share_medium"];const r=()=>{const e=location.search.substring(1).split("&");const t=e.filter(e=>{if(o.some(t=>e.startsWith(`${t}=`))){return false}return true});if(e.length!==t.length){const e=t.join("&");const o=document.URL.replace(location.search,e?"?"+e:"");console.log("[URL params clean]",document.URL,o);history.replaceState({},document.title,o)}};Observer.videoChange(()=>r())}})(); onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/min/v-checkbox.vue.min.js"] = (()=>{return(e,c)=>{const i=`
{{title}}
`;c.applyStyleFromText(`.v-checkbox{font-size:10pt;cursor:pointer;display:flex;align-items:center}.v-checkbox .mdi{font-size:15pt;line-height:1}.v-checkbox .content{flex-grow:1;text-align:left;padding:0 8px}.v-checkbox .mdi-checkbox-marked-circle{color:var(--theme-color);position:absolute;top:0;left:0;transform:scale(0);transition-timing-function:cubic-bezier(.6,-.28,.74,.05)}.v-checkbox .mdi-checkbox-blank-circle-outline{color:#8884;position:relative}.v-checkbox.checked .mdi-checkbox-blank-circle-outline{color:var(--theme-color)}.v-checkbox.checked .mdi-checkbox-marked-circle{transform:scale(1);transition-timing-function:cubic-bezier(.18,.89,.32,1.28)}`,"v-checkbox-style");return{export:Object.assign({template:i},{props:["checked","title"],methods:{toggleCheck(){this.$emit("update:checked",!this.checked)}}})}}})(); diff --git a/bilibili-evolved.user.js b/bilibili-evolved.user.js index 52142a661..7ca67809a 100644 --- a/bilibili-evolved.user.js +++ b/bilibili-evolved.user.js @@ -1224,8 +1224,8 @@ onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/mi onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/show-dead-video-title.min.js"] = (()=>{return(e,t)=>{(async()=>{if(!document.URL.startsWith("https://space.bilibili.com")){return}class t{}class i extends t{convertToDeadVideoInfo(e,t){return{aid:e,title:t.title,cover:t.pic}}async queryInfo(e){const t=[];if(e.length<=i.MaxCountPerRequest){const s=await Ajax.getJson(`${i.BiliplusHost}/api/aidinfo?aid=${e.join(",")}`);if(s.code===0){t.push(...e.map(e=>{if(e in s.data){return this.convertToDeadVideoInfo(e,s.data[e])}else{return{aid:e,title:"已失效视频",cover:""}}}))}else{console.error(`[显示失效视频信息] Biliplus API 未成功. message=${s.message}`)}}else{t.push(...await this.queryInfo(e.slice(0,i.MaxCountPerRequest)));t.push(...await this.queryInfo(e.slice(i.MaxCountPerRequest)))}return t}}i.BiliplusHost=`https://hd.biliplus.com`;i.MaxCountPerRequest=30;class s extends t{async toggleWatchlater(e,t){for(const i of t){await Ajax.postTextWithCredentials(`https://api.bilibili.com/x/v2/history/toview/${e?"add":"del"}`,`aid=${i}&csrf=${getCsrf()}}`)}}async queryInfo(e){const t=[];await this.toggleWatchlater(true,e);const i=await Ajax.getJsonWithCredentials("https://api.bilibili.com/x/v2/history/toview/web");if(i.code===0){const s=i.data.list.map(e=>{return{aid:e.aid.toString(),title:e.title,cover:e.pic}});t.push(...e.map(e=>s.find(t=>t.aid===e)).filter(e=>e!==undefined));await this.toggleWatchlater(false,e)}else{console.error(`[显示失效视频信息] 稍后再看 API 未成功. message=${i.message}`)}return t}}const a=await SpinQuery.select("#app>.s-space");if(!a){return}Observer.childListSubtree(a,async()=>{const t=dqa(".disabled[data-aid]");if(t.length===0){return}const a=t.map(e=>e.getAttribute("data-aid"));const o=e.deadVideoTitleProvider==="BiliPlus"?new i:new s;const r=await o.queryInfo(a);console.log(`[显示失效视频信息]`,`deadVideos:`,t,`infos:`,r);t.forEach((t,i)=>{t.classList.remove("disabled");const s=t.getAttribute("data-aid");const a=(()=>{if(e.useBiliplusRedirect){return`https://hd.biliplus.com/video/av${s}`}else{return`//www.bilibili.com/video/av${s}`}})();const o=r.find(e=>e.aid===s);console.log(`[显示失效视频信息]`,"#"+i,o);if(o===undefined){console.error(`[显示失效视频信息]信息获取失败, aid=${s}`);return}const n=t.querySelector("a.cover");n.target="_blank";n.href=a;if(o.cover!==""){n.querySelector("img").src=o.cover.replace("http:","https:")}const l=t.querySelector("a.title");l.target="_blank";l.title=o.title;l.href=a;l.innerText=o.title})})})()}})(); onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/simple-home.vue.min.js"] = (()=>{return(e,o)=>{const t=`
`;o.applyStyleFromText(`.simple-home{--title-color:black;color:#444;display:grid;grid-template-areas:"blackboards trendings trendings" "feeds feeds info" "categories categories categories";grid-template-columns:repeat(3,auto);grid-template-rows:repeat(3,auto);column-gap:32px;row-gap:16px}.simple-home,.simple-home *{transition:.2s ease-out}body.dark .simple-home{--title-color:white;color:#ddd}.simple-home .jump-dots{grid-area:dots;align-self:center;justify-self:center}.simple-home .jump-dots label{display:block}.simple-home .jump-dots label:not(:last-child){margin-bottom:6px}.simple-home .jump-dots .jump-dot{background-color:#ddd;width:8px;height:20px;border-radius:8px;cursor:pointer}body.dark .simple-home .jump-dots .jump-dot{background-color:#444}.simple-home .hidden-input{display:none}.simple-home .hidden-input:checked:nth-of-type(1)~.jump-dots label:nth-child(1) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(1)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 0 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(2)~.jump-dots label:nth-child(2) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(2)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 1 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(3)~.jump-dots label:nth-child(3) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(3)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 2 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(4)~.jump-dots label:nth-child(4) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(4)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 3 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(5)~.jump-dots label:nth-child(5) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(5)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 4 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(6)~.jump-dots label:nth-child(6) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(6)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 5 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(7)~.jump-dots label:nth-child(7) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(7)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 6 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(8)~.jump-dots label:nth-child(8) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(8)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 7 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(9)~.jump-dots label:nth-child(9) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(9)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 8 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(10)~.jump-dots label:nth-child(10) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(10)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 9 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(11)~.jump-dots label:nth-child(11) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(11)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 10 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(12)~.jump-dots label:nth-child(12) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(12)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 11 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(13)~.jump-dots label:nth-child(13) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(13)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 12 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(14)~.jump-dots label:nth-child(14) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(14)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 13 * var(--blackboard-height)))}.simple-home .hidden-input:checked:nth-of-type(15)~.jump-dots label:nth-child(15) .jump-dot{background-color:var(--theme-color);height:40px}.simple-home .hidden-input:checked:nth-of-type(15)~.blackboard-cards .blackboard-card{transform:translateY(calc(-1 * 14 * var(--blackboard-height)))}.simple-home .more,.simple-home .toggle-reorder{cursor:pointer;padding:4px 12px 4px 8px;display:flex;align-items:center;border-radius:16px;font-size:13px;font-weight:700}.simple-home .more .be-icon,.simple-home .toggle-reorder .be-icon{margin-right:8px;transition:.3s cubic-bezier(.25,.46,.45,.94);font-size:22px;font-weight:400}.simple-home .more:not(.toggle-reorder):hover .be-icon,.simple-home .toggle-reorder:not(.toggle-reorder):hover .be-icon{transform:rotate(180deg)}.simple-home .more,.simple-home .more.hover,.simple-home .toggle-reorder,.simple-home .toggle-reorder.hover{color:inherit!important;background-color:#ddd!important}body.dark .simple-home .more,body.dark .simple-home .more:hover,body.dark .simple-home .toggle-reorder,body.dark .simple-home .toggle-reorder:hover{color:inherit!important;background-color:#333!important}.simple-home .header{grid-area:header;display:flex;justify-content:space-between;align-items:center}.simple-home .header .title{color:var(--title-color);font-weight:700;font-size:22px}.simple-home .header .tabs{display:flex;align-items:center}.simple-home .header .tabs .tab{cursor:pointer;position:relative;white-space:nowrap}.simple-home .header .tabs .tab .tab-name{opacity:.5;font-size:14px}.simple-home .header .tabs .tab:not(:last-child){margin-right:24px}.simple-home .header .tabs .tab::after{content:"";width:calc(80%);height:3px;border-radius:2px;position:absolute;background-color:var(--theme-color);left:10%;bottom:-6px;transform:scaleX(0);transition:.2s ease-out}.simple-home .header .tabs .tab.active::after{transform:scaleX(1)}.simple-home .header .tabs .tab.active .tab-name{font-weight:700;opacity:1;transform:scale(1.1)}.simple-home .sub-header{color:var(--title-color);font-weight:700;font-size:18px;display:flex;align-items:center}.simple-home .sub-header::before{content:"";display:block;width:12px;height:12px;background-color:var(--theme-color);border-radius:50%;margin-right:8px}.simple-home .blackboards{grid-area:blackboards;justify-self:start}.simple-home .trendings{grid-area:trendings;transform:translateX(8px);justify-self:end}.simple-home .info-row{grid-area:info;justify-self:end}.simple-home .feeds{grid-area:feeds;transform:translateX(-8px);justify-self:start}.simple-home .categories{grid-area:categories;padding-bottom:32px}@media screen and (max-width:900px){.simple-home{grid-template-areas:"blackboards" "trendings" "info" "feeds" "categories";grid-template-columns:1fr;grid-template-rows:repeat(5,auto)}.simple-home .blackboards,.simple-home .categories,.simple-home .feeds,.simple-home .info-row,.simple-home .trendings{justify-self:center}}`,"simple-home-style");return{export:Object.assign({template:t},{components:{Blackboards:()=>o.importAsync("blackboard.vue"),TrendingVideos:()=>o.importAsync("trending-videos.vue"),InfoRow:()=>o.importAsync("online-info-row.vue"),Feeds:()=>o.importAsync("simple-home-feeds.vue"),Categories:()=>o.importAsync("simple-home-categories.vue")}})}}})(); onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/simple-home-categories.vue.min.js"] = (()=>{return(e,t)=>{const r=`
分区
{{t.name}}
{{reordering ? '完成' : '排序'}}
`;t.applyStyleFromText(`.simple-home .categories{display:flex;flex-direction:column}.simple-home .categories,.simple-home .categories *,.simple-home .categories ::after,.simple-home .categories ::before{transition:.2s ease-out}.simple-home .categories .header .tabs{display:flex;flex:1 1 0;margin:0 32px;justify-content:space-between;overflow:auto;width:0;height:42px;scrollbar-width:none!important}.simple-home .categories .header .tabs::-webkit-scrollbar{height:0!important;width:0!important}.simple-home .categories .header .tabs .tab{transition:none;margin-right:24px}.simple-home .categories .category-content{margin-top:12px;margin-bottom:36px}.simple-home .categories .category-content-enter,.simple-home .categories .category-content-leave-to{opacity:0}`,"simple-home-categories-style");const o={anime:"动画",bangumi:"番剧",china:"国创",manga:"漫画",music:"音乐",dance:"舞蹈",game:"游戏",tech:"科技",digital:"数码",life:"生活",kichiku:"鬼畜",fashion:"时尚",ads:"广告",entertainment:"娱乐",column:"专栏",movie:"电影",tv:"TV剧",film:"影视",documentary:"纪录片"};return{export:Object.assign({template:r},{components:{Icon:()=>t.importAsync("icon.vue"),NormalCategory:()=>t.importAsync("simple-home-normal-category.vue")},data(){return{tabs:Object.entries(o).map(([e,t])=>{return{key:e,name:t}}),selectedTab:Object.entries(e.simpleHomeCategoryOrders).sort((e,t)=>e[1]-t[1])[0][0],reordering:false,reorder:null,regionCodes:null}},async mounted(){const r=this.$refs.reorderContainer;const{RegionCodes:o}=await t.importAsync("category-regions");this.regionCodes=o;const{Reorder:i}=await t.importAsync("reorder");const s=new i(r);this.reorder=s;s.addEventListener("reorder",t=>{const r=t.detail;for(const t of r){const{element:r,order:o}=t;e.simpleHomeCategoryOrders[r.getAttribute("data-key")]=o}e.simpleHomeCategoryOrders=e.simpleHomeCategoryOrders})},methods:{getOrder(t){return e.simpleHomeCategoryOrders[t]}},computed:{content(){if(["bangumi","china"].includes(this.selectedTab)){return null}else if(this.selectedTab==="manga"){return null}else if(this.selectedTab==="column"){return null}else{return"NormalCategory"}},rid(){if(!this.regionCodes){return-1}else{return this.regionCodes[this.selectedTab]}}}})}}})(); -onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/simple-home-feeds.vue.min.js"] = (()=>{return(e,t)=>{const a=``;t.applyStyleFromText(`.simple-home .feeds{justify-self:start;display:grid;grid-template-areas:"header header" "contents contents";grid-template-columns:repeat(2,auto);grid-template-rows:repeat(2,auto);row-gap:16px;column-gap:16px}.simple-home .feeds .header,.simple-home .feeds .sub-header{padding:0 8px}.simple-home .feeds .header .tab:nth-child(2),.simple-home .feeds .sub-header .tab:nth-child(2){margin-left:32px}.simple-home .feeds .header .online,.simple-home .feeds .sub-header .online{padding:8px 16px;height:32px;border-radius:16px;background-color:#8882;color:inherit;font-size:12px;display:flex;align-items:center;box-sizing:border-box}.simple-home .feeds .contents{grid-area:contents;display:flex;overflow:auto;--card-width:200px;--card-height:250px;--card-count:3;width:calc((var(--card-width) + 16px) * var(--card-count));padding-bottom:16px;scroll-snap-type:x mandatory;scrollbar-width:none!important;min-height:var(--card-height)}@media screen and (min-width:1100px){.simple-home .feeds .contents{--card-count:4}}@media screen and (min-width:1300px){.simple-home .feeds .contents{--card-count:5}}@media screen and (min-width:1550px){.simple-home .feeds .contents{--card-count:6}}@media screen and (min-width:1850px){.simple-home .feeds .contents{--card-count:7}}.simple-home .feeds .contents::-webkit-scrollbar{width:0!important;height:0!important}.simple-home .feeds .contents .card-wrapper{padding:0 8px;scroll-snap-align:start;flex-shrink:0}`,"simple-home-feeds-style");const i=[{name:"视频",type:"video",url:"https://t.bilibili.com/?tab=8"},{name:"番剧",type:"bangumi",url:"https://t.bilibili.com/?tab=512"}];return{export:Object.assign({template:a},{components:{VideoCard:()=>t.importAsync("video-card.vue"),Icon:()=>t.importAsync("icon.vue")},data(){return{online:"--",tabs:i,currentTab:i[0],feedCards:[]}},watch:{currentTab(e){this.updateFeedCards(e)}},methods:{async updateFeedCards(e){const{getVideoFeeds:a}=await t.importAsync("feeds-apis");this.feedCards=await a(e.type)},changeTab(e){if(this.currentTab===e){open(e.url,"_blank")}else{this.currentTab=e}}},async mounted(){this.updateFeedCards(this.currentTab);const e=await Ajax.getJson("https://api.bilibili.com/x/web-interface/online");if(e.code===0){this.online=e.data.web_online}}})}}})(); -onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/simple-home-normal-category.vue.min.js"] = (()=>{return(i,e)=>{const t=``;e.applyStyleFromText(`.category-view{--loading-from:#d4d4d4;--loading-to:#ddd;--rank-width:420px;--rank-height:250px;--slideshow-ratio:1.2;display:grid;grid-template:"new-activity rank" 1fr "new-post rank" 1fr/1fr var(--rank-width);grid-gap:24px;gap:24px;position:relative;--card-height:calc((8 * 34px + 20px + 1.5 * var(--rank-height)) / 2 - 32px);--card-width:calc(var(--card-height) * (42 / 25))}@media screen and (max-width:1800px){.category-view{--slideshow-ratio:1.2;--rank-width:390px;--rank-height:232.1428571429px}}@media screen and (max-width:1700px){.category-view{--slideshow-ratio:1.1333333333;--rank-width:360px;--rank-height:214.2857142857px}}@media screen and (max-width:1600px){.category-view{--slideshow-ratio:1.0666666667;--rank-width:330px;--rank-height:196.4285714286px}}@media screen and (max-width:1500px){.category-view{--slideshow-ratio:1;--rank-width:300px;--rank-height:178.5714285714px}}@media screen and (max-width:1400px){.category-view{--slideshow-ratio:0.9333333333;--rank-width:270px;--rank-height:160.7142857143px}}@media screen and (max-width:1300px){.category-view{--slideshow-ratio:0.8666666667;--rank-width:240px;--rank-height:142.8571428571px}}@media screen and (max-width:1200px){.category-view{--slideshow-ratio:0.8;--rank-width:210px;--rank-height:125px}}@media screen and (max-width:1000px){.category-view{--slideshow-ratio:0.8;--rank-width:210px;--rank-height:125px}}@media screen and (max-width:900px){.category-view{--slideshow-ratio:0.7333333333;--rank-width:180px;--rank-height:107.1428571429px}}@media screen and (max-width:800px){.category-view{--slideshow-ratio:0.6666666667;--rank-width:150px;--rank-height:89.2857142857px}}@media screen and (max-width:700px){.category-view{--slideshow-ratio:0.6;--rank-width:120px;--rank-height:71.4285714286px}}.category-view,.category-view *,.category-view ::after,.category-view ::before{transition:.2s ease-out}@keyframes normal-category-loading{from{background-color:var(--loading-from)}to{background-color:var(--loading-to)}}body.dark .category-view{--loading-from:#333;--loading-to:#262626}.category-view .loading{opacity:0;pointer-events:none;border-radius:16px;animation:.64s ease-in-out infinite alternate normal-category-loading;position:absolute}.category-view .area-header{grid-area:header;display:flex;align-items:center;justify-content:flex-start;font-weight:700;font-size:11pt;margin-bottom:12px}.category-view .area-header::before{content:"";display:inline-flex;height:10px;width:10px;background-color:var(--theme-color);border-radius:50%;margin-right:8px}.category-view .rank{display:grid;width:var(--rank-width);justify-self:right;grid-template:"header header" auto "first first" calc(10px + var(--rank-height)) "second third" calc(var(--rank-height)/ 2 + 10px)/calc(var(--rank-width)/ 2) calc(var(--rank-width)/ 2)}.category-view .rank .rank-item{grid-column:1/3;box-shadow:0 4px 8px 0 #0001;background-color:#fff;color:inherit!important;position:relative}body.dark .category-view .rank .rank-item{background-color:#282828}.category-view .rank .rank-item .cover{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:16px;overflow:hidden}.category-view .rank .rank-item .cover img{width:100%;height:100%;object-fit:cover}.category-view .rank .rank-item:hover .cover img{transform:scale(1.05)}.category-view .rank .rank-item .rank-number{position:absolute;top:6px;left:6px;width:22px;height:22px;line-height:22px;border-radius:50%;box-sizing:border-box;text-align:center;font-weight:700;font-size:13px;z-index:9;background-color:#8884}.category-view .rank .rank-item .watchlater{position:absolute;top:6px;right:6px;width:22px;height:22px;border-radius:50%;box-sizing:border-box;z-index:9;background-color:#000a;color:#fff;display:flex;align-items:center;justify-content:center;opacity:0}.category-view .rank .rank-item:hover .watchlater{opacity:1}.category-view .rank .rank-item .be-icon{font-size:16px}.category-view .rank .rank-item .be-icon.mdi-fire{transform:scale(calc(18 / 16));margin-right:2px}.category-view .rank .rank-item:not(:first-child)>.title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700;font-size:13px;line-height:34px;padding:0 8px 0 34px;opacity:.9}.category-view .rank .rank-item:not(:first-child):hover{background-color:var(--theme-color-30)}.category-view .rank .rank-item:not(:first-child):hover>.title{opacity:1}.category-view .rank .rank-item:not(:first-child) .details{position:absolute;top:50%;right:calc(100% + 10px);transform:translateY(-50%);width:var(--rank-width);padding:4px;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;z-index:10;opacity:0;pointer-events:none}.category-view .rank .rank-item:not(:first-child) .details .title{font-weight:700;font-size:14px;line-height:1.5;color:#fff;padding:8px;z-index:10}.category-view .rank .rank-item:not(:first-child) .details .cover{overflow:hidden;background-color:#000}.category-view .rank .rank-item:not(:first-child) .details .cover img{filter:blur(16px) brightness(.5);transform:scale(1.5)}.category-view .rank .rank-item:not(:first-child) .details .stats,.category-view .rank .rank-item:not(:first-child) .details .up{z-index:10;display:flex;color:#fff}.category-view .rank .rank-item:not(:first-child) .details .stats .be-icon:not(.mdi-fire),.category-view .rank .rank-item:not(:first-child) .details .up .be-icon:not(.mdi-fire){margin:0 4px 0 8px}.category-view .rank .rank-item:not(:first-child) .details .up{justify-content:space-between;margin:0 10px 0 6px}.category-view .rank .rank-item:not(:first-child) .details .up>*{display:flex;align-items:center}.category-view .rank .rank-item:not(:first-child) .details .stats{margin:8px}.category-view .rank .rank-item:not(:first-child) .details .stats .be-icon:first-child{margin-left:0}.category-view .rank .rank-item:not(:first-child):hover .details{opacity:1}.category-view .rank .rank-item:first-child,.category-view .rank .rank-item:nth-child(2),.category-view .rank .rank-item:nth-child(3){border-radius:16px}.category-view .rank .rank-item:first-child .rank-number,.category-view .rank .rank-item:nth-child(2) .rank-number,.category-view .rank .rank-item:nth-child(3) .rank-number{background-color:var(--theme-color);color:var(--foreground-color);opacity:.9}.category-view .rank .rank-item:nth-child(4){border-radius:16px 16px 0 0}.category-view .rank .rank-item:nth-last-child(2){border-radius:0 0 16px 16px}.category-view .rank .rank-item:first-child{grid-area:first;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;margin-bottom:10px}.category-view .rank .rank-item:first-child .details{align-self:stretch}.category-view .rank .rank-item:first-child .cover::after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-image:linear-gradient(to top,#000c 0,transparent 100%);z-index:0}.category-view .rank .rank-item:first-child .title{font-weight:700;font-size:16px;line-height:1.5;color:#fff;padding:0 8px;z-index:10;white-space:nowrap;overflow:hidden;max-width:100%;text-overflow:ellipsis}.category-view .rank .rank-item:first-child .up{display:flex;align-self:stretch;justify-content:space-between;align-items:center;opacity:.75;color:#fff;padding:0 12px 0 6px;margin:4px 0 8px;z-index:10}.category-view .rank .rank-item:first-child .up>*{display:flex;align-items:center}.category-view .rank .rank-item:first-child .up .be-iconfont-up{margin-right:4px}.category-view .rank .rank-item:first-child .up .points{flex-shrink:0;margin-right:8px}.category-view .rank .rank-item:first-child .up .up-info{max-width:61%}.category-view .rank .rank-item:first-child .up .up-info .up-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:break-all}.category-view .rank .rank-item:first-child .stats{display:flex;justify-content:flex-start;align-items:center;color:#fff;opacity:0;padding:0 8px;position:absolute;bottom:8px;left:0;z-index:10}.category-view .rank .rank-item:first-child .stats .be-icon{margin:0 2px 0 8px}.category-view .rank .rank-item:first-child .stats .be-icon:first-child{margin-left:0}.category-view .rank .rank-item:first-child:hover .up{opacity:0}.category-view .rank .rank-item:first-child:hover .stats{opacity:.75}.category-view .rank .rank-item:nth-child(2){grid-area:second;margin-right:5px;margin-bottom:10px}.category-view .rank .rank-item:nth-child(3){grid-area:third;margin-left:5px;margin-bottom:10px}.category-view .new-activity{align-self:start;grid-area:new-activity}.category-view .new-post{align-self:end;grid-area:new-post}.category-view.new-activity-loading .new-activity.loading{position:static;opacity:1;pointer-events:initial;width:100%;height:100%}.category-view.new-activity-loading .new-activity:not(.loading){opacity:0;pointer-events:none}.category-view.new-post-loading .new-post.loading{position:static;opacity:1;pointer-events:initial;width:100%;height:100%}.category-view.new-post-loading .new-post:not(.loading){opacity:0;pointer-events:none}.category-view .rank{grid-area:rank}.category-view.rank-loading .rank.loading{position:static;opacity:1;pointer-events:initial;width:100%;height:100%}.category-view.rank-loading .rank:not(.loading){opacity:0;pointer-events:none}@media screen and (max-width:1100px){.category-view{--slideshow-ratio:0.8666666667;--rank-width:240px;--rank-height:142.8571428571px;grid-template:"new-activity" 1fr "new-post" 1fr "rank" auto/1fr}.category-view .rank{--rank-width:420px;--rank-height:250px}}`,"simple-home-normal-category-style");return{export:Object.assign({template:t},{components:{SlideshowCards:()=>e.importAsync("slideshow-cards.vue"),Icon:()=>e.importAsync("icon.vue"),DpiImg:()=>e.importAsync("dpi-img.vue")},store:store,filters:{bigNumber(i){return formatCount(i)}},props:{rid:{type:Number,required:true}},data(){return{newActivity:{error:false,loading:true,videos:[]},newPost:{error:false,loading:true,videos:[]},rank:{error:false,loading:true,videos:[]},loaded:false}},computed:{...Vuex.mapState(["watchlaterList"])},methods:{async loadCards(i,e,t){if(t===undefined){t=(i=>{const e=getUID();const t=_.get(i,"data.archives",[]);return t.map(i=>{return{id:i.aid,aid:i.aid,coverUrl:i.pic.replace("http:","https:"),title:i.title,upName:i.owner.name,upFaceUrl:i.owner.face.replace("http:","https:"),upID:i.owner.mid,playCount:i.stat.view,danmakuCount:i.stat.danmaku,like:i.stat.like,coins:i.stat.coin,description:i.desc,type:i.tname,watchlater:e?this.watchlaterList.includes(i.aid):null}})})}try{this[i].loading=true;const a=await Ajax.getJson(e);if(a.code!==0){this[i].error=true}this[i].videos=t(a)}catch(e){logError(e);this[i].error=true}finally{this[i].loading=false}},async loadNewActivity(){await this.loadCards("newActivity",`https://api.bilibili.com/x/web-interface/dynamic/region?ps=10&rid=${this.rid}`)},async loadNewPost(){await this.loadCards("newPost",`https://api.bilibili.com/x/web-interface/newlist?ps=10&rid=${this.rid}`)},async loadRank(){await this.loadCards("rank",`https://api.bilibili.com/x/web-interface/ranking/region?rid=${this.rid}&day=3&original=0`,i=>{const e=getUID();const t=i.data;return t.map(i=>{return{id:i.aid,aid:parseInt(i.aid),title:i.title,playCount:i.play,favorites:i.favorites,upID:i.mid,upName:i.author,description:i.description,coverUrl:i.pic.replace("http:","https:"),coins:i.coins,durationText:i.duration,points:i.pts,watchlater:e?this.watchlaterList.includes(parseInt(i.aid)):null}})})},...Vuex.mapActions(["toggleWatchlater"]),updateVideos(){this.loadNewActivity();this.loadNewPost();this.loadRank()}},watch:{rid(i){if(i>0){if(this.loaded){this.updateVideos()}}else{console.warn(`rid=${i}`)}}},mounted(){const i=new IntersectionObserver(()=>{this.updateVideos();this.loaded=true;i.disconnect()});i.observe(this.$el)}})}}})(); +onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/simple-home-feeds.vue.min.js"] = (()=>{return(e,t)=>{const a=``;t.applyStyleFromText(`.simple-home .feeds{justify-self:start;display:grid;grid-template-areas:"header header" "contents contents";grid-template-columns:repeat(2,auto);grid-template-rows:repeat(2,auto);row-gap:16px;column-gap:16px}.simple-home .feeds .header,.simple-home .feeds .sub-header{padding:0 8px}.simple-home .feeds .header .tab:nth-child(2),.simple-home .feeds .sub-header .tab:nth-child(2){margin-left:32px}.simple-home .feeds .header .online,.simple-home .feeds .sub-header .online{padding:8px 16px;height:32px;border-radius:16px;background-color:#8882;color:inherit;font-size:12px;display:flex;align-items:center;box-sizing:border-box}.simple-home .feeds .contents{grid-area:contents;display:flex;overflow:auto;--card-width:200px;--card-height:250px;--card-count:3;width:calc((var(--card-width) + 16px) * var(--card-count));padding-bottom:16px;scroll-snap-type:x mandatory;scrollbar-width:none!important;min-height:var(--card-height)}@media screen and (min-width:1100px){.simple-home .feeds .contents{--card-count:4}}@media screen and (min-width:1300px){.simple-home .feeds .contents{--card-count:5}}@media screen and (min-width:1550px){.simple-home .feeds .contents{--card-count:6}}.simple-home .feeds .contents::-webkit-scrollbar{width:0!important;height:0!important}.simple-home .feeds .contents .card-wrapper{padding:0 8px;scroll-snap-align:start;flex-shrink:0}`,"simple-home-feeds-style");const i=[{name:"视频",type:"video",url:"https://t.bilibili.com/?tab=8"},{name:"番剧",type:"bangumi",url:"https://t.bilibili.com/?tab=512"}];return{export:Object.assign({template:a},{components:{VideoCard:()=>t.importAsync("video-card.vue"),Icon:()=>t.importAsync("icon.vue")},data(){return{online:"--",tabs:i,currentTab:i[0],feedCards:[]}},watch:{currentTab(e){this.updateFeedCards(e)}},methods:{async updateFeedCards(e){const{getVideoFeeds:a}=await t.importAsync("feeds-apis");this.feedCards=await a(e.type)},changeTab(e){if(this.currentTab===e){open(e.url,"_blank")}else{this.currentTab=e}}},async mounted(){this.updateFeedCards(this.currentTab);const e=await Ajax.getJson("https://api.bilibili.com/x/web-interface/online");if(e.code===0){this.online=e.data.web_online}}})}}})(); +onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/simple-home-normal-category.vue.min.js"] = (()=>{return(i,e)=>{const t=``;e.applyStyleFromText(`.category-view{--loading-from:#d4d4d4;--loading-to:#ddd;--rank-width:370px;--rank-height:calc(var(--rank-width) / 16 * 9);--slideshow-ratio:0.6;--card-height:300px;--card-width:calc(var(--card-height) * (42 / 25));display:grid;grid-template:"new-activity rank" 1fr "new-post rank" 1fr/1fr calc(1.5 * var(--rank-width) + 10px);grid-row-gap:24px;row-gap:24px;grid-column-gap:32px;column-gap:32px;position:relative}@media screen and (max-width:1800px){.category-view{--card-height:288px;--rank-width:350px}}@media screen and (max-width:1700px){.category-view{--card-height:276px;--rank-width:330px}}@media screen and (max-width:1600px){.category-view{--card-height:264px;--rank-width:310px}}@media screen and (max-width:1500px){.category-view{--card-height:252px;--rank-width:290px}}@media screen and (max-width:1400px){.category-view{--card-height:240px;--rank-width:270px}}@media screen and (max-width:1200px){.category-view{--card-height:216px;--rank-width:230px}}@media screen and (max-width:1100px){.category-view{--card-height:204px;--rank-width:210px}}@media screen and (max-width:1000px){.category-view{--card-height:192px;--rank-width:190px}}@media screen and (max-width:900px){.category-view{--card-height:180px;--rank-width:170px}}@media screen and (max-width:800px){.category-view{--card-height:168px;--rank-width:150px}}@media screen and (max-width:700px){.category-view{--card-height:156px;--rank-width:130px}}.category-view,.category-view *,.category-view ::after,.category-view ::before{transition:.2s ease-out}@keyframes normal-category-loading{from{background-color:var(--loading-from)}to{background-color:var(--loading-to)}}body.dark .category-view{--loading-from:#333;--loading-to:#262626}.category-view .loading{opacity:0;pointer-events:none;border-radius:16px;animation:.64s ease-in-out infinite alternate normal-category-loading;position:absolute}.category-view .area-header{grid-area:header;display:flex;align-items:center;justify-content:flex-start;font-weight:700;font-size:11pt;margin-bottom:12px}.category-view .area-header::before{content:"";display:inline-flex;height:10px;width:10px;background-color:var(--theme-color);border-radius:50%;margin-right:8px}.category-view .rank{display:grid;width:calc(1.5 * var(--rank-width) + 10px);justify-self:right;grid-template:"header header" auto "first second" calc(var(--rank-height)/ 2 + 10px) "first third" calc(var(--rank-height)/ 2 + 10px)/calc(var(--rank-width)) calc(10px + var(--rank-width)/ 2)}.category-view .rank .rank-item{grid-column:1/3;box-shadow:0 4px 8px 0 #0001;background-color:#fff;color:inherit!important;position:relative}body.dark .category-view .rank .rank-item{background-color:#282828}.category-view .rank .rank-item .cover{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:16px;overflow:hidden}.category-view .rank .rank-item .cover img{width:100%;height:100%;object-fit:cover}.category-view .rank .rank-item:hover .cover img{transform:scale(1.05)}.category-view .rank .rank-item .rank-number{position:absolute;top:6px;left:6px;width:22px;height:22px;line-height:22px;border-radius:50%;box-sizing:border-box;text-align:center;font-weight:700;font-size:13px;z-index:9;background-color:#8884}.category-view .rank .rank-item .watchlater{position:absolute;top:6px;right:6px;width:22px;height:22px;border-radius:50%;box-sizing:border-box;z-index:9;background-color:#000a;color:#fff;display:flex;align-items:center;justify-content:center;opacity:0}.category-view .rank .rank-item:hover .watchlater{opacity:1}.category-view .rank .rank-item .be-icon{font-size:16px}.category-view .rank .rank-item .be-icon.mdi-fire{transform:scale(calc(18 / 16));margin-right:2px}.category-view .rank .rank-item:not(:first-child)>.title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700;font-size:13px;line-height:34px;padding:0 8px 0 34px;opacity:.9}.category-view .rank .rank-item:not(:first-child):hover{background-color:var(--theme-color-30)}.category-view .rank .rank-item:not(:first-child):hover>.title{opacity:1}.category-view .rank .rank-item:not(:first-child) .details{position:absolute;top:50%;right:calc(100% + 10px);transform:translateY(-50%);width:var(--rank-width);padding:4px;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;z-index:10;opacity:0;pointer-events:none}.category-view .rank .rank-item:not(:first-child) .details .title{font-weight:700;font-size:14px;line-height:1.5;color:#fff;padding:8px;z-index:10}.category-view .rank .rank-item:not(:first-child) .details .cover{overflow:hidden;background-color:#000}.category-view .rank .rank-item:not(:first-child) .details .cover img{filter:blur(16px) brightness(.5);transform:scale(1.5)}.category-view .rank .rank-item:not(:first-child) .details .stats,.category-view .rank .rank-item:not(:first-child) .details .up{z-index:10;display:flex;color:#fff}.category-view .rank .rank-item:not(:first-child) .details .stats .be-icon:not(.mdi-fire),.category-view .rank .rank-item:not(:first-child) .details .up .be-icon:not(.mdi-fire){margin:0 4px 0 8px}.category-view .rank .rank-item:not(:first-child) .details .up{justify-content:space-between;margin:0 10px 0 6px}.category-view .rank .rank-item:not(:first-child) .details .up>*{display:flex;align-items:center}.category-view .rank .rank-item:not(:first-child) .details .stats{margin:8px}.category-view .rank .rank-item:not(:first-child) .details .stats .be-icon:first-child{margin-left:0}.category-view .rank .rank-item:not(:first-child):hover .details{opacity:1}.category-view .rank .rank-item:first-child,.category-view .rank .rank-item:nth-child(2),.category-view .rank .rank-item:nth-child(3){border-radius:16px}.category-view .rank .rank-item:first-child .rank-number,.category-view .rank .rank-item:nth-child(2) .rank-number,.category-view .rank .rank-item:nth-child(3) .rank-number{background-color:var(--theme-color);color:var(--foreground-color);opacity:.9}.category-view .rank .rank-item:nth-child(4){border-radius:16px 16px 0 0}.category-view .rank .rank-item:nth-last-child(2){border-radius:0 0 16px 16px}.category-view .rank .rank-item:first-child{grid-area:first;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;margin-bottom:10px}.category-view .rank .rank-item:first-child .details{align-self:stretch}.category-view .rank .rank-item:first-child .cover::after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-image:linear-gradient(to top,#000c 0,transparent 100%);z-index:0}.category-view .rank .rank-item:first-child .title{font-weight:700;font-size:16px;line-height:1.5;color:#fff;padding:0 8px;z-index:10;white-space:nowrap;overflow:hidden;max-width:100%;text-overflow:ellipsis}.category-view .rank .rank-item:first-child .up{display:flex;align-self:stretch;justify-content:space-between;align-items:center;opacity:.75;color:#fff;padding:0 12px 0 6px;margin:4px 0 8px;z-index:10}.category-view .rank .rank-item:first-child .up>*{display:flex;align-items:center}.category-view .rank .rank-item:first-child .up .be-iconfont-up{margin-right:4px}.category-view .rank .rank-item:first-child .up .points{flex-shrink:0;margin-right:8px}.category-view .rank .rank-item:first-child .up .up-info{max-width:61%}.category-view .rank .rank-item:first-child .up .up-info .up-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:break-all}.category-view .rank .rank-item:first-child .stats{display:flex;justify-content:flex-start;align-items:center;color:#fff;opacity:0;padding:0 8px;position:absolute;bottom:8px;left:0;z-index:10}.category-view .rank .rank-item:first-child .stats .be-icon{margin:0 2px 0 8px}.category-view .rank .rank-item:first-child .stats .be-icon:first-child{margin-left:0}.category-view .rank .rank-item:first-child:hover .up{opacity:0}.category-view .rank .rank-item:first-child:hover .stats{opacity:.75}.category-view .rank .rank-item:nth-child(2){grid-area:second;margin-bottom:10px;margin-left:10px}.category-view .rank .rank-item:nth-child(3){grid-area:third;margin-bottom:10px;margin-left:10px}.category-view .new-activity{align-self:start;grid-area:new-activity}.category-view .new-post{align-self:end;grid-area:new-post}.category-view.new-activity-loading .new-activity.loading{position:static;opacity:1;pointer-events:initial;width:100%;height:100%}.category-view.new-activity-loading .new-activity:not(.loading){opacity:0;pointer-events:none}.category-view.new-post-loading .new-post.loading{position:static;opacity:1;pointer-events:initial;width:100%;height:100%}.category-view.new-post-loading .new-post:not(.loading){opacity:0;pointer-events:none}.category-view .rank{grid-area:rank}.category-view.rank-loading .rank.loading{position:static;opacity:1;pointer-events:initial;width:100%;height:100%}.category-view.rank-loading .rank:not(.loading){opacity:0;pointer-events:none}@media screen and (max-width:1300px){.category-view{--card-height:228px;--rank-width:250px;grid-template:"new-activity" 1fr "new-post" 1fr "rank" auto/1fr;--card-height:300px}.category-view .rank{--rank-width:420px;justify-self:center}}`,"simple-home-normal-category-style");return{export:Object.assign({template:t},{components:{SlideshowCards:()=>e.importAsync("slideshow-cards.vue"),Icon:()=>e.importAsync("icon.vue"),DpiImg:()=>e.importAsync("dpi-img.vue")},store:store,filters:{bigNumber(i){return formatCount(i)}},props:{rid:{type:Number,required:true}},data(){return{newActivity:{error:false,loading:true,videos:[]},newPost:{error:false,loading:true,videos:[]},rank:{error:false,loading:true,videos:[]},loaded:false}},computed:{...Vuex.mapState(["watchlaterList"])},methods:{async loadCards(i,e,t){if(t===undefined){t=(i=>{const e=getUID();const t=_.get(i,"data.archives",[]);return t.map(i=>{return{id:i.aid,aid:i.aid,coverUrl:i.pic.replace("http:","https:"),title:i.title,upName:i.owner.name,upFaceUrl:i.owner.face.replace("http:","https:"),upID:i.owner.mid,playCount:i.stat.view,danmakuCount:i.stat.danmaku,like:i.stat.like,coins:i.stat.coin,description:i.desc,type:i.tname,watchlater:e?this.watchlaterList.includes(i.aid):null}})})}try{this[i].loading=true;const a=await Ajax.getJson(e);if(a.code!==0){this[i].error=true}this[i].videos=t(a)}catch(e){logError(e);this[i].error=true}finally{this[i].loading=false}},async loadNewActivity(){await this.loadCards("newActivity",`https://api.bilibili.com/x/web-interface/dynamic/region?ps=10&rid=${this.rid}`)},async loadNewPost(){await this.loadCards("newPost",`https://api.bilibili.com/x/web-interface/newlist?ps=10&rid=${this.rid}`)},async loadRank(){await this.loadCards("rank",`https://api.bilibili.com/x/web-interface/ranking/region?rid=${this.rid}&day=3&original=0`,i=>{const e=getUID();const t=i.data;return t.map(i=>{return{id:i.aid,aid:parseInt(i.aid),title:i.title,playCount:i.play,favorites:i.favorites,upID:i.mid,upName:i.author,description:i.description,coverUrl:i.pic.replace("http:","https:"),coins:i.coins,durationText:i.duration,points:i.pts,watchlater:e?this.watchlaterList.includes(parseInt(i.aid)):null}})})},...Vuex.mapActions(["toggleWatchlater"]),updateVideos(){this.loadNewActivity();this.loadNewPost();this.loadRank()}},watch:{rid(i){if(i>0){if(this.loaded){this.updateVideos()}}else{console.warn(`rid=${i}`)}}},mounted(){const i=new IntersectionObserver(()=>{this.updateVideos();this.loaded=true;i.disconnect()});i.observe(this.$el)}})}}})(); onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/simplify-home.min.css"] = `#app>.bili-header-m.stardust-common>.bili-wrapper,#app>.bili-wrapper,#app>.elevator-module,.bili-header-m .head-banner .head-content .head-logo,.international-footer,.international-header .b-wrap,.international-home>:not(.international-header){display:none!important}`; onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/simplify-home.min.js"] = (()=>{return(e,i)=>{(async()=>{if(document.URL.replace(window.location.search,"")!=="https://www.bilibili.com/"){i.removeStyle("simplifyHomeStyle");return}document.body.insertAdjacentHTML("beforeend",`\n\n`);const m=new Vue({el:"simplify-home",components:{SimplifyHome:()=>i.importAsync("simplify-home.vue")},data:{homeStyle:e.simplifyHomeStyle}});addSettingsListener("simplifyHomeStyle",e=>m.homeStyle=e,false)})()}})(); onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/simplify-home.vue.min.js"] = (()=>{return(e,o)=>{const m=`
`;o.applyStyleFromText(`.simplify-home{padding-top:32px;display:flex;align-items:flex-start;justify-content:center;min-height:100vh;background-color:#f4f4f4}body.dark .simplify-home{background-color:#181818}.simplify-home .simplify-home-component{max-width:100%}html{scroll-behavior:smooth}`,"simplify-home-style");return{export:Object.assign({template:m},{components:{"minimal-home":()=>o.importAsync("minimal-home.vue"),"simple-home":()=>o.importAsync("simple-home.vue")},computed:{activeComponent(){return this.homeStyle==="清爽"?"simple-home":"minimal-home"}},props:{homeStyle:String}})}}})(); @@ -1233,7 +1233,7 @@ onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/mi onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/simplify-liveroom.min.js"] = (()=>{return(e,i)=>{const s={vip:"老爷图标",fansMedal:"粉丝勋章",title:"活动头衔",userLevel:"用户等级",guard:"舰长图标",systemMessage:"全区广播",welcomeMessage:"欢迎信息",giftMessage:"礼物弹幕",guardPurchase:"上舰提示",giftPanel:"付费礼物",kanban:"看板娘",eventsBanner:"活动横幅",popup:"抽奖提示",skin:"房间皮肤"};class t{constructor(i,s){this.skinDisabled=e.simplifyLiveroomSettings.skin;this.skinSelectors=i;this.skinClass=s;i.forEach(e=>{SpinQuery.select(e,i=>{Observer.attributes(e,e=>{e.forEach(e=>{if(e.attributeName==="class"){if(this.skinDisabled&&i.classList.contains(s)){i.classList.remove(s)}else if(!this.skinDisabled&&!i.classList.contains(s)){i.classList.add(s)}}})})})})}setSkin(e){this.skinDisabled=!e;this.skinSelectors.forEach(i=>{SpinQuery.select(i,i=>i.classList[e?"add":"remove"](this.skinClass))})}}const n=[new t(["#head-info-vm","#gift-control-vm","#rank-list-vm","#rank-list-ctnr-box",".gift-panel.base-panel",".gift-panel.extend-panel",".seeds-wrap>div:first-child",".gift-section>div:last-child",".z-gift-package>div>div",".right-action"],"live-skin-coloration-area"),new t([".rank-list-ctnr .tabs"],"isHundred"),new t([".rank-list-ctnr .tab-content > div"],"hundred")];const a=(e,i)=>{document.body.classList[e?"add":"remove"](`simplify-${i}`);if(i==="skin"){n.forEach(i=>i.setSkin(!e))}};const c=()=>document.URL.startsWith(`https://live.bilibili.com/`);if(c()){Object.keys(s).forEach(i=>{const s=e.simplifyLiveroomSettings[i];a(s,i)})}return{widget:{condition:c,content:`\n
\n\n简化直播间\n\n
\n`,success:()=>{const i=document.querySelector("#simplify-liveroom");const t=document.querySelector(".gui-settings-mask");i.addEventListener("click",e=>{const i=document.querySelector(".simplify-liveroom-settings");if(i.contains(e.target)||e.target===i){return}i.classList.toggle("opened")});i.addEventListener("mouseenter",()=>t.classList.add("transparent"));i.addEventListener("mouseleave",()=>t.classList.remove("transparent"));new Vue({el:".simplify-liveroom-settings",data:{items:Object.entries(s).map(([i,s])=>{const t=e.simplifyLiveroomSettings[i];a(t,i);return{key:i,name:s,checked:t}})},methods:{itemClick(i){i.checked=!i.checked;a(i.checked,i.key);e.simplifyLiveroomSettings=Object.assign(e.simplifyLiveroomSettings,{[i.key]:i.checked})}}})}}}}})(); onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/skip-charge-list.min.css"] = `.bilibili-player .bilibili-player-area .bilibili-player-electric-panel{display:none!important}`; onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/skip-charge-list.min.js"] = (()=>{return(e,i)=>{async function n(){const e=await SpinQuery.select(()=>document.querySelector("video"));e&&e.addEventListener("ended",async()=>{const e=await SpinQuery.select(()=>document.querySelector(".bilibili-player-electric-panel-jump"));e&&e.click()})}if(Observer.videoChange){Observer.videoChange(n)}else{Observer.childList("#bofqi",n)}}})(); -onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/slideshow-cards.vue.min.js"] = (()=>{return(e,r)=>{const i=`
{{title}}
`;r.applyStyleFromText(`.slideshow-cards{display:grid;position:relative;grid-template:"header header header header" auto "cards . operations info" var(--card-height)/var(--card-width) 44px 1fr calc(var(--slideshow-ratio) * var(--card-width))}.slideshow-cards .error{grid-column:1/4;grid-row:2/3;align-self:stretch;justify-self:stretch}.slideshow-cards .operations{grid-area:operations;display:flex;flex-direction:column;align-self:center;justify-self:start}.slideshow-cards .operations>*{background-color:#ddd;border-radius:50%;border:none;display:flex;height:32px;width:32px;align-items:center;justify-content:center;box-sizing:border-box;margin-right:8px;cursor:pointer}.slideshow-cards .operations>:hover{background-color:#ccc}body.dark .slideshow-cards .operations>*{background-color:#333}body.dark .slideshow-cards .operations>:hover{background-color:#444}.slideshow-cards .operations>.checked{border:2px solid var(--theme-color)}.slideshow-cards .operations>* .be-icon{font-size:22px}.slideshow-cards .operations>:not(:last-child){margin-bottom:8px}.slideshow-cards .operations .play .be-icon{font-size:16px;transform:translateX(1.5px)}.slideshow-cards .operations .play,body.dark .slideshow-cards .operations .play{color:var(--foreground-color);background-color:var(--theme-color)}.slideshow-cards .operations .play:hover,body.dark .slideshow-cards .operations .play:hover{background-color:var(--theme-color-80)}.slideshow-cards .info{grid-area:info;display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between}.slideshow-cards .info>*{display:flex;align-items:center}.slideshow-cards .info .title{color:inherit!important;font-size:12pt;font-weight:700;text-align:right;display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.5;max-height:3em}.slideshow-cards .info .up{font-size:10pt;color:inherit!important}.slideshow-cards .info .up .face{border-radius:50%;width:24px;height:24px;margin-right:8px}.slideshow-cards .info .stat,.slideshow-cards .info .type{opacity:.75;align-items:center}.slideshow-cards .info .stat .be-icon,.slideshow-cards .info .type .be-icon{margin:0 4px 0 16px;font-size:12pt}.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:6;-webkit-box-orient:vertical;line-height:1.5;max-height:9em;flex-grow:1;white-space:pre-wrap;text-align:right;opacity:.75}.slideshow-cards .info .buttons .be-icon{font-weight:400}.slideshow-cards .info .buttons>button{outline:0!important;cursor:pointer}.slideshow-cards .info .buttons .refresh{background-color:#ddd;border-radius:50%;border:none;display:flex;height:32px;width:32px;align-items:center;justify-content:center;box-sizing:border-box;margin-right:8px;cursor:pointer}.slideshow-cards .info .buttons .refresh:hover{background-color:#ccc}body.dark .slideshow-cards .info .buttons .refresh{background-color:#333}body.dark .slideshow-cards .info .buttons .refresh:hover{background-color:#444}.slideshow-cards .info .buttons .refresh.checked{border:2px solid var(--theme-color)}.slideshow-cards .info .buttons .refresh .be-icon{transition-duration:.5s;transform:scale(.9)}.slideshow-cards .info .buttons .refresh:hover .be-icon{transform:scale(.9) rotate(360deg)}.slideshow-cards .info .buttons .previous{background-color:#ddd;border-radius:50%;border:none;display:flex;height:32px;width:32px;align-items:center;justify-content:center;box-sizing:border-box;margin-right:8px;cursor:pointer}.slideshow-cards .info .buttons .previous:hover{background-color:#ccc}body.dark .slideshow-cards .info .buttons .previous{background-color:#333}body.dark .slideshow-cards .info .buttons .previous:hover{background-color:#444}.slideshow-cards .info .buttons .previous.checked{border:2px solid var(--theme-color)}.slideshow-cards .info .buttons .previous .be-icon{transform:translateX(-1px)}.slideshow-cards .info .buttons .next{display:flex;align-items:center;padding:4px 6px 4px 12px;background-color:var(--theme-color);border:none;color:var(--foreground-color)!important;height:32px;box-sizing:border-box;line-height:normal;font-size:11pt;font-weight:700;border-radius:16px}.slideshow-cards .info .buttons .next:hover{background-color:var(--theme-color-80)}.slideshow-cards .slideshow-card{grid-area:cards;cursor:pointer;align-self:stretch;justify-self:stretch;position:absolute;top:0;left:0;width:100%;height:100%;background-color:#8882;border-radius:16px}.slideshow-cards .slideshow-card:not(:first-child){transform-origin:right}.slideshow-cards .slideshow-card:not(:nth-child(2)){pointer-events:none;transform:translateX(39px) scale(.45);opacity:0}.slideshow-cards .slideshow-card img{border-radius:16px;width:100%;height:100%;object-fit:cover}.slideshow-cards .slideshow-card:nth-child(1){z-index:7}.slideshow-cards .slideshow-card:nth-child(2){z-index:6;pointer-events:initial}.slideshow-cards .slideshow-card:nth-child(3){z-index:5}.slideshow-cards .slideshow-card:nth-child(4){z-index:4}.slideshow-cards .slideshow-card:nth-child(5){z-index:3}.slideshow-cards .slideshow-card:nth-child(6){z-index:2}.slideshow-cards .slideshow-card:nth-child(7){z-index:1}.slideshow-cards .slideshow-card:first-child{transform:translateX(-10%) scale(1.1);opacity:0}.slideshow-cards .slideshow-card:nth-child(3){transform:translateX(20px) scale(.9);opacity:.5}.slideshow-cards .slideshow-card:nth-child(4){transform:translateX(30px) scale(.75);opacity:.25}.slideshow-cards .slideshow-card:nth-child(5){transform:translateX(35px) scale(.65);opacity:.125}.slideshow-cards .slideshow-card:nth-child(6){transform:translateX(37.5px) scale(.5);opacity:.0625}@media screen and (max-width:1600px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical;line-height:1.5;max-height:6em}}@media screen and (max-width:1400px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical;line-height:1.5;max-height:4.5em}}@media screen and (max-width:1200px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.5;max-height:3em}}@media screen and (max-width:1050px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical;line-height:1.5;max-height:1.5em}}@media screen and (max-width:950px){.slideshow-cards .info .title{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical;line-height:1.5;max-height:1.5em}}`,"slideshow-cards-style");return{export:Object.assign({template:i},{components:{Icon:()=>r.importAsync("icon.vue"),DpiImg:()=>r.importAsync("dpi-img.vue")},store:store,filters:{bigNumber(e){return formatCount(e)}},props:["cards","error","title","showStat"],data(){return{cardQueue:[]}},methods:{...Vuex.mapActions(["toggleWatchlater"]),regenerateQueue(){if(this.cards.length<7){return}const e=[...this.cards];e.unshift(e.pop());this.cardQueue=e},previousCard(){this.cardQueue.unshift(this.cardQueue.pop())},nextCard(){this.cardQueue.push(this.cardQueue.shift())},refresh(){this.$emit("refresh")}},watch:{cards(){this.regenerateQueue()}},computed:{...Vuex.mapState(["watchlaterList"]),currentCard(){return this.cardQueue[1]}},mounted(){this.regenerateQueue()}})}}})(); +onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/slideshow-cards.vue.min.js"] = (()=>{return(e,r)=>{const i=`
{{title}}
`;r.applyStyleFromText(`.slideshow-cards{display:grid;position:relative;grid-template:"header header header header" auto "cards . operations info" var(--card-height)/var(--card-width) 48px auto calc(var(--card-width) * var(--slideshow-ratio))}.slideshow-cards .error{grid-column:1/4;grid-row:2/3;align-self:stretch;justify-self:stretch}.slideshow-cards .operations{grid-area:operations;display:flex;flex-direction:column;align-self:center;justify-self:start}.slideshow-cards .operations>*{background-color:#ddd;border-radius:50%;border:none;display:flex;height:32px;width:32px;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;margin-right:16px}.slideshow-cards .operations>:hover{background-color:#ccc}body.dark .slideshow-cards .operations>*{background-color:#333}body.dark .slideshow-cards .operations>:hover{background-color:#444}.slideshow-cards .operations>.checked{border:2px solid var(--theme-color)}.slideshow-cards .operations>* .be-icon{font-size:22px}.slideshow-cards .operations>:not(:last-child){margin-bottom:8px}.slideshow-cards .operations .play .be-icon{font-size:16px;transform:translateX(1.5px)}.slideshow-cards .operations .play,body.dark .slideshow-cards .operations .play{color:var(--foreground-color);background-color:var(--theme-color)}.slideshow-cards .operations .play:hover,body.dark .slideshow-cards .operations .play:hover{background-color:var(--theme-color-80)}.slideshow-cards .info{grid-area:info;display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between}.slideshow-cards .info>*{display:flex;align-items:center}.slideshow-cards .info .title{color:inherit!important;font-size:12pt;font-weight:700;text-align:right;display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.5;max-height:3em}.slideshow-cards .info .up{font-size:10pt;color:inherit!important}.slideshow-cards .info .up .face{border-radius:50%;width:24px;height:24px;margin-right:8px}.slideshow-cards .info .stat,.slideshow-cards .info .type{opacity:.75;align-items:center}.slideshow-cards .info .stat .be-icon,.slideshow-cards .info .type .be-icon{margin:0 4px 0 16px;font-size:12pt}.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:6;-webkit-box-orient:vertical;line-height:1.5;max-height:9em;flex-grow:1;white-space:pre-wrap;text-align:right;opacity:.75}.slideshow-cards .info .buttons .be-icon{font-weight:400}.slideshow-cards .info .buttons>button{outline:0!important;cursor:pointer}.slideshow-cards .info .buttons .refresh{background-color:#ddd;border-radius:50%;border:none;display:flex;height:32px;width:32px;align-items:center;justify-content:center;box-sizing:border-box;margin-right:8px;cursor:pointer}.slideshow-cards .info .buttons .refresh:hover{background-color:#ccc}body.dark .slideshow-cards .info .buttons .refresh{background-color:#333}body.dark .slideshow-cards .info .buttons .refresh:hover{background-color:#444}.slideshow-cards .info .buttons .refresh.checked{border:2px solid var(--theme-color)}.slideshow-cards .info .buttons .refresh .be-icon{transition-duration:.5s;transform:scale(.9)}.slideshow-cards .info .buttons .refresh:hover .be-icon{transform:scale(.9) rotate(360deg)}.slideshow-cards .info .buttons .previous{background-color:#ddd;border-radius:50%;border:none;display:flex;height:32px;width:32px;align-items:center;justify-content:center;box-sizing:border-box;margin-right:8px;cursor:pointer}.slideshow-cards .info .buttons .previous:hover{background-color:#ccc}body.dark .slideshow-cards .info .buttons .previous{background-color:#333}body.dark .slideshow-cards .info .buttons .previous:hover{background-color:#444}.slideshow-cards .info .buttons .previous.checked{border:2px solid var(--theme-color)}.slideshow-cards .info .buttons .previous .be-icon{transform:translateX(-1px)}.slideshow-cards .info .buttons .next{display:flex;align-items:center;padding:4px 6px 4px 12px;background-color:var(--theme-color);border:none;color:var(--foreground-color)!important;height:32px;box-sizing:border-box;line-height:normal;font-size:11pt;font-weight:700;border-radius:16px}.slideshow-cards .info .buttons .next:hover{background-color:var(--theme-color-80)}.slideshow-cards .slideshow-card{grid-area:cards;cursor:pointer;align-self:stretch;justify-self:stretch;position:absolute;top:0;left:0;width:100%;height:100%;background-color:#8882;border-radius:16px}.slideshow-cards .slideshow-card:not(:first-child){transform-origin:right}.slideshow-cards .slideshow-card:not(:nth-child(2)){pointer-events:none;transform:translateX(39px) scale(.45);opacity:0}.slideshow-cards .slideshow-card img{border-radius:16px;width:100%;height:100%;object-fit:cover}.slideshow-cards .slideshow-card:nth-child(1){z-index:7}.slideshow-cards .slideshow-card:nth-child(2){z-index:6;pointer-events:initial}.slideshow-cards .slideshow-card:nth-child(3){z-index:5}.slideshow-cards .slideshow-card:nth-child(4){z-index:4}.slideshow-cards .slideshow-card:nth-child(5){z-index:3}.slideshow-cards .slideshow-card:nth-child(6){z-index:2}.slideshow-cards .slideshow-card:nth-child(7){z-index:1}.slideshow-cards .slideshow-card:first-child{transform:translateX(-10%) scale(1.1);opacity:0}.slideshow-cards .slideshow-card:nth-child(3){transform:translateX(20px) scale(.9);opacity:.5}.slideshow-cards .slideshow-card:nth-child(4){transform:translateX(30px) scale(.75);opacity:.25}.slideshow-cards .slideshow-card:nth-child(5){transform:translateX(35px) scale(.65);opacity:.125}.slideshow-cards .slideshow-card:nth-child(6){transform:translateX(37.5px) scale(.5);opacity:.0625}@media screen and (max-width:1600px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical;line-height:1.5;max-height:6em}}@media screen and (max-width:1400px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical;line-height:1.5;max-height:4.5em}}@media screen and (max-width:1200px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.5;max-height:3em}}@media screen and (max-width:1050px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical;line-height:1.5;max-height:1.5em}}@media screen and (max-width:950px){.slideshow-cards .info .title{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical;line-height:1.5;max-height:1.5em}}`,"slideshow-cards-style");return{export:Object.assign({template:i},{components:{Icon:()=>r.importAsync("icon.vue"),DpiImg:()=>r.importAsync("dpi-img.vue")},store:store,filters:{bigNumber(e){return formatCount(e)}},props:["cards","error","title","showStat"],data(){return{cardQueue:[]}},methods:{...Vuex.mapActions(["toggleWatchlater"]),regenerateQueue(){if(this.cards.length<7){return}const e=[...this.cards];e.unshift(e.pop());this.cardQueue=e},previousCard(){this.cardQueue.unshift(this.cardQueue.pop())},nextCard(){this.cardQueue.push(this.cardQueue.shift())},refresh(){this.$emit("refresh")}},watch:{cards(){this.regenerateQueue()}},computed:{...Vuex.mapState(["watchlaterList"]),currentCard(){return this.cardQueue[1]}},mounted(){this.regenerateQueue()}})}}})(); onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/slip.min.js"] = (()=>{return(t,e)=>{const i=function(){"use strict";var t={container:{ariaRole:"listbox",tabIndex:0,focus:false},items:{ariaRole:"option",tabIndex:-1,focus:false}};var e=/Chrome\/[3-5]/.test(navigator.userAgent);var i=e;var n=e;var s=document.createElement("div").style;var o="transition"in s?"transition":"webkitTransition";var a="transform"in s?"transform":"webkitTransform";var r=a==="webkitTransform"?"-webkit-transform":"transform";var h="userSelect"in s?"userSelect":"webkitUserSelect";s[a]="translateZ(0)";var l=s[a]?"translateZ(0) ":"";var c=s[a]?"translateZ(1px) ":"";s=null;var u=0;var d=false;var f=function(){};function g(t,e){if("string"===typeof t)t=document.querySelector(t);if(!t||!t.addEventListener)throw new Error("Please specify DOM node to attach to");if(!this||this===window)return new g(t,e);this.options=e=e||{};this.options.keepSwipingPercent=e.keepSwipingPercent||0;this.options.minimumSwipeVelocity=e.minimumSwipeVelocity||1;this.options.minimumSwipeTime=e.minimumSwipeTime||110;this.options.ignoredElements=e.ignoredElements||[];if(!Array.isArray(this.options.ignoredElements))throw new Error("ignoredElements must be an Array");this.cancel=this.setState.bind(this,this.states.idle);this.onTouchStart=this.onTouchStart.bind(this);this.onTouchMove=this.onTouchMove.bind(this);this.onTouchEnd=this.onTouchEnd.bind(this);this.onMouseDown=this.onMouseDown.bind(this);this.onMouseMove=this.onMouseMove.bind(this);this.onMouseUp=this.onMouseUp.bind(this);this.onMouseLeave=this.onMouseLeave.bind(this);this.onSelection=this.onSelection.bind(this);this.onContainerFocus=this.onContainerFocus.bind(this);this.setState(this.states.idle);this.attach(t)}function m(t){var e=t.style[a];if(e){return{value:e,original:e}}if(window.getComputedStyle){var i=window.getComputedStyle(t).getPropertyValue(r);if(i&&i!=="none")return{value:i,original:""}}return{value:"",original:""}}function v(t,e){var i=0;var n=0;for(var s=0;s20&&t.y20){this.setState(this.states.idle)}if(t.x>t.y*1.2)return false},onLeave:function(){this.setState(this.states.idle)},onEnd:function(){var t=this.dispatch(this.target.originalTarget,"tap");this.setState(this.states.idle);return t}}},swipe:function t(){var e=false;var i=this.container;var n=v(this.target,this.container.childNodes);i.classList.add("slip-swiping-container");function s(){i.classList.remove("slip-swiping-container")}this.target.height=this.target.node.offsetHeight;return{leaveState:function(){if(e){this.animateSwipe(function(t){t.node.style[a]=t.baseTransform.original;if(this.dispatch(t.node,"afterswipe")){s();return true}else{this.animateToZero(undefined,t)}}.bind(this))}else{this.animateToZero(s)}},onMove:function(){var t=this.getTotalMovement();if(Math.abs(t.y)this.options.minimumSwipeVelocity&&t.time>this.options.minimumSwipeTime||this.options.keepSwipingPercent&&s>this.options.keepSwipingPercent;if(o){if(this.dispatch(this.target.node,"swipe",{direction:t.directionX,originalIndex:n})){e=true}}else{this.dispatch(this.target.node,"cancelswipe")}this.setState(this.states.idle);return!o}}},reorder:function e(){if(this.target.node.focus&&t.items.focus){this.target.node.focus()}this.target.height=this.target.node.offsetHeight;var i;if(this.options.ignoredElements.length){var s=this.container;var o=s.tagName.toLowerCase();if(s.getAttribute("id")){o="#"+s.getAttribute("id")}else if(s.classList.length){o+="."+s.getAttribute("class").replace(" ",".")}o+=" > ";this.options.ignoredElements.forEach(function(t){o+=":not("+t+")"});try{i=s.parentNode.querySelectorAll(o)}catch(t){if(t instanceof DOMException&&t.name==="SyntaxError")throw new Error("ignoredElements you specified contain invalid query");else throw t}}else{i=this.container.childNodes}var r=v(this.target,i);var u;var d=this.target.node.offsetTop+this.target.height/2;var f=[];for(var g=0;gt.y){n=e}else if(i.pos>0&&t.y>0&&i.post.y){break}}i=e}else{for(e=f.length-1;e>=0;e--){if(f[e].pos1){this.setState(this.states.idle);return}if(!this.setTarget(t))return;this.startAtPosition({x:t.touches[0].clientX,y:t.touches[0].clientY,time:t.timeStamp})},setTarget:function(t){var e=this.findTargetNode(t.target);if(!e){this.setState(this.states.idle);return false}var i=this.options.scrollContainer;if(!i){var n=document.scrollingElement||document.documentElement;i=e.parentNode;while(i){if(i==n)break;if(i!=document.body&&i.scrollHeight>i.clientHeight&&window.getComputedStyle(i)["overflow-y"]!="visible")break;i=i.parentNode}i=i||n}this.target={originalTarget:t.target,node:e,scrollContainer:i,origScrollTop:i.scrollTop,origScrollHeight:i.scrollHeight,baseTransform:m(e)};return true},startAtPosition:function(t){this.startPosition=this.previousPosition=this.latestPosition=t;this.setState(this.states.undecided)},updatePosition:function(t,e){if(this.target==null){return}this.latestPosition=e;if(this.state.onMove){if(this.state.onMove.call(this)===false){t.preventDefault()}}if(this.latestPosition.time-this.previousPosition.time>100){this.previousPosition=this.latestPosition}},onMouseMove:function(t){t.stopPropagation();this.updatePosition(t,{x:t.clientX,y:t.clientY,time:t.timeStamp})},onTouchMove:function(t){t.stopPropagation();this.updatePosition(t,{x:t.touches[0].clientX,y:t.touches[0].clientY,time:t.timeStamp});this.canPreventScrolling=false},onMouseUp:function(t){t.stopPropagation();if(this.usingTouch||t.button!==0)return;if(this.state.onEnd&&false===this.state.onEnd.call(this)){t.preventDefault()}},onTouchEnd:function(t){t.stopPropagation();if(t.touches.length>1){this.cancel()}else if(this.state.onEnd&&false===this.state.onEnd.call(this)){t.preventDefault()}},getTotalMovement:function(){var t=this.target.scrollContainer.scrollTop-this.target.origScrollTop;return{x:this.latestPosition.x-this.startPosition.x,y:this.latestPosition.y-this.startPosition.y+t,time:this.latestPosition.time-this.startPosition.time}},getAbsoluteMovement:function(){var t=this.getTotalMovement();return{x:Math.abs(t.x),y:Math.abs(t.y),time:t.time,directionX:t.x<0?"left":"right",directionY:t.y<0?"up":"down"}},updateScrolling:function(){var t=40,e=0;var i=this.target.scrollContainer,n=i.getBoundingClientRect(),s=this.target.node.getBoundingClientRect(),o=Math.min(n.bottom,window.innerHeight)-s.bottom,a=s.top-Math.max(n.top,0),r=this.target.origScrollHeight-Math.min(i.clientHeight,window.innerHeight);if(o0?"":"-")+"100%,0) "+l+e.baseTransform.value;setTimeout(function(){if(t.call(this,e)){i.forEach(function(t){t.node.style[a]=n+t.baseTransform.value});setTimeout(function(){i.forEach(function(t){t.node.style[a]="translate(0,0) "+l+t.baseTransform.value});setTimeout(function(){i.forEach(function(t){t.node.style[a]=t.baseTransform.original})},101)},1)}}.bind(this),101)}};if("function"===typeof define&&define.amd){define(function(){return g})}if("object"===typeof module&&module.exports){module.exports=g}return g}();return{export:{Slip:i}}}})(); onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/style.min.css"] = `.bili-wrapper{display:flex!important;justify-content:center!important;align-items:center!important;height:50px!important}.bili-header-m>.nav-menu,.link-navbar,.link-navbar .main-ctnr .nav-items-ctnr,.link-navbar-ctnr .link-navbar,.link-navbar-ctnr .link-navbar .main-ctnr .nav-items-ctnr,.nav-header-wrapper{background:var(--theme-color)!important}.bili-header-m>.nav-menu,.link-navbar-ctnr,.nav-header-wrapper{box-shadow:var(--theme-color-70) 0 2px 10px 1px!important}div.stardust-player{background:#fff!important}.nav-header-wrapper>.nav-header,.nav-mask{background-color:transparent!important}.link-navbar,.nav-mask{box-shadow:none!important}.nav-con{flex-grow:10!important;flex-shrink:0!important}.nav-con.fl{margin-left:-2em!important}.nav-search-box{margin:9px 0 0!important}.bili-header-m .nav-menu .nav-con .nav-item .t,.link-navbar .main-ctnr .custom-link>a,.link-navbar .main-ctnr .nav-logo,.link-navbar .main-ctnr .nav-switcher,.link-navbar .nav-item,.link-navbar .nav-item .icon-font,.link-navbar .nav-item.selected .label,.link-navbar .nav-item:hover,.my-link-btn,.nav-header-wrapper .nav-header .nav-header-mainsite,.nav-header-wrapper .nav-header .order-center,.shortcuts-ctnr,.shortcuts-ctnr .shortcut-item,.stardust-video .nav-menu .nav-con .nav-item.home .drop,.stardust-video .nav-menu .nav-con .nav-item.home .header-icon-Navbar_logo{color:var(--foreground-color-d)!important}.stardust-video .nav-menu .nav-con .nav-item.home .header-icon-Navbar_logo{transform:scale(.75)!important;top:7px!important}.stardust-video .nav-menu .up-load .up-nav{top:42px!important}.link-navbar .nav-item:hover,.link-navbar-ctnr .link-navbar .nav-item:hover,.link-navbar-ctnr .shortcuts-ctnr .shortcut-item:hover,.my-link-btn:hover,.publish-btn:hover,.shortcuts-ctnr .shortcut-item:hover,li.nav-item:not(.profile-info):hover{background-color:hsla(0,0%,var(--brightness),.2)!important}.link-navbar .nav-item:hover .nav-link .label,.my-link-btn .label:hover,.publish-btn:hover::after,.shortcuts-ctnr .shortcut-item .label-wrapper .text:hover,li.nav-item.home:hover{background:0 0!important}.vip-m{background:#fff!important}a.t>i.bili-icon,a.t>i.bili-icon-logo{width:50px!important;left:-60px!important;top:0!important;height:50px!important;background-position-y:12px!important}.link-navbar .nav-item:first-child::before,.main-ctnr .nav-logo:before,.nav-header-wrapper .nav-header .nav-header-logo,.nav-header-wrapper .nav-header .nav-header-tv-icon,.nav-header-wrapper .nav-header .order-icon,a.t>i.bili-icon,a.t>i.bili-icon-logo{filter:brightness(0) var(--invert-filter)!important;opacity:.81!important}#entryOld,.b-icon-app,.blp-red-tip::after,.main-container .entry-old,.nav-search-submit,.title-icon,body>#Header{display:none!important}.bilibili-player-video-inputbar{display:flex!important}.i-face>.face,.user-panel-ctnr .msg-hinter{box-shadow:0 0 2px 1.5px #0002!important}div.up-load{margin-top:8px!important;margin-left:9px!important;height:32px!important;order:4!important;flex-grow:0;flex-shrink:0}.stardust-video .nav-menu .nav-wrapper{padding:0 5rem!important}.publish-btn{height:40px!important;line-height:40px!important;background:var(--theme-color)!important;border:1px solid!important;border-radius:5px!important;box-shadow:none!important;top:calc(50% - 20px)!important;transition:.2s!important}.publish-panel{margin-top:7px!important}.my-link-btn{border-radius:0!important}.main-ctnr .search-bar-ctnr .search-bar input,.slot-ctnr a{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:0 2px 10px 1px #0002!important}.u-link{background:0 0!important;color:var(--foreground-color-d)!important;border-radius:4px!important;line-height:30px!important;height:30px!important;transition:background-color .2s!important}.shortcuts-ctnr .shortcut-item .hinter,.shortcuts-ctnr .shortcut-item .num-hinter,.u-link{border:1px solid!important}.u-link:hover{opacity:1!important;background-color:hsla(0,0%,var(--brightness),.2)!important}#nav_searchform,.stardust-video .nav-con .nav-search{width:130px!important}.stardust-video .nav-con .nav-search .nav-search-keyword{color:#222!important;width:120px!important;padding-right:32px}.nav-header-wrapper .nav-header .nav-header-search-bar,.stardust-video .nav-con #nav_searchform{border-radius:4px!important;background:#fffb!important;border:none!important;transition:background-color .2s!important;box-shadow:0 2px 10px 1px #0002;padding-right:0!important}.search-bar-ctnr .search-bar{background-color:#fffd!important;transition:.2s!important}.nav-header-wrapper .nav-header .nav-header-search-bar:focus-within,.nav-header-wrapper .nav-header .nav-header-search-bar:hover,.search-bar-ctnr .search-bar:focus-within,.search-bar-ctnr .search-bar:hover,.stardust-video .nav-con #nav_searchform:focus-within,.stardust-video .nav-con #nav_searchform:hover{background-color:#fff!important}#bilibiliPlayer{box-shadow:0 4px 16px 0 var(--theme-color-40)!important}.blur-bg{opacity:var(--blur-background-opacity)!important;filter:blur(20px)!important}.suggest-item .cancel{width:28px!important}.stardust-video .nav-con ul.bilibili-suggest{margin-left:-35px!important;width:200px!important}li.suggest-item>a{max-width:155px!important}.nav-item div.num{box-shadow:0 .5px 4px 0 #0004!important}#primary_menu,#primary_menu>ul.nav-menu{display:flex!important;align-items:center!important}.bilibili-player-video-btn-quality{width:auto!important;margin:0 6px!important}#primary_menu,div.nav-gif{padding:0!important}.filter-item.search,body{margin:0!important}.input-box textarea{padding:8px!important}.link-navbar .main-ctnr .nav-switcher.open-btn{filter:brightness(0) invert(1)!important;opacity:.8!important}.guard-rank-cntr.open .tip.rank-desc{visibility:visible!important}.guard-rank-cntr .rank-cntr .tip{visibility:hidden!important}.tag-container .tag-item .tag-border .tag-border-inner{width:100%!important}.bilibili-player-video-control{background-color:transparent!important}.mouse-hover .bilibili-player-video-control-top,.video-control-show .bilibili-player-video-control-top{left:0!important;right:0!important;bottom:32px!important}.bilibili-player-video-control-top{left:-12px!important;right:-12px!important;bottom:0!important}.bilibili-player .bilibili-player-area .bilibili-player-video-control-wrap{bottom:0!important}.showSearch .nav-search-submit{top:6px!important}.nav-header-wrapper .nav-header .nav-header-search-bar::placeholder,.search-bar-ctnr .search-bar .search-btn,.search-bar-ctnr .search-bar input::placeholder{color:#888!important}.card-list .card{border:none!important;border-radius:4px!important}@media only screen and (min-width:1291px){.nav-con{margin:0 1em!important}#nav_searchform,.stardust-video .nav-con .bilibili-suggest.nav,.stardust-video .nav-con .nav-search{width:250px!important}.stardust-video .nav-con .nav-search .nav-search-keyword{width:240px!important}.stardust-video .nav-con ul.bilibili-suggest{margin-left:0!important;width:250px!important}.stardust-video .nav-con li.suggest-item>a{max-width:205px!important}}@media screen and (min-width:750px){.player .bilibili-player.mode-fullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-top,.player .bilibili-player.mode-webfullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-top{left:-12px!important;right:-12px!important;bottom:0!important}.mode-fullscreen .bilibili-player-area.mouse-hover:not(.disable-original-hover) .bilibili-player-video-control-top,.mode-fullscreen .bilibili-player-area.video-control-show:not(.disable-original-hover) .bilibili-player-video-control-top,.mode-webfullscreen .bilibili-player-area.mouse-hover:not(.disable-original-hover) .bilibili-player-video-control-top,.mode-webfullscreen .bilibili-player-area.video-control-show:not(.disable-original-hover) .bilibili-player-video-control-top{left:0!important;right:0!important;bottom:42px!important}}`; onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/superchat-translate.min.css"] = `.chat-history-panel .chat-item.superChat-card-detail .input-contain .text{display:block!important}`; @@ -1248,7 +1248,7 @@ onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/mi onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/touch-player.min.css"] = `.touch-video-box-wrapper{display:flex;align-items:center;justify-content:center;width:100%;height:100%;position:absolute;top:0;left:0;z-index:14;pointer-events:none}.touch-video-box{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:rgba(0,0,0,.85);position:relative;max-width:390px;max-height:180px;border:4px solid transparent;transform-origin:center}.round-corner .touch-speed,.round-corner .touch-video-box{border-radius:var(--corner-radius)}.touch-video-box-wrapper.simple{align-items:flex-start}.touch-video-box.animation{transition:.2s cubic-bezier(.18,.89,.32,1.28)}.touch-video-info{color:#fff;font-size:14pt;text-align:center;display:flex;align-items:center;justify-content:center;flex-direction:column;height:100%;width:100%}.touch-row{flex-grow:1;display:flex;align-items:center;justify-content:center;width:100%}.touch-info{display:block;color:var(--theme-color)}.touch-result{display:block;font-size:12pt;line-height:150%}.touch-speed{display:block;background:rgba(0,0,0,.1);padding:.5em}.touch-progress{position:absolute;bottom:0;left:0;background:var(--theme-color);width:0;height:4px}.round-corner .touch-progress{border-radius:2px}.touch-row-item{flex:1 0 0;display:none;align-items:center;justify-content:center}.touch-row-item-wide{flex:1.5 0 0;display:flex;align-items:center;justify-content:center}.videoshot{background-color:transparent;background-image:none;transform-origin:center;transform:scale(.9)}.adjust-closed{opacity:0;transform:scale(.9)}.adjust-opened{opacity:1;transform:scale(1)}.touch-video-info.speed .touch-row-item{display:flex}.touch-video-info.cancel .touch-progress,.touch-video-info.cancel .touch-result{opacity:0}.bilibili-player-video-control-top{left:0!important;right:0!important}.bilibili-player-video-control-top,.bilibili-player-video-progress-detail{bottom:0!important}div.bilibili-player-video-control{height:38px!important;align-items:center!important}.bilibili-player-video-btn{flex-grow:1!important;height:100%!important;display:flex!important;align-items:center!important;justify-content:center!important}.pbp-panel-icon-wrap{height:auto!important;display:flex!important;transform:translateY(-1px)!important}.bilibili-player-video-btn-pagelist .bilibili-player-video-btn-name{display:none!important}.bilibili-player-video-btn-pagelist::before{display:block;width:36px;color:#eee;content:"";font:22px/1 "Material Design Icons";text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.bilibili-player-video-inputbar,.bilibili-player-video-progress{flex-grow:30!important}.bilibili-player-video-quality-menu{display:flex!important;align-items:center!important;justify-content:center!important}.bilibili-player-iconfont-color,.bilibili-player-iconfont-danmaku,.bilibili-player-iconfont-danmaku-off,.bilibili-player-iconfont-fullscreen,.bilibili-player-iconfont-pause,.bilibili-player-iconfont-repeat,.bilibili-player-iconfont-setting,.bilibili-player-iconfont-start,.bilibili-player-iconfont-volume,.bilibili-player-iconfont-volume-max,.bilibili-player-iconfont-volume-min,.bilibili-player-iconfont-web-fullscreen,.bilibili-player-iconfont-widescreen{font-size:2.5rem!important}.bilibili-player-iconfont-next{font-size:2rem!important}.bilibili-player-video-btn-setting-panel,.bilibili-player-video-danmaku-setting-wrap,.bilibili-player.mode-fullscreen .bilibili-player-video-sendbar,.bpui-selectmenu-list{left:unset!important;bottom:38px!important}.bilibili-player-video-volumebar-wrp{left:unset!important}.bilibili-player-video-control-wrap{padding:0!important}.bilibili-player-video-control-bottom{padding:0!important;align-items:center!important}.bilibili-player-iconfont-next,.bilibili-player-iconfont-setting,.bilibili-player-video-btn-volume.video-state-volume-max .bilibili-player-iconfont-volume-max,.bilibili-player-video-btn-volume.video-state-volume-min .bilibili-player-iconfont-volume-min,.bilibili-player-video-btn-volume:not(.video-state-volume-max):not(.video-state-volume-min) .bilibili-player-iconfont-volume,.bilibili-player-video-control-bottom-left{display:flex!important;align-items:center!important}.bilibili-player-video-btn-danmaku{flex-grow:0!important;display:flex!important;align-items:center!important;height:100%!important;margin:0!important;padding:0!important}.bilibili-player.mode-webfullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-bottom-right{flex-grow:1!important}.bilibili-player.mode-fullscreen .bilibili-player-video-sendbar{bottom:0!important}.bilibili-player .bilibili-player-area #bilibili_pbp,.bilibili-player .bilibili-player-area #bilibili_pbp_canvas{left:0!important;width:100%!important}.bilibili-player .bilibili-player-area #bilibili_pbp_pin,.bilibili-player .bilibili-player-area .bilibili-player-video-control-wrap:hover #bilibili_pbp_pin{right:0!important}.bilibili-player .bilibili-player-area.video-control-show:not(.disable-original-hover) .bilibili-player-video-control-top{left:0!important;right:0!important;bottom:31px!important}.bilibili-player .bilibili-player-area.video-control-show:not(.disable-original-hover) #bilibili_pbp,.bilibili-player .bilibili-player-area.video-control-show:not(.disable-original-hover) #bilibili_pbp_canvas{bottom:calc(100% + 3px)!important}.bilibili-player .bilibili-player-area.video-control-show:not(.disable-original-hover) .bilibili-player-video-progress-detail{bottom:7px!important}.bilibili-player .bilibili-player-area .bilibili-player-video-control .bilibili-player-video-btn.bilibili-player-video-btn-fullscreen{margin-right:0!important;padding-right:8px!important}.bilibili-player .bilibili-player-area .bilibili-player-video-control .bilibili-player-video-btn.bilibili-player-video-btn-start{padding-left:8px!important;flex-grow:1.2!important;margin-right:0!important;margin-left:0!important}.bilibili-player .bilibili-player-area .bilibili-player-video-control .bilibili-player-video-btn{padding:0 3px!important}.bilibili-player .bilibili-player-area .bilibili-player-video-control-bottom,.bilibili-player .bilibili-player-area .bilibili-player-video-control-bottom-right,.bilibili-player-video-control-bottom-left{height:100%!important;margin:0!important}.bilibili-player-video-btn-setting-panel-hover-bridge{display:none!important}#bofqi *{-webkit-tap-highlight-color:transparent!important}.disable-original-hover .bilibili-player-video-control-bottom,.disable-original-hover .bilibili-player-video-control-mask{opacity:0!important;visibility:hidden!important}.disable-original-hover .bilibili-player-video-control-wrap{opacity:1!important;visibility:visible!important}.disable-original-hover .bilibili-player-video-control-top{left:0!important;right:0!important;bottom:0!important}.disable-original-hover #bilibili_pbp,.disable-original-hover #bilibili_pbp_canvas{left:0!important;width:100%!important;bottom:3px!important;opacity:0!important}.disable-original-hover #bilibili_pbp.pin,.disable-original-hover #bilibili_pbp_canvas.pin{opacity:1!important}.disable-original-hover #bilibili_pbp_pin{opacity:0!important}.disable-original-hover.touch-video-control-show .bilibili-player-video-control-bottom,.disable-original-hover.touch-video-control-show .bilibili-player-video-control-mask{opacity:1!important;visibility:visible!important}.disable-original-hover.touch-video-control-show #bilibili_pbp,.disable-original-hover.touch-video-control-show #bilibili_pbp_canvas{bottom:calc(100% + 3px)!important;opacity:1!important}.disable-original-hover.touch-video-control-show #bilibili_pbp_pin{opacity:1!important}.disable-original-hover.touch-video-control-show .bilibili-player-video-progress-detail{bottom:0!important}.disable-original-hover.touch-video-control-show .bilibili-player-video-control-top{bottom:38px!important}.disable-original-hover .bilibili-player-video-control-wrap:hover .bilibili-player-video-control-top .bilibili-player-video-progress-slider,.disable-original-hover.bilibili-player-area.video-control-show .bilibili-player-video-control-top .bilibili-player-video-progress-slider{height:2px!important}.disable-original-hover.bilibili-player-area .bilibili-player-video-control .bilibili-player-video-progress-detail.show{bottom:1px!important}.disable-original-hover.bilibili-player-area .subtitle-position.subtitle-position-bc,.disable-original-hover.bilibili-player-area .subtitle-position.subtitle-position-bl,.disable-original-hover.bilibili-player-area .subtitle-position.subtitle-position-br{bottom:20px!important}.disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-bc,.disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-bl,.disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-br{bottom:44px!important}.bilibili-player.mode-fullscreen .disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-bc,.bilibili-player.mode-fullscreen .disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-bl,.bilibili-player.mode-fullscreen .disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-br,.bilibili-player.mode-webfullscreen .disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-bc,.bilibili-player.mode-webfullscreen .disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-bl,.bilibili-player.mode-webfullscreen .disable-original-hover.touch-video-control-show .subtitle-position.subtitle-position-br{bottom:60px!important}.disable-original-hover .bilibili-player:not(.mode-webfullscreen):not(.mode-fullscreen) .bilibili-player-area:not(.disable-original-hover) .bilibili-player-video-control-wrap:hover .bilibili-player-video-control-top .bilibili-player-video-progress-slider,.disable-original-hover .bilibili-player:not(.mode-webfullscreen):not(.mode-fullscreen) .bilibili-player-area:not(.disable-original-hover).video-control-show .bilibili-player-video-control-top .bilibili-player-video-progress-slider{height:74px!important}.bilibili-player.mode-fullscreen .disable-original-hover .bilibili-player-video-control-top{opacity:1!important}@media screen and (min-width:750px){.bilibili-player.mode-fullscreen .bilibili-player-video-btn-pagelist::before,.bilibili-player.mode-webfullscreen .bilibili-player-video-btn-pagelist::before{font-size:26px}.bilibili-player.mode-fullscreen .bilibili-player-video-control-wrap .bilibili-player-video-inputbar,.bilibili-player.mode-webfullscreen .bilibili-player-video-control-wrap .bilibili-player-video-inputbar{background:#fff1!important}.bilibili-player.mode-fullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control,.bilibili-player.mode-webfullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control{height:100%!important;margin:0!important}.bilibili-player.mode-fullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-bottom,.bilibili-player.mode-webfullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-bottom{margin:0!important}.bilibili-player.mode-fullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-bottom-left,.bilibili-player.mode-webfullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-bottom-left{height:100%!important}.bilibili-player.mode-fullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-top,.bilibili-player.mode-webfullscreen .bilibili-player-video-control-wrap .bilibili-player-video-control-top{left:0!important;right:0!important}.bilibili-player-video-btn.bilibili-player-video-btn-start{flex-grow:.5!important}.player .bilibili-player.mode-fullscreen .disable-original-hover .bilibili-player-video-control-top,.player .bilibili-player.mode-webfullscreen .disable-original-hover .bilibili-player-video-control-top{left:0!important;right:0!important;bottom:0!important}.player .bilibili-player.mode-fullscreen .disable-original-hover.touch-video-control-show .bilibili-player-video-control-top,.player .bilibili-player.mode-webfullscreen .disable-original-hover.touch-video-control-show .bilibili-player-video-control-top{left:0!important;right:0!important;bottom:54px!important}.player .bilibili-player.mode-fullscreen .bilibili-player-area.mouse-hover:not(.disable-original-hover) .bilibili-player-video-control-top,.player .bilibili-player.mode-fullscreen .bilibili-player-area.video-control-show:not(.disable-original-hover) .bilibili-player-video-control-top,.player .bilibili-player.mode-webfullscreen .bilibili-player-area.mouse-hover:not(.disable-original-hover) .bilibili-player-video-control-top,.player .bilibili-player.mode-webfullscreen .bilibili-player-area.video-control-show:not(.disable-original-hover) .bilibili-player-video-control-top{left:0!important;right:0!important;bottom:48px!important}}`; onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/touch-player.min.js"] = (()=>{return(t,e)=>{const i=t=>{let e=0;let i=0;while(t&&!isNaN(t.offsetLeft)&&!isNaN(t.offsetTop)){e+=t.offsetLeft-t.scrollLeft;i+=t.offsetTop-t.scrollTop;t=t.offsetParent}return{x:e,y:i}};const s=t=>{t=Math.abs(t);const e=Math.floor(t/3600);const i=Math.floor((t-e*3600)/60);const s=t-e*3600-i*60;let o=fixed(s)+"秒";if(i>0){o=i+"分"+o}if(e>0){o=e+"时"+o}return o};const o=t=>{t=Math.abs(t);const e=Math.floor(t/3600);const i=Math.floor((t-e*3600)/60);const s=t-e*3600-i*60;let o=(s<10?"0":"")+fixed(s);o=(i<10?"0":"")+i+":"+o;o=(e<10?"0":"")+e+":"+o;return o};class n{constructor(t){this.action=new l(t);this.onTouchStart=null;this.onTouchEnd=null;this.direction=null;t.addEventListener("touchstart",t=>{this.xDown=t.touches[0].clientX;this.yDown=t.touches[0].clientY;if(this.onTouchStart){this.onTouchStart(t)}});t.addEventListener("touchmove",e=>{if(!this.xDown||!this.yDown){return}const s=e.touches[0].clientX;const o=e.touches[0].clientY;const n=i(t);const l={x:(e.touches[0].pageX-n.x)/t.clientWidth,y:(e.touches[0].pageY-n.y)/t.clientHeight,width:t.clientWidth,height:t.clientHeight};const a=this.xDown-s;const c=this.yDown-o;if(!this.direction){let t="";if(Math.abs(a)>Math.abs(c)){t="horizontal"}else{t="vertical"}this.direction=t}else{if(this.direction==="vertical"){this.action.startAction(this.direction,c,l)}else if(this.direction==="horizontal"){this.action.startAction(this.direction,-a,l)}}if(e.cancelable){e.preventDefault()}});t.addEventListener("touchend",t=>{this.xDown=null;this.yDown=null;this.direction=null;if(this.onTouchEnd){this.onTouchEnd(t)}})}}class l{constructor(t){this.lowSpeedForward=null;this.lowSpeedBackward=null;this.mediumSpeedForward=null;this.mediumSpeedBackward=null;this.highSpeedForward=null;this.highSpeedBackward=null;this.volumeUp=null;this.volumeDown=null;this.brightnessUp=null;this.brightnessDown=null;this.speedCancel=null;this.minSwipeDistance=20;this.onActionStart=null;this.onActionEnd=null;this.element=t;this.touchStart=false;this.startPosition=null;this.lastAction=null;t.addEventListener("touchstart",()=>{this.touchStart=true});t.addEventListener("touchend",()=>{this.startPosition=null;this.onActionEnd&&this.onActionEnd(this.lastAction);this.lastAction=null})}startAction(t,e,i){if(this.touchStart){this.onActionStart&&this.onActionStart(t);this.startPosition=i;this.touchStart=false}if(t==="vertical"){let t;let s;if(this.startPosition.x<1/2){t=this.brightnessUp;s=this.brightnessDown;const o=Math.round(200*(e-this.minSwipeDistance)/(1.5*i.height));if(e>0){t&&t(o)}else{s&&s(o)}this.lastAction={type:"brightness",brightness:o}}else{t=this.volumeUp;s=this.volumeDown;const o=Math.round(200*(e-this.minSwipeDistance)/(1.5*i.height));if(e>0){t&&t(o)}else{s&&s(o)}this.lastAction={type:"volume",volume:o}}}else if(t==="horizontal"){if(i.y<1/3&&(i.x<.1||i.x>.9)){this.speedCancel&&this.speedCancel();this.lastAction=null}else{let t=0;let i;let s;if(this.startPosition.y<1/3){t=.05;i=this.lowSpeedForward;s=this.lowSpeedBackward}else if(this.startPosition.y>=1/3&&this.startPosition.y<=2/3){t=.2;i=this.mediumSpeedForward;s=this.mediumSpeedBackward}else{t=1;i=this.highSpeedForward;s=this.highSpeedBackward}if(e>0){const s=(e-this.minSwipeDistance)*t;i&&i(s);this.lastAction={type:"playback",seconds:s}}else{const i=(e+this.minSwipeDistance)*t;s&&s(i);this.lastAction={type:"playback",seconds:i}}}}}}class a{constructor(){this.aid=unsafeWindow.aid;this.cid=unsafeWindow.cid;this.cidData=null;this.supportWebp=a.supportWebp}getVideoshot(t,e){if(!(this.aid&&this.cid)){return}if(!this.cidData){Ajax.getText(`https://api.bilibili.com/x/player/videoshot?aid=${this.aid}&cid=${this.cid}&index=1`).then(i=>{this.cidData=JSON.parse(i).data;this.getVideoshot(t,e)})}else{const i=this.cidData;const s=i.index;let o=0;for(let e=0;e=s[e]&&tt.replace(".jpg",".jpg@.webp"))}const l=parseInt(i.pv_x_len)||10;const a=parseInt(i.pv_y_len)||10;const c=parseInt(i.pv_x_size)||160;const r=parseInt(i.pv_y_size)||90;const h=-(o%100%l)*c;const d=-Math.floor(o%100/a)*r;e({width:c,height:r,backgroundImage:`url(${n[Math.floor(o/100)]})`,backgroundPosition:`${h}px ${d}px`})}}static get supportWebp(){try{const t=document.createElement("canvas");if(t.getContext&&t.getContext("2d")){try{return t.toDataURL("image/webp").indexOf("data:image/webp")===0}catch(t){return false}}else{return false}}catch(t){return false}}}function c(t){t.unbind("click")}function r(t){if($(".touch-video-box").length!==0){return}$(".bilibili-player-video-subtitle").before(`\n
\n
\n
\n
\n
\n\n
\n
\n\n
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n
`);let e=$("video");const i=e.prop("duration");const l=new n(t.get(0));const c=document.querySelector(".touch-video-info");const r=document.querySelector(".touch-video-box");const h=50;let d=100;let u=Math.round(e.prop("volume")*100);const p=_.debounce(t=>{t/=100;if(t<0){t=0}else if(t>1){t=1}e.prop("volume",t);$(".bilibili-player-video-volume-num").text(Math.round(t*100));$(".bui-thumb").css("transform",`translateY(-${48*t}px)`);$(".bui-track-vertical .bui-bar").css("transform",`scaleY(${t})`);if(t===0){$(".bilibili-player-video-btn-volume").addClass("video-state-volume-min");$(".bilibili-player-video-btn-volume").removeClass("video-state-volume-max");e.prop("muted",true)}else if(t===1){$(".bilibili-player-video-btn-volume").removeClass("video-state-volume-min");$(".bilibili-player-video-btn-volume").addClass("video-state-volume-max");e.prop("muted",false)}else{$(".bilibili-player-video-btn-volume").removeClass("video-state-volume-min");$(".bilibili-player-video-btn-volume").removeClass("video-state-volume-max");e.prop("muted",false)}},h);l.action.onActionStart=(t=>{r.classList.add("adjust-opened");c.classList[t==="vertical"?"remove":"add"]("speed");e=$("video");u=Math.round(e.prop("volume")*100);const i=e.css("filter").match(/brightness\((.+)\)/);d=Math.trunc((i?i[1]:1)*100)});const v=new a;const f=t=>{return n=>{const l=e.prop("currentTime");const a=fixed(100*l/i);let r=l+n;let h=fixed(100*r/i);let d=n;if(r>i){r=i;h=100;d=i-l}else if(r<0){r=0;h=0;d=l}const u=`${o(l)} (${a}%)
👇
${o(r)} (${h}%)`;c.classList.remove("cancel");c.querySelector(".touch-speed").innerHTML=`${t}速`;c.querySelector(".touch-info").innerHTML=`进度: ${n>0?"+":"-"}${s(d)}`;c.querySelector(".touch-result").innerHTML=u;v.getVideoshot(r,t=>$(".videoshot").css(t));$(".touch-progress").css("width",`${h}%`)}};l.action.lowSpeedBackward=f("低");l.action.lowSpeedForward=f("低");l.action.mediumSpeedBackward=f("中");l.action.mediumSpeedForward=f("中");l.action.highSpeedBackward=f("高");l.action.highSpeedForward=f("高");const b=t=>{let e=u+t;let i=Math.abs(t);if(e>100){e=100;i=100-u}else if(e<0){e=0;i=u}const s=`${u} 👉 ${e}`;p(e);c.classList.remove("cancel");c.querySelector(".touch-info").innerHTML=`音量: ${t>0?"+":"-"}${i}`;c.querySelector(".touch-result").innerHTML=s;$(".touch-progress").css("width",`${e}%`)};l.action.volumeUp=b;l.action.volumeDown=b;const m=_.debounce(t=>{e.css("filter",`brightness(${t/100})`)},h);const w=t=>{let e=d+t;let i=Math.abs(t);if(e<0){e=0;i=d}const s=`${d} 👉 ${e}`;m(e);c.classList.remove("cancel");c.querySelector(".touch-info").innerHTML=`亮度: ${t>0?"+":"-"}${i}`;c.querySelector(".touch-result").innerHTML=s;$(".touch-progress").css("width",`${e>100?100:e}%`)};l.action.brightnessUp=w;l.action.brightnessDown=w;l.action.speedCancel=(()=>{c.querySelector(".touch-info").innerHTML=`取消时间调整`;c.classList.add("cancel")});l.action.onActionEnd=(t=>{if(!unsafeWindow.touchPlayerDebug){if(t){if(t.type==="playback"){let s=e.prop("currentTime");s+=t.seconds;if(s<0){s=0}else if(s>i){s=i}e.prop("currentTime",s)}else if(t.type==="volume"){const t=JSON.parse(localStorage.bilibili_player_settings);t.video_status.volume=e.prop("volume");localStorage.bilibili_player_settings=JSON.stringify(t)}}r.classList.remove("adjust-opened")}})}function h(t){if(!t.hasClass("disable-original-hover")){t.addClass("disable-original-hover");const e=unsafeWindow.$(".bilibili-player-video");const i="touch-video-control-show";const s=e.data("events").click[0].handler;const o=new DoubleClickEvent(t=>s(t),()=>t.toggleClass(i));e.unbind("click");o.bind(e[0])}}const d=()=>{SpinQuery.any(()=>$(".bilibili-player-iconfont,.bilibili-player-video-quality-menu"),c);SpinQuery.condition(()=>$(".bilibili-player-video"),t=>t.length>0&&$("video").length>0&&$("video").prop("duration"),r);if(t.touchVideoPlayerDoubleTapControl){new SpinQuery(()=>$(".bilibili-player-area"),t=>t.length>0&&unsafeWindow.$&&unsafeWindow.$(".bilibili-player-video").data("events"),h).start()}};Observer.videoChange(d);e.applyStyle("touchPlayerStyle")}})(); onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/trending-videos.min.js"] = (()=>{return(t,e)=>{const i=async(t,e)=>{const i=await Ajax.getJsonWithCredentials(`https://api.bilibili.com/x/web-interface/ranking/index?day=${t}`);if(i.code!==0){throw new Error(i.message)}return i.data.map(e=>({id:e.aid+"-"+t,aid:parseInt(e.aid),title:e.title,upID:e.mid,upName:e.author,coverUrl:e.pic.replace("http://","https://"),description:e.description,durationText:e.duration,playCount:formatCount(e.play),coins:formatCount(e.coins),favorites:formatCount(e.favorites),watchlater:true}))};return{export:{getTrendingVideos:i}}}})(); -onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/trending-videos.vue.min.js"] = (()=>{return(a,n)=>{const t=`
热门
{{tab.name}}
`;n.applyStyleFromText(`.simple-home .trendings{display:flex;flex-direction:column}.simple-home .trendings .header{padding:0 8px}.simple-home .trendings .contents{--card-width:200px;--card-height:250px;--card-count:3;margin-top:16px;display:flex;overflow:auto;height:calc(var(--card-height) + 16px);width:calc((var(--card-width) + 16px) * var(--card-count));scroll-snap-type:x mandatory;scrollbar-width:none!important}@media screen and (max-width:1300px) and (min-width:900px){.simple-home .trendings .contents{--card-count:2}}@media screen and (max-width:1100px) and (min-width:900px){.simple-home .trendings .contents{--card-count:1}}@media screen and (min-width:1550px){.simple-home .trendings .contents{--card-count:4}}@media screen and (min-width:1850px){.simple-home .trendings .contents{--card-count:5}}.simple-home .trendings .contents::-webkit-scrollbar{width:0!important;height:0!important}.simple-home .trendings .contents .card-wrapper{padding:0 8px;scroll-snap-align:start;flex-shrink:0}`,"trending-videos-style");const e=[{name:"今日",day:1,url:"https://www.bilibili.com/ranking/all/0/0/1"},{name:"三日",day:3,url:"https://www.bilibili.com/ranking"},{name:"一周",day:7,url:"https://www.bilibili.com/ranking/all/0/0/7"}];return{export:Object.assign({template:t},{components:{VideoCard:()=>n.importAsync("video-card.vue")},data(){return{tabs:e,currentTab:e[0],trendingCards:[]}},watch:{currentTab(a){this.updateTrendingTab(a)}},methods:{async updateTrendingTab(a){const{getTrendingVideos:t}=await n.importAsync("trending-videos");this.trendingCards=await t(a.day)},changeTab(a){if(this.currentTab===a){open(a.url,"_blank")}else{this.currentTab=a}}},mounted(){this.updateTrendingTab(this.currentTab)}})}}})(); +onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/trending-videos.vue.min.js"] = (()=>{return(a,t)=>{const n=`
热门
{{tab.name}}
`;t.applyStyleFromText(`.simple-home .trendings{display:flex;flex-direction:column}.simple-home .trendings .header{padding:0 8px}.simple-home .trendings .contents{--card-width:200px;--card-height:250px;--card-count:3;margin-top:16px;display:flex;overflow:auto;height:calc(var(--card-height) + 16px);width:calc((var(--card-width) + 16px) * var(--card-count));scroll-snap-type:x mandatory;scrollbar-width:none!important}@media screen and (max-width:1300px) and (min-width:900px){.simple-home .trendings .contents{--card-count:2}}@media screen and (max-width:1100px) and (min-width:900px){.simple-home .trendings .contents{--card-count:1}}@media screen and (min-width:1550px){.simple-home .trendings .contents{--card-count:4}}.simple-home .trendings .contents::-webkit-scrollbar{width:0!important;height:0!important}.simple-home .trendings .contents .card-wrapper{padding:0 8px;scroll-snap-align:start;flex-shrink:0}`,"trending-videos-style");const i=[{name:"今日",day:1,url:"https://www.bilibili.com/ranking/all/0/0/1"},{name:"三日",day:3,url:"https://www.bilibili.com/ranking"},{name:"一周",day:7,url:"https://www.bilibili.com/ranking/all/0/0/7"}];return{export:Object.assign({template:n},{components:{VideoCard:()=>t.importAsync("video-card.vue")},data(){return{tabs:i,currentTab:i[0],trendingCards:[]}},watch:{currentTab(a){this.updateTrendingTab(a)}},methods:{async updateTrendingTab(a){const{getTrendingVideos:n}=await t.importAsync("trending-videos");this.trendingCards=await n(a.day)},changeTab(a){if(this.currentTab===a){open(a.url,"_blank")}else{this.currentTab=a}}},mounted(){this.updateTrendingTab(this.currentTab)}})}}})(); onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/tweets.min.css"] = `.nav-search-submit{display:block!important;color:var(--foreground-color-d)!important;transform:translateX(-125px);-webkit-tap-highlight-color:transparent}.nav-search-submit:hover{color:var(--foreground-color)!important}#nav_searchform{transition:.3s ease-out;box-shadow:none;width:0!important;padding:0!important}.preserve-rank>a{opacity:0!important;pointer-events:none}.showSearch .preserve-rank>a{opacity:.382!important;pointer-events:initial}.showSearch #nav_searchform{box-shadow:0 2px 10px 1px #0002;width:250px!important}.showSearch .nav-search-submit,.showSearch .nav-search-submit:hover{color:#888!important;transform:none}@media only screen and (max-width:1291px){.showSearch #nav_searchform{width:140px!important}}`; onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/url-params-clean.min.js"] = (()=>{return(e,t)=>{const o=["spm_id_from","from_source","from","seid","share_source","share_medium"];const r=()=>{const e=location.search.substring(1).split("&");const t=e.filter(e=>{if(o.some(t=>e.startsWith(`${t}=`))){return false}return true});if(e.length!==t.length){const e=t.join("&");const o=document.URL.replace(location.search,e?"?"+e:"");console.log("[URL params clean]",document.URL,o);history.replaceState({},document.title,o)}};Observer.videoChange(()=>r())}})(); onlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/min/v-checkbox.vue.min.js"] = (()=>{return(e,c)=>{const i=`
{{title}}
`;c.applyStyleFromText(`.v-checkbox{font-size:10pt;cursor:pointer;display:flex;align-items:center}.v-checkbox .mdi{font-size:15pt;line-height:1}.v-checkbox .content{flex-grow:1;text-align:left;padding:0 8px}.v-checkbox .mdi-checkbox-marked-circle{color:var(--theme-color);position:absolute;top:0;left:0;transform:scale(0);transition-timing-function:cubic-bezier(.6,-.28,.74,.05)}.v-checkbox .mdi-checkbox-blank-circle-outline{color:#8884;position:relative}.v-checkbox.checked .mdi-checkbox-blank-circle-outline{color:var(--theme-color)}.v-checkbox.checked .mdi-checkbox-marked-circle{transform:scale(1);transition-timing-function:cubic-bezier(.18,.89,.32,1.28)}`,"v-checkbox-style");return{export:Object.assign({template:i},{props:["checked","title"],methods:{toggleCheck(){this.$emit("update:checked",!this.checked)}}})}}})(); diff --git a/min/bundle.json b/min/bundle.json index e2e5d6a04..6d6820b72 100644 --- a/min/bundle.json +++ b/min/bundle.json @@ -149,8 +149,8 @@ "show-dead-video-title.min.js": "8D591930421EBA43A1BDF50DC8B645C1BD1A17E109FB1CFBCD6B78E6C74E1D68", "simple-home.vue.min.js": "BB936D1E635E21B72A81F448F86AE2E6773ADABC204BFE4BF78A02BB604E16C0", "simple-home-categories.vue.min.js": "577A1364C279FE87AB9F647264F18A42D33772B9F3C92FB7624D1E1926EAF6C1", - "simple-home-feeds.vue.min.js": "665E038C3BE0A5D597DEDA163F96C1A1462AEA85E24EE405D33A05FF4C0A04D3", - "simple-home-normal-category.vue.min.js": "5F01DA34A137FE1E7494719925DD1F476EFA6B60FB63CD7EF37637B61A5B2BA8", + "simple-home-feeds.vue.min.js": "A3E9FA6B6DA8C4D71B609761991DB28C874B81D57B3D88E6E8B29165CCB889AD", + "simple-home-normal-category.vue.min.js": "EEC13AF9CFE43F3E1A7370C5D91655F2BA072BFD9A6A806562F655A4BE84A2CF", "simplify-home.min.css": "50F0FA046D61ECE5183409CF97C8DBECB4CF64918DF813CD2B39BF9FBD314B42", "simplify-home.min.js": "F6D7F8E0D45847C3E056711AECE3832785603E7EF85A4B995C028F5CBE539C94", "simplify-home.vue.min.js": "62F246FD5C9172676A077DD1DFB1F5ACE0E018952D13E1AAD89B3EA2FD00F961", @@ -158,7 +158,7 @@ "simplify-liveroom.min.js": "EF4E04DC4EE637EADE98FE756C81008EDEDF318352F9AEF7E44CA8C53250F409", "skip-charge-list.min.css": "D3C988CE131CEBFAC8A60360529C83EC4AE1B9EA122F9A6924F19963E25A4FE9", "skip-charge-list.min.js": "D057258F8EE77D949147174585B1A8C640DDB74E0C0B711A50AEAC8D6792F49F", - "slideshow-cards.vue.min.js": "8F60BDB8B5573FD402D8F30F60EDA754D7D61D181B27A6BCF5877B90C9C19580", + "slideshow-cards.vue.min.js": "4C7122C26BDCDCE30F0C8A1239561EBA273E99AA3A7B6AAE2DDC1D78FADE9D7D", "slip.min.js": "320D17408D0509AA0E098D0A78BF87CD264518C04255CFE6AEBA796F9F68F8C3", "style.min.css": "27223BD1ABBB5D8E529B13C009B5099F53F75B26AA713E4C660C205C1121495B", "superchat-translate.min.css": "F4874FE716A750AE0D21DA44393F286E5AABFFA949476E2FA06CDBE2748CF095", @@ -173,7 +173,7 @@ "touch-player.min.css": "4E729A1477B488BB0449EEE5AB9BADF9EED3DF1AF8EE8207CB04A8D1D9842E4C", "touch-player.min.js": "0307516FD221386DA37F9C48223BA0E242BF52EF48F46D18A033042351968E94", "trending-videos.min.js": "1ED73F10D5A7C409CCBF91A97FBB0DE2AA16426F2216DF75F904E8A6389A46E9", - "trending-videos.vue.min.js": "B58FA3AE73BA8CCB7AE3256A6AEAE6A71D25D3D0B58370067CD1D79A329FA8AE", + "trending-videos.vue.min.js": "D3794273DCD2CCC2F58DE78AEA6DE28E3E5B604E7DF486D32EBC27042E02E886", "tweets.min.css": "9015C1F165C91B9205ABBE4E8A3B5FA83DB1EB4B5CF2442846AF61E44FF178A8", "url-params-clean.min.js": "E7AF082E6413087279654A43FA78A1855B359817256685417DF0B06C0A1789E3", "v-checkbox.vue.min.js": "A23C35D5627009A29FD396A024442A19E37DEE70674BF3CE0FA377D781ED2231", diff --git a/min/bundle.zip b/min/bundle.zip index 16fdb9ce530a06c5f1800a96cc42af02e459738d..d0a6338aba9d6f6f8c83b8556349289e5f030147 100644 GIT binary patch delta 1992 zcma)7ZERCj7{0w7v|ZQIbv@@TbF_DCldV|jZMU&?8|%v2eVR1^(I0$R+Ol0K?da|{ zm0$)AM?&~A#Fv;D{DDz|z+i(rV^9og!i)?O6JmlNB>aOIzoH2m<7r`RU1Q=+p4^;! zp7WmPIq!Mjd-KHR>&G{bjH*WYN%fcJywiItLSxfrHA5c5B8J5b8U`(cjv=2x&rrZ% zU@$T)VK6ZiGME{P7%a-PnXI=No*JwOIWAd;3-ugVs5nFt(%`LXLeN-8wAejP+wg~K zqR9*uUp?8aHg4Ki5z_f@Z5^uSxS?w0dL!xAT0Co9{Vz8-ovCnQhqEsx_4dhLJl8|0 zURW)NwSq&auWG;x9mGOv87&e{MQ3Rq7h8(nAaSc2u>VkgF~%ig#A5+cwmlM#M=Hft zHEjJ*I92&L{;(94`>KSMg2+}@HT0&Ws56xucJ_w*z3ytJBWsYEjwIuQI};g($ITd7 zW4t?>Pw?U-vEjiWv6jzQ=dP=pGnU!d>#0c#9-kxvYTFjl*VN|FJx}O|bLh2cx$|v# zJ!w;qqFdS*Mz2Y0&!W5QpU{uw(5uFAY+?ZlLARm{=up3}bSJY9_c^bvFR z8dr`1_nZMk=K=#_eU1Tf)_@&f%c0lh7!YR-*iqfJFnVoHuEg0~*>Q}~m(NeFSd-&d z^thC}U8F)?_CIbO(jL;hXdo6zCh$NHsn7_^w@ax38DH-qEygP0Q3&RM-Bjg957|v% zTT+&jJH6=>YSysiJh)dDfKp(5PR9Kdh%F%boF%|lQ`Bao;P5f#pONI5<@M|FzpEIq~JzO%G6-Ge?+ zNvOX-e^({mx=5Fy>?L-bY1Et0=Ol}a(le34R4SH`H-xu&CER+Ej^d|p@K!uuPL^Q) z1T9e|lob;+?@?jm$4ZY+f*7z%)m zKUIYN0SNN1mf%!?sWO)1!vHkr8COyc?JZ!%=Yn9ww}>_JyBm#_=H3 z<>}iQabyiFLtPu#)RrEKcSF>IYulJ-ZwOy%V^OE~;fHO|thT(*W!lJAuG=; z*V(3`r%`NY%BC*hEA8M_Pfb$1bD3K4Mmspv)0Zj!G({_rd#GVquG{hCR4LyewbP2qRZwNv!^ZBQa<@6|DN|f zJ?D3x=Q+=L&Npv0-h8{UyGPo?eIolRS6*`dNd4aHxiXX-H4QZ#m4;HF(osrO1}YPk zg;JriQ8}m?s9cm9r4g^^l63`H-u}b&n_%#gKSLt%i=_f-NP{0dL<89>s^qL@IBp?& znWd`>ZkY%X4_L`BGIh)jJJMw;Rh-Uei^)}Df>FCTs^Nkrph zqF^i6jo4`|PZ-+jB6*HUh9dP=r+iWnG7DcB~1F0oUw-vpaKM-;HwO>(Tsfza!$N#+VEkOp&t zbJtDso(WM1b?;2=re%r{3f2@h=`Be)SqO(bByZJZ4@ZJmo|Hkt@Od78#;vxblq`gY zNUcgioftPEMZvHLgCt_{o599jVZ54TU4oB0hfhV;g|yecZs&lU@`F z_*z^1@LL^mDDl{rBxZ=hYO0CTc9K`IuA1$O{_%2cR4bno+jMvEkEdsC-7u*}5YB)Mb{n7x)&(OzEH;?4N>(|sO zX$uT3&Co%mmP}Ix%6vP+;Xq4ty?2W}0MDPLJ<4d;GH<y;ms_&hQPWJ7eeG%E5# zRGzpk#o{mNoyPdZDJl!ug#yr5FnRjujR!X?*s{4P?lZ~QGX!OoY#nz!40|e>gHuFf ztp5 z=vgN8%%+;mF;Hm%3{|sA?$UgCRLv^nm&&N5uMEvvy#f(wW@uT#Z0WB!s3h9zjYMHb z5mQ6uLMDfqZkj{KKo>o+Av=9R?e1T%fs<9puAaczAK@+g)QPi?&0_L7qp5}IH8CKX0SbFgqMsLS zICyOhD^OlOhYPd^0?`Nz726@c^Ir=)v8;cQpql@FBtG`+tS(rXKfh&?wROW zzKi9{?4MI;xJW6~xmadAH=q&wxx#DE>0%DqlRFf$e?`+eig2}iE(E*o_PN{return(e,t)=>{const a=``;t.applyStyleFromText(`.simple-home .feeds{justify-self:start;display:grid;grid-template-areas:"header header" "contents contents";grid-template-columns:repeat(2,auto);grid-template-rows:repeat(2,auto);row-gap:16px;column-gap:16px}.simple-home .feeds .header,.simple-home .feeds .sub-header{padding:0 8px}.simple-home .feeds .header .tab:nth-child(2),.simple-home .feeds .sub-header .tab:nth-child(2){margin-left:32px}.simple-home .feeds .header .online,.simple-home .feeds .sub-header .online{padding:8px 16px;height:32px;border-radius:16px;background-color:#8882;color:inherit;font-size:12px;display:flex;align-items:center;box-sizing:border-box}.simple-home .feeds .contents{grid-area:contents;display:flex;overflow:auto;--card-width:200px;--card-height:250px;--card-count:3;width:calc((var(--card-width) + 16px) * var(--card-count));padding-bottom:16px;scroll-snap-type:x mandatory;scrollbar-width:none!important;min-height:var(--card-height)}@media screen and (min-width:1100px){.simple-home .feeds .contents{--card-count:4}}@media screen and (min-width:1300px){.simple-home .feeds .contents{--card-count:5}}@media screen and (min-width:1550px){.simple-home .feeds .contents{--card-count:6}}@media screen and (min-width:1850px){.simple-home .feeds .contents{--card-count:7}}.simple-home .feeds .contents::-webkit-scrollbar{width:0!important;height:0!important}.simple-home .feeds .contents .card-wrapper{padding:0 8px;scroll-snap-align:start;flex-shrink:0}`,"simple-home-feeds-style");const i=[{name:"视频",type:"video",url:"https://t.bilibili.com/?tab=8"},{name:"番剧",type:"bangumi",url:"https://t.bilibili.com/?tab=512"}];return{export:Object.assign({template:a},{components:{VideoCard:()=>t.importAsync("video-card.vue"),Icon:()=>t.importAsync("icon.vue")},data(){return{online:"--",tabs:i,currentTab:i[0],feedCards:[]}},watch:{currentTab(e){this.updateFeedCards(e)}},methods:{async updateFeedCards(e){const{getVideoFeeds:a}=await t.importAsync("feeds-apis");this.feedCards=await a(e.type)},changeTab(e){if(this.currentTab===e){open(e.url,"_blank")}else{this.currentTab=e}}},async mounted(){this.updateFeedCards(this.currentTab);const e=await Ajax.getJson("https://api.bilibili.com/x/web-interface/online");if(e.code===0){this.online=e.data.web_online}}})}}})(); \ No newline at end of file +(()=>{return(e,t)=>{const a=``;t.applyStyleFromText(`.simple-home .feeds{justify-self:start;display:grid;grid-template-areas:"header header" "contents contents";grid-template-columns:repeat(2,auto);grid-template-rows:repeat(2,auto);row-gap:16px;column-gap:16px}.simple-home .feeds .header,.simple-home .feeds .sub-header{padding:0 8px}.simple-home .feeds .header .tab:nth-child(2),.simple-home .feeds .sub-header .tab:nth-child(2){margin-left:32px}.simple-home .feeds .header .online,.simple-home .feeds .sub-header .online{padding:8px 16px;height:32px;border-radius:16px;background-color:#8882;color:inherit;font-size:12px;display:flex;align-items:center;box-sizing:border-box}.simple-home .feeds .contents{grid-area:contents;display:flex;overflow:auto;--card-width:200px;--card-height:250px;--card-count:3;width:calc((var(--card-width) + 16px) * var(--card-count));padding-bottom:16px;scroll-snap-type:x mandatory;scrollbar-width:none!important;min-height:var(--card-height)}@media screen and (min-width:1100px){.simple-home .feeds .contents{--card-count:4}}@media screen and (min-width:1300px){.simple-home .feeds .contents{--card-count:5}}@media screen and (min-width:1550px){.simple-home .feeds .contents{--card-count:6}}.simple-home .feeds .contents::-webkit-scrollbar{width:0!important;height:0!important}.simple-home .feeds .contents .card-wrapper{padding:0 8px;scroll-snap-align:start;flex-shrink:0}`,"simple-home-feeds-style");const i=[{name:"视频",type:"video",url:"https://t.bilibili.com/?tab=8"},{name:"番剧",type:"bangumi",url:"https://t.bilibili.com/?tab=512"}];return{export:Object.assign({template:a},{components:{VideoCard:()=>t.importAsync("video-card.vue"),Icon:()=>t.importAsync("icon.vue")},data(){return{online:"--",tabs:i,currentTab:i[0],feedCards:[]}},watch:{currentTab(e){this.updateFeedCards(e)}},methods:{async updateFeedCards(e){const{getVideoFeeds:a}=await t.importAsync("feeds-apis");this.feedCards=await a(e.type)},changeTab(e){if(this.currentTab===e){open(e.url,"_blank")}else{this.currentTab=e}}},async mounted(){this.updateFeedCards(this.currentTab);const e=await Ajax.getJson("https://api.bilibili.com/x/web-interface/online");if(e.code===0){this.online=e.data.web_online}}})}}})(); \ No newline at end of file diff --git a/min/simple-home-normal-category.vue.min.js b/min/simple-home-normal-category.vue.min.js index a8bc77854..3a684a957 100644 --- a/min/simple-home-normal-category.vue.min.js +++ b/min/simple-home-normal-category.vue.min.js @@ -1 +1 @@ -(()=>{return(i,e)=>{const t=``;e.applyStyleFromText(`.category-view{--loading-from:#d4d4d4;--loading-to:#ddd;--rank-width:420px;--rank-height:250px;--slideshow-ratio:1.2;display:grid;grid-template:"new-activity rank" 1fr "new-post rank" 1fr/1fr var(--rank-width);grid-gap:24px;gap:24px;position:relative;--card-height:calc((8 * 34px + 20px + 1.5 * var(--rank-height)) / 2 - 32px);--card-width:calc(var(--card-height) * (42 / 25))}@media screen and (max-width:1800px){.category-view{--slideshow-ratio:1.2;--rank-width:390px;--rank-height:232.1428571429px}}@media screen and (max-width:1700px){.category-view{--slideshow-ratio:1.1333333333;--rank-width:360px;--rank-height:214.2857142857px}}@media screen and (max-width:1600px){.category-view{--slideshow-ratio:1.0666666667;--rank-width:330px;--rank-height:196.4285714286px}}@media screen and (max-width:1500px){.category-view{--slideshow-ratio:1;--rank-width:300px;--rank-height:178.5714285714px}}@media screen and (max-width:1400px){.category-view{--slideshow-ratio:0.9333333333;--rank-width:270px;--rank-height:160.7142857143px}}@media screen and (max-width:1300px){.category-view{--slideshow-ratio:0.8666666667;--rank-width:240px;--rank-height:142.8571428571px}}@media screen and (max-width:1200px){.category-view{--slideshow-ratio:0.8;--rank-width:210px;--rank-height:125px}}@media screen and (max-width:1000px){.category-view{--slideshow-ratio:0.8;--rank-width:210px;--rank-height:125px}}@media screen and (max-width:900px){.category-view{--slideshow-ratio:0.7333333333;--rank-width:180px;--rank-height:107.1428571429px}}@media screen and (max-width:800px){.category-view{--slideshow-ratio:0.6666666667;--rank-width:150px;--rank-height:89.2857142857px}}@media screen and (max-width:700px){.category-view{--slideshow-ratio:0.6;--rank-width:120px;--rank-height:71.4285714286px}}.category-view,.category-view *,.category-view ::after,.category-view ::before{transition:.2s ease-out}@keyframes normal-category-loading{from{background-color:var(--loading-from)}to{background-color:var(--loading-to)}}body.dark .category-view{--loading-from:#333;--loading-to:#262626}.category-view .loading{opacity:0;pointer-events:none;border-radius:16px;animation:.64s ease-in-out infinite alternate normal-category-loading;position:absolute}.category-view .area-header{grid-area:header;display:flex;align-items:center;justify-content:flex-start;font-weight:700;font-size:11pt;margin-bottom:12px}.category-view .area-header::before{content:"";display:inline-flex;height:10px;width:10px;background-color:var(--theme-color);border-radius:50%;margin-right:8px}.category-view .rank{display:grid;width:var(--rank-width);justify-self:right;grid-template:"header header" auto "first first" calc(10px + var(--rank-height)) "second third" calc(var(--rank-height)/ 2 + 10px)/calc(var(--rank-width)/ 2) calc(var(--rank-width)/ 2)}.category-view .rank .rank-item{grid-column:1/3;box-shadow:0 4px 8px 0 #0001;background-color:#fff;color:inherit!important;position:relative}body.dark .category-view .rank .rank-item{background-color:#282828}.category-view .rank .rank-item .cover{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:16px;overflow:hidden}.category-view .rank .rank-item .cover img{width:100%;height:100%;object-fit:cover}.category-view .rank .rank-item:hover .cover img{transform:scale(1.05)}.category-view .rank .rank-item .rank-number{position:absolute;top:6px;left:6px;width:22px;height:22px;line-height:22px;border-radius:50%;box-sizing:border-box;text-align:center;font-weight:700;font-size:13px;z-index:9;background-color:#8884}.category-view .rank .rank-item .watchlater{position:absolute;top:6px;right:6px;width:22px;height:22px;border-radius:50%;box-sizing:border-box;z-index:9;background-color:#000a;color:#fff;display:flex;align-items:center;justify-content:center;opacity:0}.category-view .rank .rank-item:hover .watchlater{opacity:1}.category-view .rank .rank-item .be-icon{font-size:16px}.category-view .rank .rank-item .be-icon.mdi-fire{transform:scale(calc(18 / 16));margin-right:2px}.category-view .rank .rank-item:not(:first-child)>.title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700;font-size:13px;line-height:34px;padding:0 8px 0 34px;opacity:.9}.category-view .rank .rank-item:not(:first-child):hover{background-color:var(--theme-color-30)}.category-view .rank .rank-item:not(:first-child):hover>.title{opacity:1}.category-view .rank .rank-item:not(:first-child) .details{position:absolute;top:50%;right:calc(100% + 10px);transform:translateY(-50%);width:var(--rank-width);padding:4px;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;z-index:10;opacity:0;pointer-events:none}.category-view .rank .rank-item:not(:first-child) .details .title{font-weight:700;font-size:14px;line-height:1.5;color:#fff;padding:8px;z-index:10}.category-view .rank .rank-item:not(:first-child) .details .cover{overflow:hidden;background-color:#000}.category-view .rank .rank-item:not(:first-child) .details .cover img{filter:blur(16px) brightness(.5);transform:scale(1.5)}.category-view .rank .rank-item:not(:first-child) .details .stats,.category-view .rank .rank-item:not(:first-child) .details .up{z-index:10;display:flex;color:#fff}.category-view .rank .rank-item:not(:first-child) .details .stats .be-icon:not(.mdi-fire),.category-view .rank .rank-item:not(:first-child) .details .up .be-icon:not(.mdi-fire){margin:0 4px 0 8px}.category-view .rank .rank-item:not(:first-child) .details .up{justify-content:space-between;margin:0 10px 0 6px}.category-view .rank .rank-item:not(:first-child) .details .up>*{display:flex;align-items:center}.category-view .rank .rank-item:not(:first-child) .details .stats{margin:8px}.category-view .rank .rank-item:not(:first-child) .details .stats .be-icon:first-child{margin-left:0}.category-view .rank .rank-item:not(:first-child):hover .details{opacity:1}.category-view .rank .rank-item:first-child,.category-view .rank .rank-item:nth-child(2),.category-view .rank .rank-item:nth-child(3){border-radius:16px}.category-view .rank .rank-item:first-child .rank-number,.category-view .rank .rank-item:nth-child(2) .rank-number,.category-view .rank .rank-item:nth-child(3) .rank-number{background-color:var(--theme-color);color:var(--foreground-color);opacity:.9}.category-view .rank .rank-item:nth-child(4){border-radius:16px 16px 0 0}.category-view .rank .rank-item:nth-last-child(2){border-radius:0 0 16px 16px}.category-view .rank .rank-item:first-child{grid-area:first;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;margin-bottom:10px}.category-view .rank .rank-item:first-child .details{align-self:stretch}.category-view .rank .rank-item:first-child .cover::after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-image:linear-gradient(to top,#000c 0,transparent 100%);z-index:0}.category-view .rank .rank-item:first-child .title{font-weight:700;font-size:16px;line-height:1.5;color:#fff;padding:0 8px;z-index:10;white-space:nowrap;overflow:hidden;max-width:100%;text-overflow:ellipsis}.category-view .rank .rank-item:first-child .up{display:flex;align-self:stretch;justify-content:space-between;align-items:center;opacity:.75;color:#fff;padding:0 12px 0 6px;margin:4px 0 8px;z-index:10}.category-view .rank .rank-item:first-child .up>*{display:flex;align-items:center}.category-view .rank .rank-item:first-child .up .be-iconfont-up{margin-right:4px}.category-view .rank .rank-item:first-child .up .points{flex-shrink:0;margin-right:8px}.category-view .rank .rank-item:first-child .up .up-info{max-width:61%}.category-view .rank .rank-item:first-child .up .up-info .up-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:break-all}.category-view .rank .rank-item:first-child .stats{display:flex;justify-content:flex-start;align-items:center;color:#fff;opacity:0;padding:0 8px;position:absolute;bottom:8px;left:0;z-index:10}.category-view .rank .rank-item:first-child .stats .be-icon{margin:0 2px 0 8px}.category-view .rank .rank-item:first-child .stats .be-icon:first-child{margin-left:0}.category-view .rank .rank-item:first-child:hover .up{opacity:0}.category-view .rank .rank-item:first-child:hover .stats{opacity:.75}.category-view .rank .rank-item:nth-child(2){grid-area:second;margin-right:5px;margin-bottom:10px}.category-view .rank .rank-item:nth-child(3){grid-area:third;margin-left:5px;margin-bottom:10px}.category-view .new-activity{align-self:start;grid-area:new-activity}.category-view .new-post{align-self:end;grid-area:new-post}.category-view.new-activity-loading .new-activity.loading{position:static;opacity:1;pointer-events:initial;width:100%;height:100%}.category-view.new-activity-loading .new-activity:not(.loading){opacity:0;pointer-events:none}.category-view.new-post-loading .new-post.loading{position:static;opacity:1;pointer-events:initial;width:100%;height:100%}.category-view.new-post-loading .new-post:not(.loading){opacity:0;pointer-events:none}.category-view .rank{grid-area:rank}.category-view.rank-loading .rank.loading{position:static;opacity:1;pointer-events:initial;width:100%;height:100%}.category-view.rank-loading .rank:not(.loading){opacity:0;pointer-events:none}@media screen and (max-width:1100px){.category-view{--slideshow-ratio:0.8666666667;--rank-width:240px;--rank-height:142.8571428571px;grid-template:"new-activity" 1fr "new-post" 1fr "rank" auto/1fr}.category-view .rank{--rank-width:420px;--rank-height:250px}}`,"simple-home-normal-category-style");return{export:Object.assign({template:t},{components:{SlideshowCards:()=>e.importAsync("slideshow-cards.vue"),Icon:()=>e.importAsync("icon.vue"),DpiImg:()=>e.importAsync("dpi-img.vue")},store:store,filters:{bigNumber(i){return formatCount(i)}},props:{rid:{type:Number,required:true}},data(){return{newActivity:{error:false,loading:true,videos:[]},newPost:{error:false,loading:true,videos:[]},rank:{error:false,loading:true,videos:[]},loaded:false}},computed:{...Vuex.mapState(["watchlaterList"])},methods:{async loadCards(i,e,t){if(t===undefined){t=(i=>{const e=getUID();const t=_.get(i,"data.archives",[]);return t.map(i=>{return{id:i.aid,aid:i.aid,coverUrl:i.pic.replace("http:","https:"),title:i.title,upName:i.owner.name,upFaceUrl:i.owner.face.replace("http:","https:"),upID:i.owner.mid,playCount:i.stat.view,danmakuCount:i.stat.danmaku,like:i.stat.like,coins:i.stat.coin,description:i.desc,type:i.tname,watchlater:e?this.watchlaterList.includes(i.aid):null}})})}try{this[i].loading=true;const a=await Ajax.getJson(e);if(a.code!==0){this[i].error=true}this[i].videos=t(a)}catch(e){logError(e);this[i].error=true}finally{this[i].loading=false}},async loadNewActivity(){await this.loadCards("newActivity",`https://api.bilibili.com/x/web-interface/dynamic/region?ps=10&rid=${this.rid}`)},async loadNewPost(){await this.loadCards("newPost",`https://api.bilibili.com/x/web-interface/newlist?ps=10&rid=${this.rid}`)},async loadRank(){await this.loadCards("rank",`https://api.bilibili.com/x/web-interface/ranking/region?rid=${this.rid}&day=3&original=0`,i=>{const e=getUID();const t=i.data;return t.map(i=>{return{id:i.aid,aid:parseInt(i.aid),title:i.title,playCount:i.play,favorites:i.favorites,upID:i.mid,upName:i.author,description:i.description,coverUrl:i.pic.replace("http:","https:"),coins:i.coins,durationText:i.duration,points:i.pts,watchlater:e?this.watchlaterList.includes(parseInt(i.aid)):null}})})},...Vuex.mapActions(["toggleWatchlater"]),updateVideos(){this.loadNewActivity();this.loadNewPost();this.loadRank()}},watch:{rid(i){if(i>0){if(this.loaded){this.updateVideos()}}else{console.warn(`rid=${i}`)}}},mounted(){const i=new IntersectionObserver(()=>{this.updateVideos();this.loaded=true;i.disconnect()});i.observe(this.$el)}})}}})(); \ No newline at end of file +(()=>{return(i,e)=>{const t=``;e.applyStyleFromText(`.category-view{--loading-from:#d4d4d4;--loading-to:#ddd;--rank-width:370px;--rank-height:calc(var(--rank-width) / 16 * 9);--slideshow-ratio:0.6;--card-height:300px;--card-width:calc(var(--card-height) * (42 / 25));display:grid;grid-template:"new-activity rank" 1fr "new-post rank" 1fr/1fr calc(1.5 * var(--rank-width) + 10px);grid-row-gap:24px;row-gap:24px;grid-column-gap:32px;column-gap:32px;position:relative}@media screen and (max-width:1800px){.category-view{--card-height:288px;--rank-width:350px}}@media screen and (max-width:1700px){.category-view{--card-height:276px;--rank-width:330px}}@media screen and (max-width:1600px){.category-view{--card-height:264px;--rank-width:310px}}@media screen and (max-width:1500px){.category-view{--card-height:252px;--rank-width:290px}}@media screen and (max-width:1400px){.category-view{--card-height:240px;--rank-width:270px}}@media screen and (max-width:1200px){.category-view{--card-height:216px;--rank-width:230px}}@media screen and (max-width:1100px){.category-view{--card-height:204px;--rank-width:210px}}@media screen and (max-width:1000px){.category-view{--card-height:192px;--rank-width:190px}}@media screen and (max-width:900px){.category-view{--card-height:180px;--rank-width:170px}}@media screen and (max-width:800px){.category-view{--card-height:168px;--rank-width:150px}}@media screen and (max-width:700px){.category-view{--card-height:156px;--rank-width:130px}}.category-view,.category-view *,.category-view ::after,.category-view ::before{transition:.2s ease-out}@keyframes normal-category-loading{from{background-color:var(--loading-from)}to{background-color:var(--loading-to)}}body.dark .category-view{--loading-from:#333;--loading-to:#262626}.category-view .loading{opacity:0;pointer-events:none;border-radius:16px;animation:.64s ease-in-out infinite alternate normal-category-loading;position:absolute}.category-view .area-header{grid-area:header;display:flex;align-items:center;justify-content:flex-start;font-weight:700;font-size:11pt;margin-bottom:12px}.category-view .area-header::before{content:"";display:inline-flex;height:10px;width:10px;background-color:var(--theme-color);border-radius:50%;margin-right:8px}.category-view .rank{display:grid;width:calc(1.5 * var(--rank-width) + 10px);justify-self:right;grid-template:"header header" auto "first second" calc(var(--rank-height)/ 2 + 10px) "first third" calc(var(--rank-height)/ 2 + 10px)/calc(var(--rank-width)) calc(10px + var(--rank-width)/ 2)}.category-view .rank .rank-item{grid-column:1/3;box-shadow:0 4px 8px 0 #0001;background-color:#fff;color:inherit!important;position:relative}body.dark .category-view .rank .rank-item{background-color:#282828}.category-view .rank .rank-item .cover{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:16px;overflow:hidden}.category-view .rank .rank-item .cover img{width:100%;height:100%;object-fit:cover}.category-view .rank .rank-item:hover .cover img{transform:scale(1.05)}.category-view .rank .rank-item .rank-number{position:absolute;top:6px;left:6px;width:22px;height:22px;line-height:22px;border-radius:50%;box-sizing:border-box;text-align:center;font-weight:700;font-size:13px;z-index:9;background-color:#8884}.category-view .rank .rank-item .watchlater{position:absolute;top:6px;right:6px;width:22px;height:22px;border-radius:50%;box-sizing:border-box;z-index:9;background-color:#000a;color:#fff;display:flex;align-items:center;justify-content:center;opacity:0}.category-view .rank .rank-item:hover .watchlater{opacity:1}.category-view .rank .rank-item .be-icon{font-size:16px}.category-view .rank .rank-item .be-icon.mdi-fire{transform:scale(calc(18 / 16));margin-right:2px}.category-view .rank .rank-item:not(:first-child)>.title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700;font-size:13px;line-height:34px;padding:0 8px 0 34px;opacity:.9}.category-view .rank .rank-item:not(:first-child):hover{background-color:var(--theme-color-30)}.category-view .rank .rank-item:not(:first-child):hover>.title{opacity:1}.category-view .rank .rank-item:not(:first-child) .details{position:absolute;top:50%;right:calc(100% + 10px);transform:translateY(-50%);width:var(--rank-width);padding:4px;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;z-index:10;opacity:0;pointer-events:none}.category-view .rank .rank-item:not(:first-child) .details .title{font-weight:700;font-size:14px;line-height:1.5;color:#fff;padding:8px;z-index:10}.category-view .rank .rank-item:not(:first-child) .details .cover{overflow:hidden;background-color:#000}.category-view .rank .rank-item:not(:first-child) .details .cover img{filter:blur(16px) brightness(.5);transform:scale(1.5)}.category-view .rank .rank-item:not(:first-child) .details .stats,.category-view .rank .rank-item:not(:first-child) .details .up{z-index:10;display:flex;color:#fff}.category-view .rank .rank-item:not(:first-child) .details .stats .be-icon:not(.mdi-fire),.category-view .rank .rank-item:not(:first-child) .details .up .be-icon:not(.mdi-fire){margin:0 4px 0 8px}.category-view .rank .rank-item:not(:first-child) .details .up{justify-content:space-between;margin:0 10px 0 6px}.category-view .rank .rank-item:not(:first-child) .details .up>*{display:flex;align-items:center}.category-view .rank .rank-item:not(:first-child) .details .stats{margin:8px}.category-view .rank .rank-item:not(:first-child) .details .stats .be-icon:first-child{margin-left:0}.category-view .rank .rank-item:not(:first-child):hover .details{opacity:1}.category-view .rank .rank-item:first-child,.category-view .rank .rank-item:nth-child(2),.category-view .rank .rank-item:nth-child(3){border-radius:16px}.category-view .rank .rank-item:first-child .rank-number,.category-view .rank .rank-item:nth-child(2) .rank-number,.category-view .rank .rank-item:nth-child(3) .rank-number{background-color:var(--theme-color);color:var(--foreground-color);opacity:.9}.category-view .rank .rank-item:nth-child(4){border-radius:16px 16px 0 0}.category-view .rank .rank-item:nth-last-child(2){border-radius:0 0 16px 16px}.category-view .rank .rank-item:first-child{grid-area:first;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;margin-bottom:10px}.category-view .rank .rank-item:first-child .details{align-self:stretch}.category-view .rank .rank-item:first-child .cover::after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-image:linear-gradient(to top,#000c 0,transparent 100%);z-index:0}.category-view .rank .rank-item:first-child .title{font-weight:700;font-size:16px;line-height:1.5;color:#fff;padding:0 8px;z-index:10;white-space:nowrap;overflow:hidden;max-width:100%;text-overflow:ellipsis}.category-view .rank .rank-item:first-child .up{display:flex;align-self:stretch;justify-content:space-between;align-items:center;opacity:.75;color:#fff;padding:0 12px 0 6px;margin:4px 0 8px;z-index:10}.category-view .rank .rank-item:first-child .up>*{display:flex;align-items:center}.category-view .rank .rank-item:first-child .up .be-iconfont-up{margin-right:4px}.category-view .rank .rank-item:first-child .up .points{flex-shrink:0;margin-right:8px}.category-view .rank .rank-item:first-child .up .up-info{max-width:61%}.category-view .rank .rank-item:first-child .up .up-info .up-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:break-all}.category-view .rank .rank-item:first-child .stats{display:flex;justify-content:flex-start;align-items:center;color:#fff;opacity:0;padding:0 8px;position:absolute;bottom:8px;left:0;z-index:10}.category-view .rank .rank-item:first-child .stats .be-icon{margin:0 2px 0 8px}.category-view .rank .rank-item:first-child .stats .be-icon:first-child{margin-left:0}.category-view .rank .rank-item:first-child:hover .up{opacity:0}.category-view .rank .rank-item:first-child:hover .stats{opacity:.75}.category-view .rank .rank-item:nth-child(2){grid-area:second;margin-bottom:10px;margin-left:10px}.category-view .rank .rank-item:nth-child(3){grid-area:third;margin-bottom:10px;margin-left:10px}.category-view .new-activity{align-self:start;grid-area:new-activity}.category-view .new-post{align-self:end;grid-area:new-post}.category-view.new-activity-loading .new-activity.loading{position:static;opacity:1;pointer-events:initial;width:100%;height:100%}.category-view.new-activity-loading .new-activity:not(.loading){opacity:0;pointer-events:none}.category-view.new-post-loading .new-post.loading{position:static;opacity:1;pointer-events:initial;width:100%;height:100%}.category-view.new-post-loading .new-post:not(.loading){opacity:0;pointer-events:none}.category-view .rank{grid-area:rank}.category-view.rank-loading .rank.loading{position:static;opacity:1;pointer-events:initial;width:100%;height:100%}.category-view.rank-loading .rank:not(.loading){opacity:0;pointer-events:none}@media screen and (max-width:1300px){.category-view{--card-height:228px;--rank-width:250px;grid-template:"new-activity" 1fr "new-post" 1fr "rank" auto/1fr;--card-height:300px}.category-view .rank{--rank-width:420px;justify-self:center}}`,"simple-home-normal-category-style");return{export:Object.assign({template:t},{components:{SlideshowCards:()=>e.importAsync("slideshow-cards.vue"),Icon:()=>e.importAsync("icon.vue"),DpiImg:()=>e.importAsync("dpi-img.vue")},store:store,filters:{bigNumber(i){return formatCount(i)}},props:{rid:{type:Number,required:true}},data(){return{newActivity:{error:false,loading:true,videos:[]},newPost:{error:false,loading:true,videos:[]},rank:{error:false,loading:true,videos:[]},loaded:false}},computed:{...Vuex.mapState(["watchlaterList"])},methods:{async loadCards(i,e,t){if(t===undefined){t=(i=>{const e=getUID();const t=_.get(i,"data.archives",[]);return t.map(i=>{return{id:i.aid,aid:i.aid,coverUrl:i.pic.replace("http:","https:"),title:i.title,upName:i.owner.name,upFaceUrl:i.owner.face.replace("http:","https:"),upID:i.owner.mid,playCount:i.stat.view,danmakuCount:i.stat.danmaku,like:i.stat.like,coins:i.stat.coin,description:i.desc,type:i.tname,watchlater:e?this.watchlaterList.includes(i.aid):null}})})}try{this[i].loading=true;const a=await Ajax.getJson(e);if(a.code!==0){this[i].error=true}this[i].videos=t(a)}catch(e){logError(e);this[i].error=true}finally{this[i].loading=false}},async loadNewActivity(){await this.loadCards("newActivity",`https://api.bilibili.com/x/web-interface/dynamic/region?ps=10&rid=${this.rid}`)},async loadNewPost(){await this.loadCards("newPost",`https://api.bilibili.com/x/web-interface/newlist?ps=10&rid=${this.rid}`)},async loadRank(){await this.loadCards("rank",`https://api.bilibili.com/x/web-interface/ranking/region?rid=${this.rid}&day=3&original=0`,i=>{const e=getUID();const t=i.data;return t.map(i=>{return{id:i.aid,aid:parseInt(i.aid),title:i.title,playCount:i.play,favorites:i.favorites,upID:i.mid,upName:i.author,description:i.description,coverUrl:i.pic.replace("http:","https:"),coins:i.coins,durationText:i.duration,points:i.pts,watchlater:e?this.watchlaterList.includes(parseInt(i.aid)):null}})})},...Vuex.mapActions(["toggleWatchlater"]),updateVideos(){this.loadNewActivity();this.loadNewPost();this.loadRank()}},watch:{rid(i){if(i>0){if(this.loaded){this.updateVideos()}}else{console.warn(`rid=${i}`)}}},mounted(){const i=new IntersectionObserver(()=>{this.updateVideos();this.loaded=true;i.disconnect()});i.observe(this.$el)}})}}})(); \ No newline at end of file diff --git a/min/slideshow-cards.vue.min.js b/min/slideshow-cards.vue.min.js index 6c20bf743..b8173e9e8 100644 --- a/min/slideshow-cards.vue.min.js +++ b/min/slideshow-cards.vue.min.js @@ -1 +1 @@ -(()=>{return(e,r)=>{const i=`
{{title}}
`;r.applyStyleFromText(`.slideshow-cards{display:grid;position:relative;grid-template:"header header header header" auto "cards . operations info" var(--card-height)/var(--card-width) 44px 1fr calc(var(--slideshow-ratio) * var(--card-width))}.slideshow-cards .error{grid-column:1/4;grid-row:2/3;align-self:stretch;justify-self:stretch}.slideshow-cards .operations{grid-area:operations;display:flex;flex-direction:column;align-self:center;justify-self:start}.slideshow-cards .operations>*{background-color:#ddd;border-radius:50%;border:none;display:flex;height:32px;width:32px;align-items:center;justify-content:center;box-sizing:border-box;margin-right:8px;cursor:pointer}.slideshow-cards .operations>:hover{background-color:#ccc}body.dark .slideshow-cards .operations>*{background-color:#333}body.dark .slideshow-cards .operations>:hover{background-color:#444}.slideshow-cards .operations>.checked{border:2px solid var(--theme-color)}.slideshow-cards .operations>* .be-icon{font-size:22px}.slideshow-cards .operations>:not(:last-child){margin-bottom:8px}.slideshow-cards .operations .play .be-icon{font-size:16px;transform:translateX(1.5px)}.slideshow-cards .operations .play,body.dark .slideshow-cards .operations .play{color:var(--foreground-color);background-color:var(--theme-color)}.slideshow-cards .operations .play:hover,body.dark .slideshow-cards .operations .play:hover{background-color:var(--theme-color-80)}.slideshow-cards .info{grid-area:info;display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between}.slideshow-cards .info>*{display:flex;align-items:center}.slideshow-cards .info .title{color:inherit!important;font-size:12pt;font-weight:700;text-align:right;display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.5;max-height:3em}.slideshow-cards .info .up{font-size:10pt;color:inherit!important}.slideshow-cards .info .up .face{border-radius:50%;width:24px;height:24px;margin-right:8px}.slideshow-cards .info .stat,.slideshow-cards .info .type{opacity:.75;align-items:center}.slideshow-cards .info .stat .be-icon,.slideshow-cards .info .type .be-icon{margin:0 4px 0 16px;font-size:12pt}.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:6;-webkit-box-orient:vertical;line-height:1.5;max-height:9em;flex-grow:1;white-space:pre-wrap;text-align:right;opacity:.75}.slideshow-cards .info .buttons .be-icon{font-weight:400}.slideshow-cards .info .buttons>button{outline:0!important;cursor:pointer}.slideshow-cards .info .buttons .refresh{background-color:#ddd;border-radius:50%;border:none;display:flex;height:32px;width:32px;align-items:center;justify-content:center;box-sizing:border-box;margin-right:8px;cursor:pointer}.slideshow-cards .info .buttons .refresh:hover{background-color:#ccc}body.dark .slideshow-cards .info .buttons .refresh{background-color:#333}body.dark .slideshow-cards .info .buttons .refresh:hover{background-color:#444}.slideshow-cards .info .buttons .refresh.checked{border:2px solid var(--theme-color)}.slideshow-cards .info .buttons .refresh .be-icon{transition-duration:.5s;transform:scale(.9)}.slideshow-cards .info .buttons .refresh:hover .be-icon{transform:scale(.9) rotate(360deg)}.slideshow-cards .info .buttons .previous{background-color:#ddd;border-radius:50%;border:none;display:flex;height:32px;width:32px;align-items:center;justify-content:center;box-sizing:border-box;margin-right:8px;cursor:pointer}.slideshow-cards .info .buttons .previous:hover{background-color:#ccc}body.dark .slideshow-cards .info .buttons .previous{background-color:#333}body.dark .slideshow-cards .info .buttons .previous:hover{background-color:#444}.slideshow-cards .info .buttons .previous.checked{border:2px solid var(--theme-color)}.slideshow-cards .info .buttons .previous .be-icon{transform:translateX(-1px)}.slideshow-cards .info .buttons .next{display:flex;align-items:center;padding:4px 6px 4px 12px;background-color:var(--theme-color);border:none;color:var(--foreground-color)!important;height:32px;box-sizing:border-box;line-height:normal;font-size:11pt;font-weight:700;border-radius:16px}.slideshow-cards .info .buttons .next:hover{background-color:var(--theme-color-80)}.slideshow-cards .slideshow-card{grid-area:cards;cursor:pointer;align-self:stretch;justify-self:stretch;position:absolute;top:0;left:0;width:100%;height:100%;background-color:#8882;border-radius:16px}.slideshow-cards .slideshow-card:not(:first-child){transform-origin:right}.slideshow-cards .slideshow-card:not(:nth-child(2)){pointer-events:none;transform:translateX(39px) scale(.45);opacity:0}.slideshow-cards .slideshow-card img{border-radius:16px;width:100%;height:100%;object-fit:cover}.slideshow-cards .slideshow-card:nth-child(1){z-index:7}.slideshow-cards .slideshow-card:nth-child(2){z-index:6;pointer-events:initial}.slideshow-cards .slideshow-card:nth-child(3){z-index:5}.slideshow-cards .slideshow-card:nth-child(4){z-index:4}.slideshow-cards .slideshow-card:nth-child(5){z-index:3}.slideshow-cards .slideshow-card:nth-child(6){z-index:2}.slideshow-cards .slideshow-card:nth-child(7){z-index:1}.slideshow-cards .slideshow-card:first-child{transform:translateX(-10%) scale(1.1);opacity:0}.slideshow-cards .slideshow-card:nth-child(3){transform:translateX(20px) scale(.9);opacity:.5}.slideshow-cards .slideshow-card:nth-child(4){transform:translateX(30px) scale(.75);opacity:.25}.slideshow-cards .slideshow-card:nth-child(5){transform:translateX(35px) scale(.65);opacity:.125}.slideshow-cards .slideshow-card:nth-child(6){transform:translateX(37.5px) scale(.5);opacity:.0625}@media screen and (max-width:1600px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical;line-height:1.5;max-height:6em}}@media screen and (max-width:1400px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical;line-height:1.5;max-height:4.5em}}@media screen and (max-width:1200px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.5;max-height:3em}}@media screen and (max-width:1050px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical;line-height:1.5;max-height:1.5em}}@media screen and (max-width:950px){.slideshow-cards .info .title{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical;line-height:1.5;max-height:1.5em}}`,"slideshow-cards-style");return{export:Object.assign({template:i},{components:{Icon:()=>r.importAsync("icon.vue"),DpiImg:()=>r.importAsync("dpi-img.vue")},store:store,filters:{bigNumber(e){return formatCount(e)}},props:["cards","error","title","showStat"],data(){return{cardQueue:[]}},methods:{...Vuex.mapActions(["toggleWatchlater"]),regenerateQueue(){if(this.cards.length<7){return}const e=[...this.cards];e.unshift(e.pop());this.cardQueue=e},previousCard(){this.cardQueue.unshift(this.cardQueue.pop())},nextCard(){this.cardQueue.push(this.cardQueue.shift())},refresh(){this.$emit("refresh")}},watch:{cards(){this.regenerateQueue()}},computed:{...Vuex.mapState(["watchlaterList"]),currentCard(){return this.cardQueue[1]}},mounted(){this.regenerateQueue()}})}}})(); \ No newline at end of file +(()=>{return(e,r)=>{const i=`
{{title}}
`;r.applyStyleFromText(`.slideshow-cards{display:grid;position:relative;grid-template:"header header header header" auto "cards . operations info" var(--card-height)/var(--card-width) 48px auto calc(var(--card-width) * var(--slideshow-ratio))}.slideshow-cards .error{grid-column:1/4;grid-row:2/3;align-self:stretch;justify-self:stretch}.slideshow-cards .operations{grid-area:operations;display:flex;flex-direction:column;align-self:center;justify-self:start}.slideshow-cards .operations>*{background-color:#ddd;border-radius:50%;border:none;display:flex;height:32px;width:32px;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;margin-right:16px}.slideshow-cards .operations>:hover{background-color:#ccc}body.dark .slideshow-cards .operations>*{background-color:#333}body.dark .slideshow-cards .operations>:hover{background-color:#444}.slideshow-cards .operations>.checked{border:2px solid var(--theme-color)}.slideshow-cards .operations>* .be-icon{font-size:22px}.slideshow-cards .operations>:not(:last-child){margin-bottom:8px}.slideshow-cards .operations .play .be-icon{font-size:16px;transform:translateX(1.5px)}.slideshow-cards .operations .play,body.dark .slideshow-cards .operations .play{color:var(--foreground-color);background-color:var(--theme-color)}.slideshow-cards .operations .play:hover,body.dark .slideshow-cards .operations .play:hover{background-color:var(--theme-color-80)}.slideshow-cards .info{grid-area:info;display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between}.slideshow-cards .info>*{display:flex;align-items:center}.slideshow-cards .info .title{color:inherit!important;font-size:12pt;font-weight:700;text-align:right;display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.5;max-height:3em}.slideshow-cards .info .up{font-size:10pt;color:inherit!important}.slideshow-cards .info .up .face{border-radius:50%;width:24px;height:24px;margin-right:8px}.slideshow-cards .info .stat,.slideshow-cards .info .type{opacity:.75;align-items:center}.slideshow-cards .info .stat .be-icon,.slideshow-cards .info .type .be-icon{margin:0 4px 0 16px;font-size:12pt}.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:6;-webkit-box-orient:vertical;line-height:1.5;max-height:9em;flex-grow:1;white-space:pre-wrap;text-align:right;opacity:.75}.slideshow-cards .info .buttons .be-icon{font-weight:400}.slideshow-cards .info .buttons>button{outline:0!important;cursor:pointer}.slideshow-cards .info .buttons .refresh{background-color:#ddd;border-radius:50%;border:none;display:flex;height:32px;width:32px;align-items:center;justify-content:center;box-sizing:border-box;margin-right:8px;cursor:pointer}.slideshow-cards .info .buttons .refresh:hover{background-color:#ccc}body.dark .slideshow-cards .info .buttons .refresh{background-color:#333}body.dark .slideshow-cards .info .buttons .refresh:hover{background-color:#444}.slideshow-cards .info .buttons .refresh.checked{border:2px solid var(--theme-color)}.slideshow-cards .info .buttons .refresh .be-icon{transition-duration:.5s;transform:scale(.9)}.slideshow-cards .info .buttons .refresh:hover .be-icon{transform:scale(.9) rotate(360deg)}.slideshow-cards .info .buttons .previous{background-color:#ddd;border-radius:50%;border:none;display:flex;height:32px;width:32px;align-items:center;justify-content:center;box-sizing:border-box;margin-right:8px;cursor:pointer}.slideshow-cards .info .buttons .previous:hover{background-color:#ccc}body.dark .slideshow-cards .info .buttons .previous{background-color:#333}body.dark .slideshow-cards .info .buttons .previous:hover{background-color:#444}.slideshow-cards .info .buttons .previous.checked{border:2px solid var(--theme-color)}.slideshow-cards .info .buttons .previous .be-icon{transform:translateX(-1px)}.slideshow-cards .info .buttons .next{display:flex;align-items:center;padding:4px 6px 4px 12px;background-color:var(--theme-color);border:none;color:var(--foreground-color)!important;height:32px;box-sizing:border-box;line-height:normal;font-size:11pt;font-weight:700;border-radius:16px}.slideshow-cards .info .buttons .next:hover{background-color:var(--theme-color-80)}.slideshow-cards .slideshow-card{grid-area:cards;cursor:pointer;align-self:stretch;justify-self:stretch;position:absolute;top:0;left:0;width:100%;height:100%;background-color:#8882;border-radius:16px}.slideshow-cards .slideshow-card:not(:first-child){transform-origin:right}.slideshow-cards .slideshow-card:not(:nth-child(2)){pointer-events:none;transform:translateX(39px) scale(.45);opacity:0}.slideshow-cards .slideshow-card img{border-radius:16px;width:100%;height:100%;object-fit:cover}.slideshow-cards .slideshow-card:nth-child(1){z-index:7}.slideshow-cards .slideshow-card:nth-child(2){z-index:6;pointer-events:initial}.slideshow-cards .slideshow-card:nth-child(3){z-index:5}.slideshow-cards .slideshow-card:nth-child(4){z-index:4}.slideshow-cards .slideshow-card:nth-child(5){z-index:3}.slideshow-cards .slideshow-card:nth-child(6){z-index:2}.slideshow-cards .slideshow-card:nth-child(7){z-index:1}.slideshow-cards .slideshow-card:first-child{transform:translateX(-10%) scale(1.1);opacity:0}.slideshow-cards .slideshow-card:nth-child(3){transform:translateX(20px) scale(.9);opacity:.5}.slideshow-cards .slideshow-card:nth-child(4){transform:translateX(30px) scale(.75);opacity:.25}.slideshow-cards .slideshow-card:nth-child(5){transform:translateX(35px) scale(.65);opacity:.125}.slideshow-cards .slideshow-card:nth-child(6){transform:translateX(37.5px) scale(.5);opacity:.0625}@media screen and (max-width:1600px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical;line-height:1.5;max-height:6em}}@media screen and (max-width:1400px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical;line-height:1.5;max-height:4.5em}}@media screen and (max-width:1200px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.5;max-height:3em}}@media screen and (max-width:1050px){.slideshow-cards .info .description{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical;line-height:1.5;max-height:1.5em}}@media screen and (max-width:950px){.slideshow-cards .info .title{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical;line-height:1.5;max-height:1.5em}}`,"slideshow-cards-style");return{export:Object.assign({template:i},{components:{Icon:()=>r.importAsync("icon.vue"),DpiImg:()=>r.importAsync("dpi-img.vue")},store:store,filters:{bigNumber(e){return formatCount(e)}},props:["cards","error","title","showStat"],data(){return{cardQueue:[]}},methods:{...Vuex.mapActions(["toggleWatchlater"]),regenerateQueue(){if(this.cards.length<7){return}const e=[...this.cards];e.unshift(e.pop());this.cardQueue=e},previousCard(){this.cardQueue.unshift(this.cardQueue.pop())},nextCard(){this.cardQueue.push(this.cardQueue.shift())},refresh(){this.$emit("refresh")}},watch:{cards(){this.regenerateQueue()}},computed:{...Vuex.mapState(["watchlaterList"]),currentCard(){return this.cardQueue[1]}},mounted(){this.regenerateQueue()}})}}})(); \ No newline at end of file diff --git a/min/trending-videos.vue.min.js b/min/trending-videos.vue.min.js index ff7edbe03..03f2858e8 100644 --- a/min/trending-videos.vue.min.js +++ b/min/trending-videos.vue.min.js @@ -1 +1 @@ -(()=>{return(a,n)=>{const t=`
热门
{{tab.name}}
`;n.applyStyleFromText(`.simple-home .trendings{display:flex;flex-direction:column}.simple-home .trendings .header{padding:0 8px}.simple-home .trendings .contents{--card-width:200px;--card-height:250px;--card-count:3;margin-top:16px;display:flex;overflow:auto;height:calc(var(--card-height) + 16px);width:calc((var(--card-width) + 16px) * var(--card-count));scroll-snap-type:x mandatory;scrollbar-width:none!important}@media screen and (max-width:1300px) and (min-width:900px){.simple-home .trendings .contents{--card-count:2}}@media screen and (max-width:1100px) and (min-width:900px){.simple-home .trendings .contents{--card-count:1}}@media screen and (min-width:1550px){.simple-home .trendings .contents{--card-count:4}}@media screen and (min-width:1850px){.simple-home .trendings .contents{--card-count:5}}.simple-home .trendings .contents::-webkit-scrollbar{width:0!important;height:0!important}.simple-home .trendings .contents .card-wrapper{padding:0 8px;scroll-snap-align:start;flex-shrink:0}`,"trending-videos-style");const e=[{name:"今日",day:1,url:"https://www.bilibili.com/ranking/all/0/0/1"},{name:"三日",day:3,url:"https://www.bilibili.com/ranking"},{name:"一周",day:7,url:"https://www.bilibili.com/ranking/all/0/0/7"}];return{export:Object.assign({template:t},{components:{VideoCard:()=>n.importAsync("video-card.vue")},data(){return{tabs:e,currentTab:e[0],trendingCards:[]}},watch:{currentTab(a){this.updateTrendingTab(a)}},methods:{async updateTrendingTab(a){const{getTrendingVideos:t}=await n.importAsync("trending-videos");this.trendingCards=await t(a.day)},changeTab(a){if(this.currentTab===a){open(a.url,"_blank")}else{this.currentTab=a}}},mounted(){this.updateTrendingTab(this.currentTab)}})}}})(); \ No newline at end of file +(()=>{return(a,t)=>{const n=`
热门
{{tab.name}}
`;t.applyStyleFromText(`.simple-home .trendings{display:flex;flex-direction:column}.simple-home .trendings .header{padding:0 8px}.simple-home .trendings .contents{--card-width:200px;--card-height:250px;--card-count:3;margin-top:16px;display:flex;overflow:auto;height:calc(var(--card-height) + 16px);width:calc((var(--card-width) + 16px) * var(--card-count));scroll-snap-type:x mandatory;scrollbar-width:none!important}@media screen and (max-width:1300px) and (min-width:900px){.simple-home .trendings .contents{--card-count:2}}@media screen and (max-width:1100px) and (min-width:900px){.simple-home .trendings .contents{--card-count:1}}@media screen and (min-width:1550px){.simple-home .trendings .contents{--card-count:4}}.simple-home .trendings .contents::-webkit-scrollbar{width:0!important;height:0!important}.simple-home .trendings .contents .card-wrapper{padding:0 8px;scroll-snap-align:start;flex-shrink:0}`,"trending-videos-style");const i=[{name:"今日",day:1,url:"https://www.bilibili.com/ranking/all/0/0/1"},{name:"三日",day:3,url:"https://www.bilibili.com/ranking"},{name:"一周",day:7,url:"https://www.bilibili.com/ranking/all/0/0/7"}];return{export:Object.assign({template:n},{components:{VideoCard:()=>t.importAsync("video-card.vue")},data(){return{tabs:i,currentTab:i[0],trendingCards:[]}},watch:{currentTab(a){this.updateTrendingTab(a)}},methods:{async updateTrendingTab(a){const{getTrendingVideos:n}=await t.importAsync("trending-videos");this.trendingCards=await n(a.day)},changeTab(a){if(this.currentTab===a){open(a.url,"_blank")}else{this.currentTab=a}}},mounted(){this.updateTrendingTab(this.currentTab)}})}}})(); \ No newline at end of file diff --git a/src/style/simplify-home/simple-home/categories/simple-home-normal-category.vue b/src/style/simplify-home/simple-home/categories/simple-home-normal-category.vue index 893c2ba6a..5362e463e 100644 --- a/src/style/simplify-home/simple-home/categories/simple-home-normal-category.vue +++ b/src/style/simplify-home/simple-home/categories/simple-home-normal-category.vue @@ -124,7 +124,7 @@ export default { } }, computed: { - ...Vuex.mapState(['watchlaterList']), + ...Vuex.mapState(['watchlaterList']) }, methods: { async loadCards( @@ -224,7 +224,7 @@ export default { this.loadNewActivity() this.loadNewPost() this.loadRank() - }, + } }, watch: { rid(value: number) { @@ -253,32 +253,26 @@ export default { .category-view { --loading-from: #d4d4d4; --loading-to: #ddd; - --rank-width: 420px; - --rank-height: 250px; - --slideshow-ratio: 1.2; + --rank-width: 370px; + --rank-height: calc(var(--rank-width) / 16 * 9); + --slideshow-ratio: 0.6; + --card-height: 300px; + --card-width: calc(var(--card-height) * (42 / 25)); display: grid; grid-template: 'new-activity rank' 1fr - 'new-post rank' 1fr / 1fr var(--rank-width); - grid-gap: 24px; - gap: 24px; + 'new-post rank' 1fr / 1fr calc(1.5 * var(--rank-width) + 10px); + grid-row-gap: 24px; + row-gap: 24px; + grid-column-gap: 32px; + column-gap: 32px; position: relative; @for $width from 18 through 7 { @media screen and (max-width: #{$width * 100}px) { - $rank-width: 0; - @if $width > 11 { - $rank-width: 420 - (19 - $width) * 30; - --slideshow-ratio: #{1.2 * ($width / 18)}; - } @else { - $rank-width: 420 - (17 - $width) * 30; - --slideshow-ratio: #{1.2 * (($width + 2) / 18)}; - } - --rank-width: #{$rank-width}px; - --rank-height: #{$rank-width * 25 / 42}px; + --card-height: #{300 - 12 * (19 - $width)}px; + --rank-width: #{370 - 20 * (19 - $width)}px; } } - --card-height: calc((8 * 34px + 20px + 1.5 * var(--rank-height)) / 2 - 32px); - --card-width: calc(var(--card-height) * (42 / 25)); &, & *, ::after, @@ -327,14 +321,20 @@ export default { } .rank { display: grid; - width: var(--rank-width); + width: calc(1.5 * var(--rank-width) + 10px); justify-self: right; + // grid-template: + // 'header header' auto + // 'first first' calc(10px + var(--rank-height)) + // 'second third' calc(var(--rank-height) / 2 + 10px) / calc( + // var(--rank-width) / 2 + // ) + // calc(var(--rank-width) / 2); grid-template: 'header header' auto - 'first first' calc(10px + var(--rank-height)) - 'second third' calc(var(--rank-height) / 2 + 10px) / calc( - var(--rank-width) / 2 - ) calc(var(--rank-width) / 2); + 'first second' calc(var(--rank-height) / 2 + 10px) + 'first third' calc(var(--rank-height) / 2 + 10px) + / calc(var(--rank-width)) calc(10px + var(--rank-width) / 2); .rank-item { grid-column: 1 / 3; box-shadow: 0 4px 8px 0 #0001; @@ -586,13 +586,15 @@ export default { } &:nth-child(2) { grid-area: second; - margin-right: 5px; + // margin-right: 5px; margin-bottom: 10px; + margin-left: 10px; } &:nth-child(3) { grid-area: third; - margin-left: 5px; + // margin-left: 5px; margin-bottom: 10px; + margin-left: 10px; } } } @@ -620,14 +622,15 @@ export default { } } } - @media screen and (max-width: 1100px) { + @media screen and (max-width: 1300px) { grid-template: 'new-activity' 1fr 'new-post' 1fr 'rank' auto / 1fr; + --card-height: 300px; .rank { --rank-width: 420px; - --rank-height: 250px; + justify-self: center; } } } diff --git a/src/style/simplify-home/simple-home/simple-home-feeds.vue b/src/style/simplify-home/simple-home/simple-home-feeds.vue index 545e35a03..dca9ea6a4 100644 --- a/src/style/simplify-home/simple-home/simple-home-feeds.vue +++ b/src/style/simplify-home/simple-home/simple-home-feeds.vue @@ -161,9 +161,9 @@ export default { @media screen and (min-width: 1550px) { --card-count: 6; } - @media screen and (min-width: 1850px) { - --card-count: 7; - } + // @media screen and (min-width: 1850px) { + // --card-count: 7; + // } &::-webkit-scrollbar { width: 0 !important; height: 0 !important; diff --git a/src/style/simplify-home/simple-home/slideshow-cards.vue b/src/style/simplify-home/simple-home/slideshow-cards.vue index c3d23ae7f..dc948aac4 100644 --- a/src/style/simplify-home/simple-home/slideshow-cards.vue +++ b/src/style/simplify-home/simple-home/slideshow-cards.vue @@ -181,9 +181,7 @@ export default { // --card-width: 500px; grid-template: 'header header header header' auto - 'cards . operations info' var(--card-height) / var(--card-width) 44px 1fr calc(var( - --slideshow-ratio - ) * var(--card-width)); + 'cards . operations info' var(--card-height) / var(--card-width) 48px auto calc(var(--card-width) * var(--slideshow-ratio)); .error { grid-column: 1 / 4; grid-row: 2 / 3; @@ -198,6 +196,7 @@ export default { justify-self: start; & > * { @include round-button(); + margin-right: 16px; .be-icon { font-size: 22px; } diff --git a/src/style/simplify-home/simple-home/trending-videos.vue b/src/style/simplify-home/simple-home/trending-videos.vue index 54ec9cec0..b7d6f4528 100644 --- a/src/style/simplify-home/simple-home/trending-videos.vue +++ b/src/style/simplify-home/simple-home/trending-videos.vue @@ -114,11 +114,11 @@ export default { --card-count: 4; } } - @media screen and (min-width: 1850px) { - & { - --card-count: 5; - } - } + // @media screen and (min-width: 1850px) { + // & { + // --card-count: 5; + // } + // } &::-webkit-scrollbar { width: 0 !important; height: 0 !important;