This repository was archived by the owner on Apr 25, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
src/cxmooc-tools/chaoxing Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ title: 捐赠
1414
1515| 金额| 渠道| 捐赠者| 备注|
1616| ----| ----| ----| ----|
17+ | ¥ 10.00| QQ红包| 傻的可爱-||
1718| ¥ 50.00| QQ红包| 陈哲.IT||
1819| ¥ 20.00| QQ红包| 鸪||
1920| ¥ 10.00| QQ红包| 幻蓝| 打赏了一个鸡腿|
Original file line number Diff line number Diff line change @@ -45,19 +45,8 @@ module.exports = function () {
4545 }
4646
4747 function initCdn ( ) {
48- let cdn = undefined ;
49- if ( config . video_cdn != undefined || config . video_cdn != '默认' ) {
50- cdn = $ ( self . document ) . find ( "[title='Playline']+.vjs-menu .vjs-menu-content .vjs-menu-item .vjs-menu-item-text:contains('" +
51- config . video_cdn + "')" ) ;
52- } else if ( localStorage [ 'cdn' ] != undefined ) {
53- cdn = $ ( self . document ) . find ( "[title='Playline']+.vjs-menu .vjs-menu-content .vjs-menu-item .vjs-menu-item-text:contains('" +
54- localStorage [ 'cdn' ] + "')" ) ;
55- }
56- if ( cdn == undefined || cdn . length <= 0 ) {
57- cdn = $ ( self . document ) . find ( "[title='Playline']+.vjs-menu .vjs-menu-content .vjs-menu-item .vjs-menu-item-text" ) ;
58- }
59- cdn = cdn [ 0 ] ;
60- $ ( cdn ) . parent ( ) . click ( ) ;
48+ let cdn = config . video_cdn || localStorage [ 'cdn' ] ;
49+ $ ( '.vjs-playline-button .vjs-menu-item-text:contains(' + cdn + '):eq(0)' , self . document ) . parent ( ) . click ( ) ;
6150 }
6251
6352 /**
You can’t perform that action at this time.
0 commit comments