No downloading of GIF videos in Chrome
This commit is contained in:
parent
fedfbed4eb
commit
211c649f9a
|
@ -519,7 +519,7 @@
|
||||||
<div class="column is-one-quarter is-clipped">
|
<div class="column is-one-quarter is-clipped">
|
||||||
<!-- GIF video? -->
|
<!-- GIF video? -->
|
||||||
{{if HasSuffix $Body.Photo.Filename ".mp4"}}
|
{{if HasSuffix $Body.Photo.Filename ".mp4"}}
|
||||||
<video loop controls
|
<video loop controls controlsList="nodownload"
|
||||||
{{if BlurExplicit $Body.Photo}}class="blurred-explicit"
|
{{if BlurExplicit $Body.Photo}}class="blurred-explicit"
|
||||||
{{else if (not (eq ($Root.CurrentUser.GetProfileField "autoplay_gif") "false"))}}autoplay
|
{{else if (not (eq ($Root.CurrentUser.GetProfileField "autoplay_gif") "false"))}}autoplay
|
||||||
{{end}}>
|
{{end}}>
|
||||||
|
|
|
@ -215,7 +215,7 @@
|
||||||
{{else}}
|
{{else}}
|
||||||
<!-- GIF video? -->
|
<!-- GIF video? -->
|
||||||
{{if HasSuffix .Filename ".mp4"}}
|
{{if HasSuffix .Filename ".mp4"}}
|
||||||
<video autoplay loop controls>
|
<video autoplay loop controls controlsList="nodownload">
|
||||||
<source src="{{PhotoURL .Filename}}" type="video/mp4">
|
<source src="{{PhotoURL .Filename}}" type="video/mp4">
|
||||||
</video>
|
</video>
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
<div class="image block">
|
<div class="image block">
|
||||||
<!-- GIF video? -->
|
<!-- GIF video? -->
|
||||||
{{if HasSuffix .Photo.Filename ".mp4"}}
|
{{if HasSuffix .Photo.Filename ".mp4"}}
|
||||||
<video autoplay loop controls>
|
<video autoplay loop controls controlsList="nodownload">
|
||||||
<source src="{{PhotoURL .Photo.Filename}}" type="video/mp4">
|
<source src="{{PhotoURL .Photo.Filename}}" type="video/mp4">
|
||||||
</video>
|
</video>
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|
|
@ -507,7 +507,7 @@
|
||||||
<div class="card-image has-text-centered is-clipped">
|
<div class="card-image has-text-centered is-clipped">
|
||||||
<!-- GIF video? -->
|
<!-- GIF video? -->
|
||||||
{{if HasSuffix .Filename ".mp4"}}
|
{{if HasSuffix .Filename ".mp4"}}
|
||||||
<video loop controls
|
<video loop controls controlsList="nodownload"
|
||||||
{{if BlurExplicit .}}class="blurred-explicit"
|
{{if BlurExplicit .}}class="blurred-explicit"
|
||||||
{{else if (not (eq ($Root.CurrentUser.GetProfileField "autoplay_gif") "false"))}}autoplay
|
{{else if (not (eq ($Root.CurrentUser.GetProfileField "autoplay_gif") "false"))}}autoplay
|
||||||
{{end}}>
|
{{end}}>
|
||||||
|
@ -628,7 +628,7 @@
|
||||||
<div class="card-image has-text-centered is-clipped">
|
<div class="card-image has-text-centered is-clipped">
|
||||||
<!-- GIF video? -->
|
<!-- GIF video? -->
|
||||||
{{if HasSuffix .Filename ".mp4"}}
|
{{if HasSuffix .Filename ".mp4"}}
|
||||||
<video loop controls
|
<video loop controls controlsList="nodownload"
|
||||||
{{if BlurExplicit .}}class="blurred-explicit"
|
{{if BlurExplicit .}}class="blurred-explicit"
|
||||||
{{else if (not (eq ($Root.CurrentUser.GetProfileField "autoplay_gif") "false"))}}autoplay
|
{{else if (not (eq ($Root.CurrentUser.GetProfileField "autoplay_gif") "false"))}}autoplay
|
||||||
{{end}}>
|
{{end}}>
|
||||||
|
|
|
@ -71,7 +71,7 @@
|
||||||
<div class="card-image has-text-centered is-clipped">
|
<div class="card-image has-text-centered is-clipped">
|
||||||
<!-- GIF video? -->
|
<!-- GIF video? -->
|
||||||
{{if HasSuffix .Photo.Filename ".mp4"}}
|
{{if HasSuffix .Photo.Filename ".mp4"}}
|
||||||
<video loop controls
|
<video loop controls controlsList="nodownload"
|
||||||
{{if BlurExplicit .Photo}}class="blurred-explicit"
|
{{if BlurExplicit .Photo}}class="blurred-explicit"
|
||||||
{{else if (not (eq ($Root.CurrentUser.GetProfileField "autoplay_gif") "false"))}}autoplay
|
{{else if (not (eq ($Root.CurrentUser.GetProfileField "autoplay_gif") "false"))}}autoplay
|
||||||
{{end}}>
|
{{end}}>
|
||||||
|
|
|
@ -176,7 +176,7 @@
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
<figure id="editphoto-preview" class="image block">
|
<figure id="editphoto-preview" class="image block">
|
||||||
{{if HasSuffix .EditPhoto.Filename ".mp4"}}
|
{{if HasSuffix .EditPhoto.Filename ".mp4"}}
|
||||||
<video autoplay loop controls>
|
<video autoplay loop controls controlsList="nodownload">
|
||||||
<source src="{{PhotoURL .EditPhoto.Filename}}" type="video/mp4">
|
<source src="{{PhotoURL .EditPhoto.Filename}}" type="video/mp4">
|
||||||
</video>
|
</video>
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user