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:
parent
23606f6d6c
commit
3d88f57f8a
@ -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'>► 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'>► Open video in browser</a>");
|
||||
});
|
||||
}).observe($(".js-app-columns")[0],{
|
||||
childList: true,
|
||||
|
Loading…
Reference in New Issue
Block a user