Control volume in new tabs.

This commit is contained in:
ccd0 2015-02-01 10:56:46 -08:00
parent f45a7d11bc
commit d79ffca82d
2 changed files with 12 additions and 5 deletions

View File

@ -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': [

View File

@ -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'