TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

I Believe in the Middle Click

66 pointsby hdragomirover 14 years ago

7 comments

iwwrover 14 years ago
I hate javascript links that can't be opened in new tabs.
评论 #2189179 未加载
TomasSedovicover 14 years ago
I love and use this idea, but the OP missed the Shift key. At least Firefox and Chromium use Shift+click to open the link in a new window and I'm pretty sure IE does that as well but I can't test that now.<p>This is what I use:<p><pre><code> $('.some-snazzy-selector').click(function(ev){ if( ev.which == 2 || ev.metaKey || ev.ctrlKey || ev.shiftKey ) return true; e.preventDefault(); /* Awesome AJAX code goes here */ }); </code></pre> I posted this comment on the blog, but it may reach someone else here, too.
评论 #2189302 未加载
marcusEtingover 14 years ago
I believed in the middle click, too, and lots of other special clicks... until I switched to a MBP. The I customized the touchpad using the Better Touch Tool and I haven't looked back since! :)
hammockover 14 years ago
I use FF extension called DblClicker which lets me double-click a link into a new tab. It also closes (or duplicates) open tabs with a double-click.<p>Started using this when the middle-click on my mouse broke from too much use.
pavel_lishinover 14 years ago
I have never run into this problem, and didn't see anyplace where Delicious does this... is it really that common? (Aside from the middle-click-js-link-and-weep thing?)
评论 #2189309 未加载
评论 #2190937 未加载
评论 #2189900 未加载
mauriciobover 14 years ago
So many apps and sites lack this "feature". Because of that, now I need to call it what it isn't.
yuvadamover 14 years ago
Thank god for Greasemonkey.
评论 #2189317 未加载