Hide related videos when a youtube video is paused

This commit is contained in:
Julian Orth 2017-05-06 16:51:18 +02:00
parent 403f91f9f0
commit 1970d3e425

View File

@ -442,7 +442,7 @@ Embedding =
start += ' 0h0m0s'
start = 3600 * start.match(/(\d+)h/)[1] + 60 * start.match(/(\d+)m/)[1] + 1 * start.match(/(\d+)s/)[1]
el = $.el 'iframe',
src: "//www.youtube.com/embed/#{a.dataset.uid}?wmode=opaque#{if start then '&start=' + start else ''}"
src: "//www.youtube.com/embed/#{a.dataset.uid}?rel=0&wmode=opaque#{if start then '&start=' + start else ''}"
el.setAttribute "allowfullscreen", "true"
el
title: