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

Remove (hopefully) unnecessary user link target fix

This commit is contained in:
chylex 2017-03-04 13:11:33 +01:00
parent 3df474a8a5
commit 41d86ba440

View File

@ -525,15 +525,13 @@
})();
//
// Block: Setup video element replacement and fix missing target in user links
// Block: Setup video element replacement.
//
onAppReady.push(function(){
new MutationObserver(function(){
$("video").each(function(){
$(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>");
});
$("a[rel='user']").attr("target", "_blank");
}).observe($(".js-app-columns")[0], {
childList: true,
subtree: true