change "Loop in New Tab" to only loop the video
This commit is contained in:
parent
70ad4dd289
commit
5bbb0b9897
@ -209,7 +209,7 @@ Config =
|
|||||||
]
|
]
|
||||||
'Loop in New Tab': [
|
'Loop in New Tab': [
|
||||||
true
|
true
|
||||||
'Loop videos opened in their own tabs, and apply settings for inline expanded videos to them.'
|
'Loop videos opened in their own tabs.'
|
||||||
]
|
]
|
||||||
|
|
||||||
'Menu':
|
'Menu':
|
||||||
|
|||||||
@ -56,10 +56,7 @@ Main =
|
|||||||
filename: pathname[pathname.length - 1]
|
filename: pathname[pathname.length - 1]
|
||||||
Redirect.navigate URL
|
Redirect.navigate URL
|
||||||
else if Conf['Loop in New Tab'] and video = $ 'video'
|
else if Conf['Loop in New Tab'] and video = $ 'video'
|
||||||
Video.configure video
|
video.loop = true
|
||||||
$.on video, 'click', ->
|
|
||||||
if !video.controls
|
|
||||||
if video.paused then video.play() else video.pause()
|
|
||||||
return
|
return
|
||||||
|
|
||||||
if Conf['Normalize URL'] and g.VIEW is 'thread'
|
if Conf['Normalize URL'] and g.VIEW is 'thread'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user