mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
commit
31b173401d
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -46,7 +46,7 @@
|
||||
"custom-control-background.min.js": "483F57DDD56F5B3A77C9CB35EB7CA191BF34CB6B3EEF5E12A4C10A42ADE563A2",
|
||||
"custom-navbar.min.css": "3ADECA5A15ABD723ADE914BECC5D351A2ACA672A1C02CEA89C3F6AB0044B8A87",
|
||||
"custom-navbar.min.html": "1F95ABCE9F19727CAF3B48C40E517EA4C2F602E9C2A73BD822B56BF91AB3F631",
|
||||
"custom-navbar.min.js": "628021D173D9D5046DAE0194901A50EF3EF669745225D09F976CC0238DB86379",
|
||||
"custom-navbar.min.js": "EFA569755E0D45AE866FB59D9AD91C90C2DD720D1D61A8A46DC89597539379F2",
|
||||
"custom-navbar-activities.min.js": "A7AB41C75EFEF45F3186D5A110629FA98F16C552E3B6F58BA0A735CB86E58547",
|
||||
"custom-navbar-blank.min.js": "E8F08DA7CD2C67F9D064B959A64CFC6658103DBCBE2B9B58D978A1742E02D829",
|
||||
"custom-navbar-category.min.js": "F5E2A5D316D372BF43769D20095C4700A3A3E5F63CE3607F17030AF0784F1D34",
|
||||
@ -76,14 +76,13 @@
|
||||
"dark-important.min.css": "29FAC0857FB4BDF4EAD24582D4984471E80FC83EF9BD9A108B17D5AC5617DE75",
|
||||
"dark-navbar.min.css": "7FAD547E326B768904B3739C978DF86FFDDD5E5064FB8F490710D197CCC3018B",
|
||||
"dark-schedule.min.js": "555383CBACD01D02C7965261118D5F4CA93A2F69457776F454F7FF1897F40DBB",
|
||||
"dark-slice-15.min.css": "606197300D11EB47548AE550AED0E09A5F9771EB85F333D159B9A8677BD46762",
|
||||
"dark-styles.min.js": "C184E5E0815BCBFF473916569CB66111C94D289FB9AB575E3945006227C55C27",
|
||||
"debounce.min.js": "E64A2AD8E8C063787466D50788E8D5D49B27DDCEF5D2B7EA534B4E6B606E9124",
|
||||
"default-danmaku-settings.min.css": "D9942B184FEDA7B08CFA0C34920E97D7A83B81762DCBF757642EBB60F95FF25D",
|
||||
"default-danmaku-settings.min.js": "901EA05F842932F436F0ABEAC99802D286575F9033CE078AA246FD1453B98998",
|
||||
"default-live-quality.min.js": "3DE4EC96DE1CB7F187E61B7045EC14EBBF74B1853A990B4FE32372F27D47F4E4",
|
||||
"default-player-layout.min.js": "2F018C09DCCB9D0DD671ED4868A1EAC365D63CC51618EE076598C6624E3BEA7E",
|
||||
"default-player-mode.min.js": "76BBFE1C953134B744ADB70038C0EAA0DD53291B1879555A7513CBDB4411365D",
|
||||
"default-player-mode.min.js": "4AB01DAFFC591F20B02C1C9F3E3E682102A43AD5B22A711D79DC422606CD9B68",
|
||||
"default-video-quality.min.js": "20C0F41F683D685CCD22BD91F0EB4C2227146DD5586EB65388EE8FA97F46F7D2",
|
||||
"default-video-speed.min.js": "720B588D410C267C1EE411927C9FC9FBBAE693A6938134416962E7B5A0682D25",
|
||||
"disable-danmaku-highlights.min.js": "1F8C7267B7015ABB737D2457FCCC2E48CC31364E63ACF330770D61B152C9ABC6",
|
||||
@ -121,7 +120,7 @@
|
||||
"fix-fullscreen.min.js": "0C94A778CDAAECC0C97D36833C94B3AB87D562C5AAB23EFFE20241EB53FBA317",
|
||||
"fold-comment.min.css": "DC2BD559553EA58FC438DB083783135897BF691D7CA59D436550C2F364F7D525",
|
||||
"fold-comment.min.js": "C9826C7091AF5216FEA14DEF272F967685A0399EFBAEBEF01FFA93EC06514855",
|
||||
"frame-playback.min.css": "A9AF1AC6E7AAE3C02C7A1D7166E82A940722E9FBCF3BD9FAD82A7E334E411B5C",
|
||||
"frame-playback.min.css": "DFA2EDCA1A66F6E16D694FB82E86468B6DABDD15E124473B2D15E779E6EBA9A5",
|
||||
"frame-playback.min.html": "16D3B459911BA6810CFCA7B0356E79ADD5EC579910C8E14BED74619D0997CF8A",
|
||||
"frame-playback.min.js": "F1F0F4131F4D3BEAD3E396D76374530B43FF58C92DFA0E137C11640C0D05D663",
|
||||
"full-activity-content.min.js": "996BD62D7633175DCA46E94F50C4ED48ED81D17C28B5C9DE1B3BA4C1D5F2B8F2",
|
||||
@ -199,7 +198,7 @@
|
||||
"player-context-menu.min.js": "D84439ABC219CBCDF4C431DAA73E799265485F3C5C07AE57F9A251C7CF967E4A",
|
||||
"player-focus.min.js": "9A290D6749E68A4A88563983413A296BFA9B5C18B978F9CF80799196AEC0F9EE",
|
||||
"player-on-top.min.js": "0D9AA8561E97A6FFCEABDA206B6A57EB87C1B3EF5D0D53EDABA3ED5EFB0DF687",
|
||||
"player-ready.min.js": "64485D4CDA753A92FD302CC213A8BD28A15F109752981CDFB3061811F2FA7BA6",
|
||||
"player-ready.min.js": "991AFD42587163977DAA57325F93B11E6C8A605CDACC6D5A5F3593B723B6AD21",
|
||||
"player-shadow.min.js": "36F509FF2C19FBF1322B798E0321F62CF8BF171C34FD48E2A6F5D387B5DDFD82",
|
||||
"quality-errors.min.js": "A691A407FC4F80C6B2D243CBFADC636FCFFC4DC35B9E305AEF4184AD3ECFC56B",
|
||||
"quick-favorite.min.css": "7829AE09EC0F9057C3970CDF4CEADC76A86269C1DA714E7BC64E6D783621076B",
|
||||
@ -217,7 +216,7 @@
|
||||
"remove-watermark.min.js": "261CB4D9DE5A2B565F9FE540741775C5A85CC4622A4F31F48F3D7BBAF5B46EB3",
|
||||
"reorder.min.js": "ECB93247175BCC5B9C689307680167B6C0C753F16265B6934A24020960866293",
|
||||
"restore-floors.min.js": "8110AC44E378163F8966BDED29F31E683AD2E05F22B4C21EB4EBB3B854577F25",
|
||||
"screenshot.min.css": "EC4C16257A3E7AE1A310A08B60B6F21251D9B278AAF576E7B482DCC37547294B",
|
||||
"screenshot.min.css": "FDC0FCE6BE0109792BF3152C9D13EF10BFCED20DE680AE2DE6AEA6E59C07722A",
|
||||
"screenshot.min.js": "B780CFDE3BF26058691E2F883E2149DDB33AE66DE78F44F1C2E9D8084A0953AB",
|
||||
"scrollbar.min.css": "E17BDD4F223F7992A1AF279D7EBA58D9FBB51217F45964C79E30DC2ACBC15B46",
|
||||
"scroll-out-player.min.js": "B68B23E79E164E1B33EEABD1D58AB478896409567E629C44A79E1AFF5D21AD7C",
|
||||
|
||||
BIN
min/bundle.zip
BIN
min/bundle.zip
Binary file not shown.
2
min/custom-navbar.min.js
vendored
2
min/custom-navbar.min.js
vendored
File diff suppressed because one or more lines are too long
2
min/default-player-mode.min.js
vendored
2
min/default-player-mode.min.js
vendored
@ -1 +1 @@
|
||||
(()=>(e,t)=>{if(typeof isEmbeddedPlayer!=="undefined"&&isEmbeddedPlayer()){return}const a=[{name:"常规",action:()=>{}},{name:"宽屏",action:async()=>{const{playerAgent:e}=await t.importAsync("player-agent");await e.widescreen()}},{name:"网页全屏",action:async()=>{const{playerAgent:e}=await t.importAsync("player-agent");await e.webFullscreen()}},{name:"全屏",action:async()=>{const{playerAgent:e}=await t.importAsync("player-agent");const a=await SpinQuery.condition((()=>document.querySelector(e.query.video.element.selector)),(e=>e!==null&&e.readyState===4&&document.readyState==="complete"&&document.hasFocus()));if(a===null){console.warn("[默认播放器模式] 未能应用全屏模式, 等待超时.");return}await e.fullscreen()}}];let n=()=>{};let i=()=>{};async function r(){const{playerAgent:a}=await t.importAsync("player-agent");if(e.autoLightOff){await SpinQuery.unsafeJquery();const e=await a.query.control.buttons.settings();if(!e){return}e.mouseover().mouseout();const t=async e=>{const t=await SpinQuery.select(".bilibili-player-video-btn-setting-right-others-content-lightoff .bui-checkbox-input");t.checked=e;raiseEvent(t,"change")};n=()=>t(true);i=()=>t(false)}}async function o(){await r();const{playerReady:o}=await t.importAsync("player-ready");const{playerAgent:s}=await t.importAsync("player-agent");await o();const c=await s.query.video.element();if(!c){return}const l=a.find((t=>t.name===e.defaultPlayerMode));const y=async()=>{const e=await s.query.bilibiliPlayer();const t=e.getAttribute("data-screen");const a=!e.className.includes("mode-")&&(t===null||t==="normal");if(l&&a){l.action()}};const u=_.get(JSON.parse(localStorage.getItem("bilibili_player_settings")),"video_status.autoplay",false);if(e.applyPlayerModeOnPlay&&!u){c.addEventListener("play",y,{once:true})}else{y()}if(u){n()}c.addEventListener("ended",i);c.addEventListener("pause",i);c.addEventListener("play",n)}Observer.videoChange(o)})();
|
||||
(()=>(e,t)=>{if(typeof isEmbeddedPlayer!=="undefined"&&isEmbeddedPlayer()){return}const a=[{name:"常规",action:()=>{}},{name:"宽屏",action:async()=>{const{playerAgent:e}=await t.importAsync("player-agent");await e.widescreen()}},{name:"网页全屏",action:async()=>{const{playerAgent:e}=await t.importAsync("player-agent");await e.webFullscreen()}},{name:"全屏",action:async()=>{const{playerAgent:e}=await t.importAsync("player-agent");const a=await SpinQuery.condition((()=>document.querySelector(e.query.video.element.selector)),(e=>e!==null&&e.readyState===4&&document.readyState==="complete"&&document.hasFocus()));if(a===null){console.warn("[默认播放器模式] 未能应用全屏模式, 等待超时.");return}await e.fullscreen()}}];let n=()=>{};let i=()=>{};async function o(){const{playerAgent:a}=await t.importAsync("player-agent");if(e.autoLightOff){await SpinQuery.unsafeJquery();const e=await a.query.control.buttons.settings();if(!e){return}e.mouseover().mouseout();const t=async e=>{const t=await SpinQuery.select(".bilibili-player-video-btn-setting-right-others-content-lightoff .bui-checkbox-input");t.checked=e;raiseEvent(t,"change")};n=()=>t(true);i=()=>t(false)}}async function r(){await o();const{playerReady:r}=await t.importAsync("player-ready");const{playerAgent:s}=await t.importAsync("player-agent");await r();Observer.videoChange((async()=>{const e=await s.query.video.element();if(!e){return}if(d){n()}e.addEventListener("ended",i);e.addEventListener("pause",i);e.addEventListener("play",n)}));const c=await s.query.video.element();if(!c){return}const l=a.find((t=>t.name===e.defaultPlayerMode));const y=async()=>{const e=!dq("body[class*=player-mode-]");if(l&&e){l.action()}};const d=_.get(JSON.parse(localStorage.getItem("bilibili_player_settings")),"video_status.autoplay",false);if(e.applyPlayerModeOnPlay&&!d){c.addEventListener("play",y,{once:true})}else{y()}}r()})();
|
||||
2
min/frame-playback.min.css
vendored
2
min/frame-playback.min.css
vendored
@ -1 +1 @@
|
||||
.frame-playback{display:none!important;position:relative;height:100%;align-items:center;padding:0 2px;margin-left:2px;cursor:pointer}.frame-playback span{height:100%}.player-mode-fullscreen .squirtle-controller-wrap .frame-playback span,.player-mode-webfullscreen .squirtle-controller-wrap .frame-playback span{height:auto;align-self:center}.bilibili-player-video-control-bottom .frame-playback,.squirtle-controller-wrap .frame-playback{display:flex!important}.frame-playback .player-tooltips.active{transition-duration:.15s;transition-delay:.15s;position:absolute;top:0;left:50%;transform:translateX(-50%) translateY(calc(-100% - 4px));opacity:0;pointer-events:none;visibility:visible;white-space:nowrap}.frame-playback:hover .player-tooltips{opacity:1;transform:translateX(-50%) translateY(calc(-100% - 19px))}.frame-playback.touch:hover .player-tooltips{transform:translateX(-50%) translateY(calc(-100% - 12px))}.frame-playback.touch{padding:0 4px;margin-left:4px}.frame-playback.touch span{display:flex;align-items:center}.frame-playback i{color:#fff;display:block;line-height:1;transition:.4s cubic-bezier(.18,.89,.32,1.28);opacity:.9}.frame-playback:not(.touch) i{margin-top:-2px}.player-mode-fullscreen .frame-playback,.player-mode-webfullscreen .frame-playback{margin-left:4px;padding:0 4px}.player-mode-fullscreen .frame-playback span,.player-mode-webfullscreen .frame-playback span{transform:scale(1.2)}.player-mode-fullscreen .frame-playback:not(.touch) i,.player-mode-webfullscreen .frame-playback:not(.touch) i{margin-top:1px;line-height:inherit}.player-mode-fullscreen .frame-playback.touch,.player-mode-webfullscreen .frame-playback.touch{margin-left:6px}.frame-playback.next-frame i,.frame-playback.prev-frame i{transform:scale(1.3)}.frame-playback.next-frame:hover i,.frame-playback.prev-frame:hover i{transform:scale(1.4);opacity:1}.frame-playback.next-frame:active i,.frame-playback.prev-frame:active i{transform:scale(1.25);opacity:1}
|
||||
.frame-playback{display:none!important;position:relative;height:100%;align-items:center;padding:0 2px;margin-left:2px;cursor:pointer}.frame-playback span{height:100%}.player-fullscreen-fix .squirtle-controller-wrap .frame-playback span,.player-mode-webfullscreen .squirtle-controller-wrap .frame-playback span{height:auto;align-self:center}.bilibili-player-video-control-bottom .frame-playback,.squirtle-controller-wrap .frame-playback{display:flex!important}.frame-playback .player-tooltips.active{transition-duration:.15s;transition-delay:.15s;position:absolute;top:0;left:50%;transform:translateX(-50%) translateY(calc(-100% - 4px));opacity:0;pointer-events:none;visibility:visible;white-space:nowrap}.frame-playback:hover .player-tooltips{opacity:1;transform:translateX(-50%) translateY(calc(-100% - 19px))}.frame-playback.touch:hover .player-tooltips{transform:translateX(-50%) translateY(calc(-100% - 12px))}.frame-playback.touch{padding:0 4px;margin-left:4px}.frame-playback.touch span{display:flex;align-items:center}.frame-playback i{color:#fff;display:block;line-height:1;transition:.4s cubic-bezier(.18,.89,.32,1.28);opacity:.9}.frame-playback:not(.touch) i{margin-top:-2px}.player-fullscreen-fix .frame-playback,.player-mode-webfullscreen .frame-playback{margin-left:4px;padding:0 4px}.player-fullscreen-fix .frame-playback span,.player-mode-webfullscreen .frame-playback span{transform:scale(1.2)}.player-fullscreen-fix .frame-playback:not(.touch) i,.player-mode-webfullscreen .frame-playback:not(.touch) i{margin-top:1px;line-height:inherit}.player-fullscreen-fix .frame-playback.touch,.player-mode-webfullscreen .frame-playback.touch{margin-left:6px}.frame-playback.next-frame i,.frame-playback.prev-frame i{transform:scale(1.3)}.frame-playback.next-frame:hover i,.frame-playback.prev-frame:hover i{transform:scale(1.4);opacity:1}.frame-playback.next-frame:active i,.frame-playback.prev-frame:active i{transform:scale(1.25);opacity:1}
|
||||
2
min/player-ready.min.js
vendored
2
min/player-ready.min.js
vendored
@ -1 +1 @@
|
||||
(()=>(n,o)=>{const e=()=>new Promise((async(n,o)=>{const e=document.URL.replace(window.location.search,"")==="https://www.bilibili.com/blackboard/newplayer.html"&&document.URL.includes("fjw=true");if(e){return}await SpinQuery.condition((()=>unsafeWindow),(()=>unsafeWindow.onLoginInfoLoaded!==undefined));if(unsafeWindow.onLoginInfoLoaded){unsafeWindow.onLoginInfoLoaded(n)}else{logError(new Error("utils.playerReady 失败"));console.error(`typeof onLoginInfoLoaded === ${typeof unsafeWindow.onLoginInfoLoaded}`);o()}}));const i=async()=>{if(unsafeWindow.aid){return unsafeWindow.aid}const n=await SpinQuery.condition((()=>{var n,o,e;return(n=unsafeWindow)===null||n===void 0?void 0:(o=n.player)===null||o===void 0?void 0:(e=o.getVideoMessage)===null||e===void 0?void 0:e.call(o)}),(n=>(n===null||n===void 0?void 0:n.aid)!==undefined)).catch((()=>{throw new Error("Cannot find aid")}));unsafeWindow.aid=n.aid;return n.aid};return{export:{playerReady:e,aidReady:i}}})();
|
||||
(()=>(n,o)=>{const e=()=>new Promise((async(n,o)=>{const e=document.URL.replace(window.location.search,"")==="https://www.bilibili.com/blackboard/newplayer.html"&&document.URL.includes("fjw=true");if(e){return}await SpinQuery.condition((()=>unsafeWindow),(()=>unsafeWindow.UserStatus!==undefined));if(unsafeWindow.onLoginInfoLoaded){unsafeWindow.onLoginInfoLoaded(n)}else{logError(new Error("utils.playerReady 失败"));console.error(`typeof onLoginInfoLoaded === ${typeof unsafeWindow.onLoginInfoLoaded}`);o()}}));const i=async()=>{if(unsafeWindow.aid){return unsafeWindow.aid}const n=await SpinQuery.condition((()=>{var n,o,e;return(n=unsafeWindow)===null||n===void 0?void 0:(o=n.player)===null||o===void 0?void 0:(e=o.getVideoMessage)===null||e===void 0?void 0:e.call(o)}),(n=>(n===null||n===void 0?void 0:n.aid)!==undefined)).catch((()=>{throw new Error("Cannot find aid")}));unsafeWindow.aid=n.aid;return n.aid};return{export:{playerReady:e,aidReady:i}}})();
|
||||
2
min/screenshot.min.css
vendored
2
min/screenshot.min.css
vendored
@ -1 +1 @@
|
||||
.video-take-screenshot{position:relative;padding:0 6px;margin-left:6px;height:100%;cursor:pointer;display:none!important}.bilibili-player-video-control-bottom .video-take-screenshot,.squirtle-controller-wrap .video-take-screenshot{display:flex!important}.video-take-screenshot.touch{padding:0 6px;margin-left:12px}.video-take-screenshot.touch span{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.video-take-screenshot i{font-size:20px;color:#fff;transform:scale(1);opacity:.9;transition:.4s cubic-bezier(.18,.89,.32,1.28);display:block}.player-mode-fullscreen .video-take-screenshot i,.player-mode-webfullscreen .video-take-screenshot i{font-size:24px}.player-mode-fullscreen .squirtle-controller-wrap .video-take-screenshot span,.player-mode-webfullscreen .squirtle-controller-wrap .video-take-screenshot span{align-self:center}.video-take-screenshot .player-tooltips.active{transition-duration:.15s;transition-delay:.15s;position:absolute;top:0;left:50%;transform:translateX(-50%) translateY(calc(-100% - 4px));opacity:0;pointer-events:none;visibility:visible;white-space:nowrap}.video-take-screenshot:hover .player-tooltips{opacity:1;transform:translateX(-50%) translateY(calc(-100% - 19px))}.video-take-screenshot.touch:hover .player-tooltips{transform:translateX(-50%) translateY(calc(-100% - 12px))}.video-take-screenshot:hover i{transform:scale(1.05);opacity:1}.video-take-screenshot:active i{transform:scale(.95);opacity:1}.video-screenshot-container{position:relative;--screenshot-width:240px;--screenshot-width-negative:calc(0px - var(--screenshot-width));--screenshot-height:135px;--thumbnail-margin-vertical:12px;--thumbnail-margin-horizontal:12px;--screenshot-list-width:calc(2 * var(--thumbnail-margin-horizontal) + var(--screenshot-width))}.video-screenshot-container,.video-screenshot-container *{transition:.2s ease-out}.video-screenshot-batch{position:fixed;bottom:var(--thumbnail-margin-vertical);right:0;z-index:20000;display:flex;width:var(--screenshot-list-width);align-items:center;justify-content:space-evenly}.video-screenshot-batch button{background:#000c;color:#fff;border:none;border-radius:8px;font-size:11pt;cursor:pointer;outline:0!important;padding:8px 12px;display:flex;justify-content:center;align-items:center;flex-grow:1}.video-screenshot-batch button:not(:last-child){margin-right:16px}.video-screenshot-batch button i{font-size:14pt;margin-right:4px}.video-screenshot-list{position:fixed;top:0;right:0;z-index:20000;margin:var(--thumbnail-margin-vertical) 0;max-height:calc(100% - 2 * var(--thumbnail-margin-vertical) - 58px);width:var(--screenshot-list-width);background-color:#000c;border-radius:8px;overflow:auto;scrollbar-width:none!important}.video-screenshot-list::-webkit-scrollbar{height:0!important;width:0!important}.video-screenshot-list *{pointer-events:initial}.video-screenshot-list-enter{opacity:0;transform:translateX(var(--screenshot-width-negative))}.video-screenshot-list-leave-to{opacity:0;transform:translateX(var(--screenshot-width))}@keyframes spinner{to{transform:translate(-50%,-50%) rotate(360deg)}}.video-screenshot-thumbnail{margin:var(--thumbnail-margin-vertical) var(--thumbnail-margin-horizontal);position:relative;transition:.35s cubic-bezier(.18,.89,.32,1.28);width:var(--screenshot-width);height:var(--screenshot-height);background-color:#000;display:flex;justify-content:center;align-items:center}.video-screenshot-thumbnail img{max-width:var(--screenshot-width);max-height:var(--screenshot-height);display:block;background-color:#000}.video-screenshot-thumbnail .loading::before{content:"";box-sizing:border-box;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(0);width:24px;height:24px;border-radius:50%;border:3px solid #8888;border-top-color:var(--theme-color);animation:.6s linear infinite spinner}.video-screenshot-thumbnail.video-screenshot-list-leave-active{position:absolute;transition:.35s cubic-bezier(.6,-.28,.74,.05)}.video-screenshot-thumbnail .mask{position:absolute;opacity:0;top:0;left:0;width:100%;height:100%;background:#0008;display:flex;justify-content:space-around;align-items:center;transition:none;pointer-events:none}.video-screenshot-thumbnail .mask .time{color:#fff;position:absolute;bottom:4px;left:8px;font-size:10pt}.video-screenshot-thumbnail .mask button{background:#000a;color:#fff;border:none;border-radius:50%;font-size:24pt;cursor:pointer;width:48px;height:48px;pointer-events:initial;outline:0!important}.video-screenshot-thumbnail:hover .mask{opacity:1}
|
||||
.video-take-screenshot{position:relative;padding:0 6px;margin-left:6px;height:100%;cursor:pointer;display:none!important}.bilibili-player-video-control-bottom .video-take-screenshot,.squirtle-controller-wrap .video-take-screenshot{display:flex!important}.video-take-screenshot.touch{padding:0 6px;margin-left:12px}.video-take-screenshot.touch span{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.video-take-screenshot i{font-size:20px;color:#fff;transform:scale(1);opacity:.9;transition:.4s cubic-bezier(.18,.89,.32,1.28);display:block}.player-fullscreen-fix .video-take-screenshot i,.player-mode-webfullscreen .video-take-screenshot i{font-size:24px}.player-fullscreen-fix .squirtle-controller-wrap .video-take-screenshot span,.player-mode-webfullscreen .squirtle-controller-wrap .video-take-screenshot span{align-self:center}.video-take-screenshot .player-tooltips.active{transition-duration:.15s;transition-delay:.15s;position:absolute;top:0;left:50%;transform:translateX(-50%) translateY(calc(-100% - 4px));opacity:0;pointer-events:none;visibility:visible;white-space:nowrap}.video-take-screenshot:hover .player-tooltips{opacity:1;transform:translateX(-50%) translateY(calc(-100% - 19px))}.video-take-screenshot.touch:hover .player-tooltips{transform:translateX(-50%) translateY(calc(-100% - 12px))}.video-take-screenshot:hover i{transform:scale(1.05);opacity:1}.video-take-screenshot:active i{transform:scale(.95);opacity:1}.video-screenshot-container{position:relative;--screenshot-width:240px;--screenshot-width-negative:calc(0px - var(--screenshot-width));--screenshot-height:135px;--thumbnail-margin-vertical:12px;--thumbnail-margin-horizontal:12px;--screenshot-list-width:calc(2 * var(--thumbnail-margin-horizontal) + var(--screenshot-width))}.video-screenshot-container,.video-screenshot-container *{transition:.2s ease-out}.video-screenshot-batch{position:fixed;bottom:var(--thumbnail-margin-vertical);right:0;z-index:20000;display:flex;width:var(--screenshot-list-width);align-items:center;justify-content:space-evenly}.video-screenshot-batch button{background:#000c;color:#fff;border:none;border-radius:8px;font-size:11pt;cursor:pointer;outline:0!important;padding:8px 12px;display:flex;justify-content:center;align-items:center;flex-grow:1}.video-screenshot-batch button:not(:last-child){margin-right:16px}.video-screenshot-batch button i{font-size:14pt;margin-right:4px}.video-screenshot-list{position:fixed;top:0;right:0;z-index:20000;margin:var(--thumbnail-margin-vertical) 0;max-height:calc(100% - 2 * var(--thumbnail-margin-vertical) - 58px);width:var(--screenshot-list-width);background-color:#000c;border-radius:8px;overflow:auto;scrollbar-width:none!important}.video-screenshot-list::-webkit-scrollbar{height:0!important;width:0!important}.video-screenshot-list *{pointer-events:initial}.video-screenshot-list-enter{opacity:0;transform:translateX(var(--screenshot-width-negative))}.video-screenshot-list-leave-to{opacity:0;transform:translateX(var(--screenshot-width))}@keyframes spinner{to{transform:translate(-50%,-50%) rotate(360deg)}}.video-screenshot-thumbnail{margin:var(--thumbnail-margin-vertical) var(--thumbnail-margin-horizontal);position:relative;transition:.35s cubic-bezier(.18,.89,.32,1.28);width:var(--screenshot-width);height:var(--screenshot-height);background-color:#000;display:flex;justify-content:center;align-items:center}.video-screenshot-thumbnail img{max-width:var(--screenshot-width);max-height:var(--screenshot-height);display:block;background-color:#000}.video-screenshot-thumbnail .loading::before{content:"";box-sizing:border-box;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(0);width:24px;height:24px;border-radius:50%;border:3px solid #8888;border-top-color:var(--theme-color);animation:.6s linear infinite spinner}.video-screenshot-thumbnail.video-screenshot-list-leave-active{position:absolute;transition:.35s cubic-bezier(.6,-.28,.74,.05)}.video-screenshot-thumbnail .mask{position:absolute;opacity:0;top:0;left:0;width:100%;height:100%;background:#0008;display:flex;justify-content:space-around;align-items:center;transition:none;pointer-events:none}.video-screenshot-thumbnail .mask .time{color:#fff;position:absolute;bottom:4px;left:8px;font-size:10pt}.video-screenshot-thumbnail .mask button{background:#000a;color:#fff;border:none;border-radius:50%;font-size:24pt;cursor:pointer;width:48px;height:48px;pointer-events:initial;outline:0!important}.video-screenshot-thumbnail:hover .mask{opacity:1}
|
||||
@ -1,6 +1,6 @@
|
||||
// ==UserScript==
|
||||
// @name Bilibili Evolved (Preview)
|
||||
// @version 1.12.20
|
||||
// @version 1.12.21
|
||||
// @description Bilibili Evolved 的预览版, 可以抢先体验新功能.
|
||||
// @author Grant Howard, Coulomb-G
|
||||
// @copyright 2021, Grant Howard (https://github.com/the1812) & Coulomb-G (https://github.com/Coulomb-G)
|
||||
|
||||
@ -11,7 +11,6 @@ const supportedUrls = [
|
||||
'//message.bilibili.com',
|
||||
'//app.bilibili.com',
|
||||
'//passport.bilibili.com',
|
||||
'//game.bilibili.com',
|
||||
'//live.bilibili.com/blackboard/',
|
||||
]
|
||||
const unsupportedUrls = [
|
||||
|
||||
@ -66,15 +66,31 @@ async function main () {
|
||||
const { playerAgent } = await import('./player-agent')
|
||||
await playerReady()
|
||||
|
||||
Observer.videoChange(async () => {
|
||||
// if (!autoPlay) {
|
||||
// video.addEventListener('play', lightOff, { once: true })
|
||||
// } else {
|
||||
// lightOff()
|
||||
// }
|
||||
const video = await playerAgent.query.video.element()
|
||||
if (!video) {
|
||||
return
|
||||
}
|
||||
if (autoPlay) {
|
||||
lightOff()
|
||||
}
|
||||
video.addEventListener('ended', lightOn)
|
||||
video.addEventListener('pause', lightOn)
|
||||
video.addEventListener('play', lightOff)
|
||||
})
|
||||
|
||||
const video = await playerAgent.query.video.element()
|
||||
if (!video) {
|
||||
return
|
||||
}
|
||||
const info = playerModes.find(it => it.name === settings.defaultPlayerMode)
|
||||
const onplay = async () => {
|
||||
const container = await (playerAgent.query.bilibiliPlayer())
|
||||
const attribute = container.getAttribute('data-screen')
|
||||
const isNormalMode = !container.className.includes('mode-') && (attribute === null || attribute === 'normal')
|
||||
const isNormalMode = !dq('body[class*=player-mode-]')
|
||||
if (info && isNormalMode) {
|
||||
info.action()
|
||||
}
|
||||
@ -85,17 +101,5 @@ async function main () {
|
||||
} else {
|
||||
onplay()
|
||||
}
|
||||
|
||||
// if (!autoPlay) {
|
||||
// video.addEventListener('play', lightOff, { once: true })
|
||||
// } else {
|
||||
// lightOff()
|
||||
// }
|
||||
if (autoPlay) {
|
||||
lightOff()
|
||||
}
|
||||
video.addEventListener('ended', lightOn)
|
||||
video.addEventListener('pause', lightOn)
|
||||
video.addEventListener('play', lightOff)
|
||||
}
|
||||
Observer.videoChange(main)
|
||||
main()
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
span {
|
||||
height: 100%;
|
||||
|
||||
.player-mode-fullscreen .squirtle-controller-wrap &,
|
||||
.player-fullscreen-fix .squirtle-controller-wrap &,
|
||||
.player-mode-webfullscreen .squirtle-controller-wrap & {
|
||||
height: auto;
|
||||
align-self: center;
|
||||
@ -57,7 +57,7 @@
|
||||
&:not(.touch) i {
|
||||
margin-top: -2px;
|
||||
}
|
||||
.player-mode-fullscreen &,
|
||||
.player-fullscreen-fix &,
|
||||
.player-mode-webfullscreen & {
|
||||
margin-left: 4px;
|
||||
padding: 0 4px;
|
||||
|
||||
@ -14,7 +14,7 @@ export const playerReady = () => {
|
||||
}
|
||||
await SpinQuery.condition(
|
||||
() => unsafeWindow,
|
||||
() => unsafeWindow.onLoginInfoLoaded !== undefined,
|
||||
() => unsafeWindow.UserStatus !== undefined,
|
||||
)
|
||||
if (unsafeWindow.onLoginInfoLoaded) {
|
||||
unsafeWindow.onLoginInfoLoaded(resolve)
|
||||
|
||||
@ -30,13 +30,13 @@
|
||||
opacity: 0.9;
|
||||
transition: all 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
|
||||
display: block;
|
||||
.player-mode-fullscreen &,
|
||||
.player-fullscreen-fix &,
|
||||
.player-mode-webfullscreen & {
|
||||
font-size: 24px;
|
||||
}
|
||||
}
|
||||
span {
|
||||
.player-mode-fullscreen .squirtle-controller-wrap &,
|
||||
.player-fullscreen-fix .squirtle-controller-wrap &,
|
||||
.player-mode-webfullscreen .squirtle-controller-wrap & {
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
@ -1 +1 @@
|
||||
1.12.20
|
||||
1.12.21
|
||||
Loading…
Reference in New Issue
Block a user