Lost password? | Help

[ advanced search ]

middle button replacement

Forums » Opera Community » General Opera topics » Customizing Opera

Go to last post

Wednesday, 17. September 2008, 07:07:49

pechorin

avatar

Posts: 148

middle button replacement

hi! i have just bought a tablet pc and i am missing very much the middle click options. i used it for open links in background and close tabs. any suggestion?

remember: it is a tablet, i have no key or right click options (well, i have the right click, but it takes toooo long)

i have seen firefox have the dragndrop extension, where you can open in background by just dragging the link with the left button, that would be an easy way if possible.

thanks!

Wednesday, 17. September 2008, 07:25:23

Pesala

Reclining Buddha

avatar

Posts: 12856

UK

Drag the link with the left button, hold down ctrl + shift to open it in a background tab.

Set EnableDrag to 255 and you don't need to drag the link all the way to the tab bar, just release it anywhere on the page.

Wednesday, 17. September 2008, 08:45:39 (edited)

pechorin

avatar

Posts: 148

thank you for the quick and perfect reply :smile:

enable drag to 255 works very well, any chance to open in background by default? remember i dont have keys...

i should be used to it, but i still surprise with all the options and posible configurations in opera. the problem is that it is not very easily accesible and they dont give many information.

Wednesday, 17. September 2008, 15:47:20

Pesala

Reclining Buddha

avatar

Posts: 12856

UK

I think you will have to use the right-click menu to open in a background tab.

Thursday, 18. September 2008, 06:16:03

pechorin

avatar

Posts: 148

thank you pesala, but too bad right click is not the ideal option... :frown:

Lex1, i will try that but, how can i use them? i dont know what to do with those files...

and i will try to modify them for drag, because keys and delays are not good options, any idea?

thank you both!

Thursday, 18. September 2008, 08:13:00

how can i use them?


http://userjs.org/help/installation

delays are not good options


It is a question of habit :wink: On dragging of links, more efforts are expended :smile:, and with script enough to press and not release the left button.

Thursday, 18. September 2008, 08:38:39

pechorin

avatar

Posts: 148

thanks Lex1, it works great but:

it doesnt open in background, it just open in another tab, maybe i did something wrong...

and i said they are not good options because i must have the finger without moving on the screen for a while and it is a bit uncomfortable, and maybe it has conflicts with the right click (im not with my tablet now) because if i want right click, i must stay still for long and it will do an open in background too before the right click

Thursday, 18. September 2008, 18:04:45

it doesnt open in background


http://my.opera.com/Lex1/blog/show.dml/989155#comment5507983

in Opera 9.5 you must set Ctrl+F12->Advanced->Content->Javascript options->Allow lowering of windows.



and maybe it has conflicts with the right click


There are not problems with my laptop.

Friday, 19. September 2008, 06:22:06 (edited)

bpm

avatar

Posts: 1007

Canada

I'm not sure if you have a way of effecting mouse gestures on the tablet - usually done by holding right button - but if so:

Since changing the drag setting gives you open link in new window with leftbutton drag, you can change the function assigned to the mouse gesture "gesture down" (which is drag down while holding right button) from the default open link in new page to open link in background page.

While you're at it, make the assignment Open link in background page | Go to page,"%t" & Minimize page - then it will also work on text links you have highlighted.

To close current page, the default mouse gesture "down, right" is pretty good.

Friday, 19. September 2008, 06:16:37

pechorin

avatar

Posts: 148

thanks, background issue fixed :smile:

Originally posted by Lex1:


There are not problems with my laptop.



maybe you dont have a tablet pc, i mean, in a tablet, you must hold the click about a second for right click menu, if i have your script enabled, it will open the link on background brfore getting the right click, so that's the conflict, that's what is all about this thread.

Friday, 19. September 2008, 06:21:43

pechorin

avatar

Posts: 148

Originally posted by bpm:

I'm not sure if you have a way of effecting mouse gestures on the tablet - usually done by holding right button - but if so:

Since changing the drag setting gives you open link in new window with leftbutton drag, you can change the mouse gesture you get with "gesture down" (which is drag down while holding right button) from the default open link in new page to open link in background page.

While you're at it, make the assignment Open link in background page | Go to page,"%t" & Minimize page - then it will also work on text links you have highlighted.

To close current page, the default mouse gesture "down, right" is pretty good.



thank you, but i cant make right click for gestures, or i can do, but it takes too long, thats why i am looking for another option

Friday, 19. September 2008, 07:49:35

AyushJ

avatar

Posts: 4754

Try this user-javascript: drag-open-link
Drag links a little bit (40x40 pixels) UP and to the RIGHT quickly (max 2.5 sec) to open in background

Friday, 19. September 2008, 09:56:19

AyushJ

avatar

Posts: 4754

Originally posted by pechorin:

thank you! that seems great, but i cant get it to open in background... any tip?


Make sure "Open in background tab" is selected in Preferences > Advanced > Shortcuts - "Middle click Options.."

Originally posted by pechorin:

with the source, i will try to do it with just move down, it doesnt have to be very difficult.


Find/replace
if((e.pageX-mdown[0])>40 && (e.pageY-mdown[1])<-40){
with
if((e.pageY-mdown[1])>15){

Friday, 19. September 2008, 10:31:13

pechorin

maybe you dont have a tablet pc


Yes, usual laptop.

AyushJ
Good script, but it work wrong, if «enable drag» == 255 :wink: .

Friday, 19. September 2008, 10:35:48

pechorin

avatar

Posts: 148

thanks! but it still doesnt work.

it is already set to open in background tab, but still nothing :frown:

now i will try to get some parts from the Lex1 script, that worked ok, maybe i got something.

edit: so it fails, thanks Lex1 i will still try the above thing, i hope that could fix it

Monday, 29. September 2008, 06:45:55

pechorin

avatar

Posts: 148

just one doubt, i have been using the drag-down script to open pages in background, with drag to 247 (default) but it does not work with every link, what is the criteria for which links work and which ones dont?

Tuesday, 30. September 2008, 03:02:13

sgunhouse

Volunteer

avatar

Posts: 52941

Flag City, USA

It can't work with javascript links, if you hover a link and it says "javascript..." or anything which isn't a valid link (doesn't start with http:, https: or maybe ftp:) then it won't work. Beyond that ... well, that's all I can think of.

Tuesday, 30. September 2008, 07:28:56

pechorin

avatar

Posts: 148

thank you, but there must be something else because, for example, in a random search in google, it doesnt work with mostly of links... i coudnt find a criterion

Wednesday, 1. October 2008, 02:03:48

sgunhouse

Volunteer

avatar

Posts: 52941

Flag City, USA

Doesn't work for those "Sponsored links", maybe? Or is this a case of blocking too much content - some people can't even click on those "Sponsored links" because they added Google's click counter to the content blocker. Make sure that actual clicking works for those links, so that it isn't a content blocking issue.

Wednesday, 1. October 2008, 06:51:24

pechorin

avatar

Posts: 148

thanks for replying.

no, they are not the sponsored links, they are just the results of the search... it works, for example, with the "similar pages" links, but neither with the "cached"
i am using drag = 247 (default) maybe should i use another one?
255 breaks the script posted above, so i would like to avoid it...

Wednesday, 1. October 2008, 21:07:55

sgunhouse

Volunteer

avatar

Posts: 52941

Flag City, USA

At the moment, there are only 8 valid results for drag anyway, other values will simply duplicate one of the existing values.

Does actually clicking on the "cached" link work? Some security programs seems to block direct IP addresses ...

Here's an example of a "cached" link:

http://74.125.45.104/search?q=cache:LSQ_cZCDVR0J:lists.w3.org/Archives/Public/www-xsl-fo/2001Oct/0017.html+entity+eacute&hl=en&ct=clnk&cd=1&gl=us&client=opera

Notice that the address is a number instead of a name? That's what I'm talking about - some security software won't let you access pages whose website is a number. If you actually click on that link, does it work fine?

Thursday, 2. October 2008, 03:27:31

AyushJ

avatar

Posts: 4754

Dragging doesn't work on those links because of this bug

Thursday, 2. October 2008, 06:21:25

pechorin

avatar

Posts: 148

@sgunhouse
i didnt mean that cached, i meant the google cached links in the searchs. the link you write works well, actually every link in the opera forum works well, but not in google, for example.

@AyushJ
i am believing more the bug stuff, because it has no apparetn logic, i hope they will fix it

so, is there any way to solve temporarily this situation?

thanks both!

Thursday, 2. October 2008, 11:07:59

sgunhouse

Volunteer

avatar

Posts: 52941

Flag City, USA

If it is the bug AyushJ mentions, then disabling javascript before your search will make everything work (that time anyway).

Thursday, 2. October 2008, 11:31:02

pechorin

avatar

Posts: 148

still doesnt work without javascript... but it does with drag=255
so, is there any chance to make the script work with drag=255 or another "enable drag" code that works with both drag and script?
and, where can i find the meaning of the enable drag codes?
thanks again

Thursday, 2. October 2008, 18:04:12

sgunhouse

Volunteer

avatar

Posts: 52941

Flag City, USA

Been discussed years ago ... all opera:config stuff should be in the online manual, let me see ...

Enable Drag

Bit field; which elements to enable drag and drop for:
1 = link
2 = bookmark
8 = same window

247

N/A



So ... 247 versus 255 is only whether or not "8 = same window" is included. With 255, you can drop on the same tab, with 247 you can't.

Monday, 20. July 2009, 18:12:51

azotyp

avatar

Posts: 17

Poland

Hi could anyone make a script to open links in new tan in background when clicking space+left mouse button and separrately alt + left mouse button ?
Maybe you could modify that script
http://my.opera.com/Lex1/blog/userjs-2

Forums » Opera Community » General Opera topics » Customizing Opera