Middle click images to view

By JoeSimmons Last update Apr 20, 2009 — Installed 595 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 14 posts, 3 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
ekbworldwide Scriptwright

it seems your script doesn't work on wordpress blogs - well - at least on this one

Getting an RSS Feed Out of a Google Custom Search Engine (CSE) « OUseful.Info, the blog…
http://ouseful.wordpress.com/2008/10/18/getting...

 
ekbworldwide Scriptwright

Google uses a special url patteren

name_of_media_outlet.google.com/article/blahblah

for articles it hosts from media outlets.

ap / upi / afp
etc

example

Wanted: a leader for battered Republicans
http://afp.google.com/article/ALeqM5ikz5NB7gUGF...

Most of the articles have an image on the left side - and left-clicking it causes bugs.

 
ekbworldwide Scriptwright

version "a few minutes ago"

Could you give the script a version number?
How about 0.01?

Your script creates problems at safaribooksonline.com

example
Safari Books Online - 1565920546 - Learning the Korn Shell
http://my.safaribooksonline.com/1565920546

At the site left-click on the buttons and you'll see.

===

Edit

In fact - your script doesn't work on any link with a clickable image.

 
JoeSimmons Script's Author

Both those pages work now.
Upgrade the script.
Thanks for the input.

 
ekbworldwide Scriptwright

With version I that I installed a few minutes ago - version, um, whatever-number-it-is and with these settings

var open_in_new_tab = true;
var use_middle_click = true;

middle click works predictably: if middle-click then new tab

: Dogs Archives
http://www.harlemfur.com/pets/dogs/
There's a small bug at this site. The middle-click mouse movement icon thing appears...

but if you middle click again - the new tab opens.

The Horizon Line: Richmond Dog Parade
http://www.thehorizonline.com/blog/2007/04/dogs...

#53 Dogs « Stuff White People Like
http://stuffwhitepeoplelike.com/2008/02/04/53-d...

===

I'll be testing it all over the place with middle click and I'll give you a bug update tomorrow.

 
ekbworldwide Scriptwright

Okay.

<div id="do_strikethrough"><img height="24" width="25" onclick="simpletag('s')"
title="Strikethrough" alt="Strikethrough" 
src="style_images/1/folder_rte_images/strike.gif" class="rteimage"/></div>

image link
http://forum.karagarga.net/style_images/1/folde...

====

Edit

Also - I just realized that I was using a slightly older version of your script - on my last comments

http://userscripts.org/scripts/show/36581#comme...

http://userscripts.org/scripts/show/36581#comme...

 
JoeSimmons Script's Author

Can you use firebug and give me the exact src of that image then?

 
ekbworldwide Scriptwright

more bugs from results at the google image search for
dog

=============

The Horizon Line: Richmond Dog Parade
http://www.thehorizonline.com/blog/2007/04/dogs...

disabled
= left-click same tab
= right-click new tab

enabled
= [same results]

=============

: Dogs Archives
http://www.harlemfur.com/pets/dogs/
[The site is buggy? Weird results.]

disabled
= left-click nothing
= right-click same tab [sometimes]

enabled
= left-click new tab
= right-click nothing
= right-click [twice] same tab

=============

#53 Dogs « Stuff White People Like
http://stuffwhitepeoplelike.com/2008/02/04/53-d...

disabled
= left-click same tab
= right-click new tab

enabled
= [same results]

 
ekbworldwide Scriptwright

>> please tell me the forum you're using
Well, you need an account - and you can't log in with bugmenot...

KG Forums (Powered by Invision Power Board)
http://forum.karagarga.net/

but "(Powered by Invision Power Board)" is in the title

inurl:forum intitle:"Powered by Invision Power Board"
http://www.google.com/search?aq=f&num=100&hl=en...
about 5,300,000 for inurl:forum intitle:"Powered by Invision Power Board"

========================================================

I think that the left button simply can't work globally and you'll have to fix bug after bug after bug after bug.

It's impossible to guess how a site uses the left button.

Also - it's impossible for you to guess how a person has set up their Firefox to control tabs.

I use Tab Mix Plus and other things to control tabs. You might not have have the nytimes.com bug - and somebody else? Who knows.

I bet the bugs will range from minor bugs, to bugs that cause Firefox to freeze up and maybe they'll even been bugs that cause Firefox to crash.

========================================================

example

dog - Google Image Search
http://images.google.com/images?num=100&hl=en&l...

I randomly clicked on the dog results and within about three minutes I found a bug at nytimes.com

Japan, Home of the Cute and Inbred Dog
http://nytimes.com/2006/12/28/business/28dogs.h...

If you script is disabled...
- left clicking opens it in new tab
- right clicking opens it in a new tab

If you script is enabled...
- left clicking opens it in the same tab
- right clicking opens it in a new tab

========================================================

A few days ago I said the script could use its "own" click style: Ctrl-Left-Click and Ctrl-Middle-Click.

Ctrl-Left-Click = Context Menu - View Image - Left Click
Ctrl-Middle-Click = Context Menu - View Image - Right Click

I don't know if it's doable - but having your script give itself its down click style would - I think - avoid endless amounts of bugs.

 
JoeSimmons Script's Author

That's because it changes the onClick. I'll fix that with addEventListener.

Edit: Ok I made them open in a new tab (if the option is enabled [true]) and work on forums like you wanted.
And ekb, please tell me the forum you're using so I can exclude these images from this script so it wont display the images when you're trying to click the link button or any other one.

Edit again: I added the middle click availability and made it default. There is an option to change to left click to view also.

 
ekbworldwide Scriptwright

I found a bug.

In a forum your script stops formatting commands

example:

from working.

But...

I don't want to...

Excluded Pages
*/forum/*

...since I'd like to use your script to open images that are in forum.

It would be ideal to leave...
Include Pages: *
...unchanged, but to avoid script editing.

So, how about if your script used two main ideas?

________________________________
1

You could make your script a short cut for something that always works. Well, almost always works.
Context Menu - View Image


________________________________
2

You could avoid left-click and right-click and give your script its "own" click style. Your script could use Ctrl-Left-Click and Ctrl-Middle-Click.

Ctrl-Left-Click = Context Menu - View Image - Left Click
Ctrl-Middle-Click = Context Menu - View Image - Right Click


________________________________

Left and right click are "overloaded" - they do too many things
- javascript stuff
- greasemonkey stuff
- site links
- external links
- page anchors

You don't want your script to
- break navigation. The back button doesn't always work.
-or-
- to interfere with other scripts.
-or-
- to cause some other problems

 
JoeSimmons Script's Author

Could "middle click opens in a new tab" be added?

I'll see to it.

 
ekbworldwide Scriptwright

Hmm... Interesting - I'll be trying this out...

---

edit

Could "middle click opens in a new tab" be added?

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel