mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Fix settings detection
This commit is contained in:
parent
cc98c0538f
commit
ca16b1db45
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
min/double-click-fullscreen.min.js
vendored
2
min/double-click-fullscreen.min.js
vendored
@ -1 +1 @@
|
||||
(()=>{return(i,l)=>{(async()=>{const l=["https://www.bilibili.com/bangumi/","https://www.bilibili.com/video/"];if(!l.some(i=>document.URL.startsWith(i))){return}if(i.touchVideoPlayerDoubleTapControl){Toast.info("在开启了<span>播放器触摸支持-启用双击控制</span>后, <span>双击全屏</span>功能将无效.","提示");i.doubleClickFullscreen=false;return}await SpinQuery.unsafeJquery();const n=await SpinQuery.condition(()=>dq(".bilibili-player-area"),i=>i!==null&&unsafeWindow.$(".bilibili-player-video").data("events"));if(n===null){return}const e="double-click-fullscreen";if(!n.classList.contains(e)){n.classList.add(e);const i=unsafeWindow.$(".bilibili-player-video");const l=new DoubleClickEvent(()=>dq(".bilibili-player-video-btn-fullscreen").click(),()=>{});l.bind(i[0])}})()}})();
|
||||
(()=>{return(i,e)=>{(async()=>{const e=["https://www.bilibili.com/bangumi/","https://www.bilibili.com/video/"];if(!e.some(i=>document.URL.startsWith(i))){return}if(i.touchVideoPlayer&&i.touchVideoPlayerDoubleTapControl){Toast.info("在开启了<span>播放器触摸支持-启用双击控制</span>后, <span>双击全屏</span>功能将无效.","提示");i.doubleClickFullscreen=false;return}await SpinQuery.unsafeJquery();const l=await SpinQuery.condition(()=>dq(".bilibili-player-area"),i=>i!==null&&unsafeWindow.$(".bilibili-player-video").data("events"));if(l===null){return}const n="double-click-fullscreen";if(!l.classList.contains(n)){l.classList.add(n);const i=unsafeWindow.$(".bilibili-player-video");const e=new DoubleClickEvent(()=>dq(".bilibili-player-video-btn-fullscreen").click(),()=>{});e.bind(i[0])}})()}})();
|
||||
@ -6,7 +6,7 @@
|
||||
if (!supportedUrls.some(url => document.URL.startsWith(url))) {
|
||||
return
|
||||
}
|
||||
if (settings.touchVideoPlayerDoubleTapControl) {
|
||||
if (settings.touchVideoPlayer && settings.touchVideoPlayerDoubleTapControl) {
|
||||
Toast.info('在开启了<span>播放器触摸支持-启用双击控制</span>后, <span>双击全屏</span>功能将无效.', '提示')
|
||||
settings.doubleClickFullscreen = false
|
||||
return
|
||||
|
||||
Loading…
Reference in New Issue
Block a user