1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-21 15:15:48 +02:00

Fix video element replacement generating unclickable <a> tags

This commit is contained in:
chylex 2016-07-06 00:19:10 +02:00
parent 23606f6d6c
commit 3d88f57f8a

View File

@ -56,7 +56,7 @@
// Setup video element replacement
new MutationObserver(function(){
$("video").each(function(){
$(this).parent().replaceWith("<a href='"+$(this).attr("src")+"' style='display:block; border:1px solid #555; padding:3px 6px'>&#9658; Open video in browser</a>");
$(this).parent().replaceWith("<a href='"+$(this).attr("src")+"' rel='url' target='_blank' style='display:block; border:1px solid #555; padding:3px 6px'>&#9658; Open video in browser</a>");
});
}).observe($(".js-app-columns")[0],{
childList: true,