mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-30 14:34:09 +02:00
Open browser when clicking on a "gif" (actually mp4)
This commit is contained in:
parent
9e5a39e9fc
commit
ee87841ec2
@ -230,4 +230,16 @@
|
|||||||
onUrlOpened();
|
onUrlOpened();
|
||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
//
|
||||||
|
// Block: Hook into mp4 video element clicking
|
||||||
|
//
|
||||||
|
$(document.body).delegate("video.js-media-gif","click",function(e){
|
||||||
|
var src = $(this).attr("src");
|
||||||
|
|
||||||
|
if (src.endsWith(".mp4")){
|
||||||
|
$TD.openBrowser(src);
|
||||||
|
e.preventDefault();
|
||||||
|
}
|
||||||
|
});
|
||||||
})($,$TD);
|
})($,$TD);
|
||||||
|
Loading…
Reference in New Issue
Block a user