/**
 * 本模块负责执行切P调用监听
 */ /**
 * 本模块负责执行切P调用监听
 */ ( function ( ) { const switchlist = [ ] ; param callback function switchVideo ( callback ) { try { if ( typeof callback === "function" ) switchlist . push ( callback ) ; } catch ( e ) { toast . error ( "switchVideo.js" , e ) ; } } API . switchVideo = ( callback ) => switchVideo ( callback ) ; API . observerAddedNodes ( ( node ) => { if ( /bilibili-player-area video-state-pause/ . test ( node . className ) ) { switchlist . forEach ( async ( d ) => { try { d ( ) ; } catch ( e ) { debug . group ( "switchVideo.js" ) . error ( e ) . error ( d ) . end ( ) ; } } ) ; } } ) ; } ) ( ) ; declare namespace API { param callback function switchVideo ( callback ) ; }