added start and end parameter support

This commit is contained in:
NguyenTheo-dev 2023-05-05 14:02:00 +02:00 committed by GitHub
parent a9c2f03f92
commit 6631bdb501
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -4379,7 +4379,9 @@ tarteaucitron.services.youtube = {
frame_height = 'height=',
video_frame,
allowfullscreen = tarteaucitron.getElemAttr(x, "allowfullscreen"),
attrs = ["theme", "rel", "controls", "showinfo", "autoplay", "mute", "start", "loop", "enablejsapi"],
start = tarteaucitron.getElemAttr(x, "start"),
end = tarteaucitron.getElemAttr(x, "end"),
attrs = ["theme", "rel", "controls", "showinfo", "autoplay", "mute", "start", "end", "loop", "enablejsapi"],
params = attrs.filter(function (a) {
return tarteaucitron.getElemAttr(x, a) !== null;
}).map(function (a) {