mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-23 12:15:48 +02:00
parent
6a03730496
commit
bd0413f9aa
@ -202,7 +202,12 @@
|
||||
// Block: Hook into links to bypass default open function
|
||||
//
|
||||
$(document.body).delegate("a[target='_blank']","click",function(e){
|
||||
$TD.openBrowser($(this).attr("href"));
|
||||
var me = $(this);
|
||||
|
||||
if (!me.is(".link-complex") && !(me.attr("rel") == "mediaPreview" && me.closest("#open-modal").length == 0)){
|
||||
$TD.openBrowser(me.attr("href"));
|
||||
}
|
||||
|
||||
e.preventDefault();
|
||||
});
|
||||
})($,$TD);
|
||||
|
Loading…
Reference in New Issue
Block a user