File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -91,13 +91,16 @@ function waitForVideoElement(subtitles) {
9191function appendSubtitlesContainer ( video ) {
9292 if ( typeof video !== "undefined" ) {
9393 var videoContainer = video . parentNode ;
94- var subsContainer = document . createElement ( "DIV" ) ;
95- subsContainer . className = 'dbr dbnf-subs-container' ;
94+ var subsContainer
95+ if ( ! ( subsContainer = videoContainer . querySelector ( '.dbnf-subs-container' ) ) ) {
96+ var subsContainer = document . createElement ( "DIV" ) ;
97+ subsContainer . className = 'dbr dbnf-subs-container' ;
98+ videoContainer . appendChild ( subsContainer ) ;
99+ }
96100 subsContainer . style . fontSize = ( _textSizeBase + _subtitleSettings . fontSize ) . toString ( ) + 'px' ;
97101 subsContainer . style . color = _subtitleSettings . fontColour ;
98102 subsContainer . style . height = ( 1 - _subtitleSettings . subHeight ) . toString ( ) + '%' ;
99103 subsContainer . style . top = _subtitleSettings . subHeight . toString ( ) + '%' ;
100- videoContainer . appendChild ( subsContainer ) ;
101104 _subsContainer = subsContainer ;
102105 //alwaysCheckThatSubtitlesContainerIsAppended();
103106 }
Original file line number Diff line number Diff line change 11{
22 "manifest_version" : 2 ,
3- "name" : " Just play - 为你连接豆瓣电影和Netflix " ,
4- "short_name" : " Just play " ,
3+ "name" : " Netflix豆瓣电影助手 " ,
4+ "short_name" : " Netflix-豆瓣 " ,
55 "version" : " 3.0" ,
66 "icons" : {
77 "16" : " img/logo@1x.png" ,
You can’t perform that action at this time.
0 commit comments