Control volume in new tabs.
This commit is contained in:
parent
f45a7d11bc
commit
d79ffca82d
@ -264,6 +264,10 @@ Config =
|
|||||||
true
|
true
|
||||||
'Loop videos opened in their own tabs.'
|
'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':
|
||||||
'Menu': [
|
'Menu': [
|
||||||
|
|||||||
@ -63,11 +63,14 @@ Main =
|
|||||||
boardID: g.BOARD.ID
|
boardID: g.BOARD.ID
|
||||||
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 video = $ 'video'
|
||||||
video.loop = true
|
if Conf['Volume in New Tab']
|
||||||
video.controls = false
|
Volume.setup video
|
||||||
video.play()
|
if Conf['Loop in New Tab']
|
||||||
ImageCommon.addControls video
|
video.loop = true
|
||||||
|
video.controls = false
|
||||||
|
video.play()
|
||||||
|
ImageCommon.addControls video
|
||||||
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