Control volume in new tabs.
This commit is contained in:
parent
f45a7d11bc
commit
d79ffca82d
@ -264,6 +264,10 @@ Config =
|
||||
true
|
||||
'Loop videos opened in their own tabs.'
|
||||
]
|
||||
'Volume in New Tab': [
|
||||
true
|
||||
'Apply <%= meta.name %> mute and volume settings to videos opened in their own tabs.'
|
||||
]
|
||||
|
||||
'Menu':
|
||||
'Menu': [
|
||||
|
||||
@ -63,11 +63,14 @@ Main =
|
||||
boardID: g.BOARD.ID
|
||||
filename: pathname[pathname.length - 1]
|
||||
Redirect.navigate URL
|
||||
else if Conf['Loop in New Tab'] and video = $ 'video'
|
||||
video.loop = true
|
||||
video.controls = false
|
||||
video.play()
|
||||
ImageCommon.addControls video
|
||||
else if video = $ 'video'
|
||||
if Conf['Volume in New Tab']
|
||||
Volume.setup video
|
||||
if Conf['Loop in New Tab']
|
||||
video.loop = true
|
||||
video.controls = false
|
||||
video.play()
|
||||
ImageCommon.addControls video
|
||||
return
|
||||
|
||||
if Conf['Normalize URL'] and g.VIEW is 'thread'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user