Hover Links (v2)

By eugenga Last update Aug 3, 2008 — Installed 650 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 17 posts, 5 voices



Jesse Andrews Admin

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

 
jfty.009260 User

Hmmm...the popup not showing up problem is gone.

eugenga, may I propose that you add id attributes for the favicon image, the title, and the domain? Styling them becomes tricky and other web page's CSS override the stylings.

 
lucideer Scriptwright

@jfty
Your problem with hovers might be an innerHTML problem. A lot of userscripts use innerHTML a non-standard function invented by Microsoft, which has a habit of causing havoc with eventListeners like mouseovers. Just a guess, it's probably not Greasemonkey's fault, but the script authors.

 
jfty.009260 User

Thanks for the update. Oh yeah, I'm not sure if it's a Greasemonkey bug, but when you hover over links created through Greasemonkey scripts, and when you hover on them with this script, no tooltips appear.

 
eugenga Script's Author

to jfty: thank, I add your styles in script, also change favicon showing - only if it present
- New problem - prevent line brake, betwen icon and link
nobr, nbsp - not working as I want

 
jfty.009260 User

I found a lot of fixes for my problems regarding this script.

If tooltips are stretching to as long as the page's width, use:
width: auto !important;

If tooltip content is spaced differently per page, use:
line-height: 1.2 !important;

If tooltips are sometimes covered (excluding Flash objects, of course):
z-index: 9999999999 !important;

If tooltips stretch too long because of uber long URLs:
max-width: 50% !important;

These problems are mostly caused by in-page CSS, and this can be remedied by adding custom CSS into the script. An '!important' token would help too.

 
jfty.009260 User

I'm using Windows...and the problem seemed to have went away. Dunno how or why.

 
eugenga Script's Author

to jfty - FF linux/windows all normal
change styles
Image Hosted by ImageShack.us

 
jfty.009260 User

I noticed that the text inside the tooltip is cropped by 1px from the right. Is it just me or is this problem also evident in other set-ups?

 
eugenga Script's Author

to d0ntstop:
I made this posibility
reinstall script, change 1st constant - delay in msec (I set delay to 0)

 
d0ntstop User

I'd love this a lot a lot more if there was a delay to it, so it didn't always pop up, if that's possible I wouldn't know..

 
eugenga Script's Author

Now favicon show by onLoad - to prevent show empty favicon

 
jfty.009260 User

Nice update, but sometimes the tooltip stretches to the width of the page.

The tooltip should also have a z-index greater than 1000 (probably 999999?) because elements in some sites can just get on top of the tooltip. You can add this to the tooltip div's css for better text spacing consistency:

line-height: 1.2 !important;

Some sites can override the properties of the tooltip, such as alignment and font size. Using CSS, variables, and the !important token might help this.

You should also add a variable that sets whether the title and the domain should be bolded or not.

Thanks.

 
eugenga Script's Author

Now show title of link, and favicon on page before external links (turn it off if annoing)

also small improvement near borders,

 
eugenga Script's Author

to jfty.009260 -
I know, I dont check is it space to show tooltip, may be make this later
I remember, that I made tooltip over cursor because of FF show title atribute under cursor overlay each other. I see your example (http://userscripts.org/scripts/show/4059), and later change my script to show title in it
The idea of my script - main attention to link host, to see on where site link follow, that's why I show favicon, grow font for host and cut off protocol (http:// or other)
and also implement decodeURIComponent() on href, it's actual for national wikipedias
So, soon will be remake )

 
jfty.009260 User

Very nice implementation. Only a few gripes.

The tooltip seems to be too high that when you're hovering on a link that's near the top, you won't be able to see its content.

Additional features from this script (http://userscripts.org/scripts/show/4059) would also be cooler. Support for form buttons would make this the best script ever.

Overall though, it looks very nice and it's functional.

 
eugenga Script's Author

Simple tooltip over links

favicon host
page

my preferences
based on - http://userscripts.org/scripts/show/28708

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