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:
parent
3df474a8a5
commit
41d86ba440
@ -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'>► Open video in browser</a>");
|
||||
});
|
||||
|
||||
$("a[rel='user']").attr("target", "_blank");
|
||||
}).observe($(".js-app-columns")[0], {
|
||||
childList: true,
|
||||
subtree: true
|
||||
|
Loading…
Reference in New Issue
Block a user