mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-02 11:34:08 +02:00
parent
6a03730496
commit
bd0413f9aa
@ -202,7 +202,12 @@
|
|||||||
// Block: Hook into links to bypass default open function
|
// Block: Hook into links to bypass default open function
|
||||||
//
|
//
|
||||||
$(document.body).delegate("a[target='_blank']","click",function(e){
|
$(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();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
})($,$TD);
|
})($,$TD);
|
||||||
|
Loading…
Reference in New Issue
Block a user