mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-04 17:34:07 +02:00
Fix t.co bypass when middle-clicking links in tweets
This commit is contained in:
parent
aeb0842ab4
commit
3f5ffc9e10
@ -409,9 +409,11 @@
|
|||||||
//
|
//
|
||||||
// Block: Bypass t.co when clicking links and media.
|
// Block: Bypass t.co when clicking links and media.
|
||||||
//
|
//
|
||||||
$(document.body).delegate("a[data-full-url]", "click", function(e){
|
$(document.body).delegate("a[data-full-url]", "click auxclick", function(e){
|
||||||
$TD.openBrowser($(this).attr("data-full-url"));
|
if (e.button === 0 || e.button === 1){ // event.which seems to be borked in auxclick
|
||||||
e.preventDefault();
|
$TD.openBrowser($(this).attr("data-full-url"));
|
||||||
|
e.preventDefault();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (ensurePropertyExists(TD, "services", "TwitterUser", "prototype", "fromJSONObject")){
|
if (ensurePropertyExists(TD, "services", "TwitterUser", "prototype", "fromJSONObject")){
|
||||||
|
Loading…
Reference in New Issue
Block a user