fix script to open link in new tab with left click

Subscribe to fix script to open link in new tab with left click 4 posts, 3 voices

 
Ken Wright Scriptwright

http://userscripts.org/scripts/review/3458

the script in the link above does almost what I want it to, but the new tab is not the active tab.
I want to be able to left click on a link and have it open in a new tab. Been looking a long time. Don't like Tab Mix or having to Ctrl-left click or middle click. Can anyone help? Thanks.

 
Descriptor Scriptwright

That's a good question, I don't think you can because when the new tab opens you are "holding focus" on the current window, you are holding the mouse down, so the tab won't change.
It may be possible to change the event handler from "click" to "mouseup" which may allow the new tab to be on top - but only if your browser is set up that way, SeaMonkey opens tabs on top by default but Firefox developers are a bit clueless.

 
vOidSenses Scriptwright

just to let you know, i didn't even opened the link to see what the script does, i'm just read about the focus and i just want to remember you guys about the blur() and focus() functions in javascript, i don't even know if they solve the problem...

cheers

 
Ken Wright Scriptwright

I posted a script I found on a blog that appears to do the job. I named it leftclick. I saw it interfered with removing ads on TitanTv (had it customized with platypus) so just make an exception there.