Skip to content
Permalink
Browse files

Utilise sa propre icone pour le média

  • Loading branch information...
Delgan authored and dorian-marchal committed Dec 3, 2015
1 parent a57468a commit 3160c0a643d016dd3805905c6d438d37d1bec7bc
Showing with 5 additions and 4 deletions.
  1. BIN images/video-html5.png
  2. +1 −0 jvc-spawnkill.user.js
  3. +4 −4 modules/EmbedMedia.js
BIN +150 Bytes images/video-html5.png
Binary file not shown.
@@ -62,6 +62,7 @@
// @resource crown images/crown.png
// @resource settings images/settings.png
// @resource youtube images/youtube.png
// @resource video-html5 images/video-html5.png
// @resource vimeo images/vimeo.png
// @resource vine images/vine.png
// @resource dailymotion images/dailymotion.png
@@ -320,7 +320,7 @@ SK.moduleConstructors.EmbedMedia.prototype.initMediaTypes = function() {
//Vidéos HTML5 (WebM, OGG, MP4)
this.mediaTypes.push(new SK.moduleConstructors.EmbedMedia.MediaType({

id: "video_html5",
id: "video-html5",
settingId: "embedVideos",

regex: /^(https?:\/\/[^\s]*\.(?:ogv|mp4|webm|ogg))$/,
@@ -1010,10 +1010,10 @@ SK.moduleConstructors.EmbedMedia.prototype.getCss = function() {
background-image: url('" + GM_getResourceURL("image") + "');\
background-position: 0px -1px;\
}\
[data-media-id='video_html5'] {\
[data-media-id='video-html5'] {\
background-color: #F0662B;\
border-bottom-color: #B51E00;\
background-image: url('" + GM_getResourceURL("youtube") + "');\
background-image: url('" + GM_getResourceURL("video-html5") + "');\
background-position: 0px -1px;\
}\
[data-media-id='youtube'] {\
@@ -1110,7 +1110,7 @@ SK.moduleConstructors.EmbedMedia.prototype.getCss = function() {
}\
.image-media-element img ,\
.image-media-element video,\
.video_html5-media-element {\
.video-html5-media-element {\
max-width: 100%;\
}\
";

0 comments on commit 3160c0a

Please sign in to comment.
You can’t perform that action at this time.