/**
 * 本模块负责重写稍后再看页面
 */ /**
 * 本模块负责重写稍后再看页面
 */ ( function ( ) { try { if ( ! API . uid ) toast . warning ( "未登录，无法启用稍后再看！" ) ; else { API . path . name = "watchlater" ; API . restorePlayerSetting ( ) ; API . scriptIntercept ( [ "video-nano" ] ) ; API . scriptIntercept ( [ "stardust-video" ] ) ; API . rewriteHTML ( config . trusteeship ? API . getModule ( "watchlater.html" ) . replace ( "static.hdslb.com/js/video.min.js" , "cdn.jsdelivr.net/gh/MotooriKashin/Bilibili-Old/dist/video.min.js" ) : API . getModule ( "watchlater.html" ) ) ; API . addCss ( API . getModule ( "bofqi.css" ) ) ; ( < any > window ) . commentAgent = { seek : ( t ) => ( < any > window ) . player && ( < any > window ) . player . seek ( t ) } ; config . enlike && API . importModule ( "enLike.js" ) ; API . addCss ( API . getModule ( "mini-bofqi.css" ) ) ; API . importModule ( "videoSort.js" ) ; API . path . forEach ( d => { d . includes ( "av" ) && ( API . aid = Number ( /[0-9]+/ . exec ( d ) [ 0 ] ) ) ; } ) ; } } catch ( e ) { toast . error ( "watchlater.js" , e ) ; } } ) ( ) ;