Skip to main content

Nice Titles in GreaseMonkey

In response to a request on the GreaseMonkey Wiki and with the kind permission of Stuart Langridge I've ported Nice Titles to GreaseMonkey (actually this involves almost no work on my part).

They key differences between the original and my version are:

  1. No need for browser detection or background pngs - we're always in Firefox.

  2. I've added a 1 second delay on the Nice Title appearing since I prefer it that way.



Get the script here.

Comments

Phil Ringnalda said…
Somehow the link to the script wound up being relative to blogger.com rather than xurble.org (interesting how quietly installing a script by right-clicking a 404ed link fails, though).

Thanks for doing this: when Nice Titles was new, "it, everywhere" was exactly what I wanted, but it took longer to get a tool that would do it easily than the extent of my memory of wanting it (by a factor of ten thousand or so, given my gnat's memory).
Gareth said…
Oops. Link is fixed now.

I keep getting stung by that bug in Blogger's compose window.
Arvind said…
I keep getting this error after installating the script

Error: missing ; before statement
Source File: http://www.google.com/firefox?client=firefox-a&rls=org.mozilla:en-US:official
Line: 66, Column: 6
Source Code:
This is a port of Stuart Langridge's Nice Titles to Greasemonkey.
Gareth said…
That looks like a bug in GreaseMonkey.

It seems to have missed the comment block start /* at the top of the file.

Are you using the latest version?
James said…
Any chance of getting a version that uses createElementNS() when in a page that's served as application/xhtml+xml?
Sebbo said…
Would it be feasable to get Nice Titles to support link attributes on all elements, not just on links?
Sebbo said…
...er, I meant "title" attributes, of course. Duh.
Rod Begbie said…
There was a bug in the last-but-one version of Greasemonkey that caused the bug to which Arvind refers. The one on the homepage now works fine.
dfn_doe said…
Installed into greasemonkey and doesn't appear to work as advertsied. Even tried siabling all other greasemonkey scripts and still no-go any help would be mucho appreciated. I'm using the newest version of greasemonkey (0.3.3) as well as the newest version of firefox (1.0.4)...
David Taylor said…
Same here (Firefox 1.0.4 and GreaseMonkey 0.3.3). It doesn't do anything at all!
Gareth said…
It should work again now. Try re-installing.
Anonymous said…
It sure would be nice if the namespace url (http://xurble.org/userscripts) contained some sort of index page... even if it just redirects to /
FourthMonkey said…
Nice script.

One minor problem, it fails when the text of the link is enclosed in a 'span' tag.
shamu200 said…
Hey, nice script here. I was wondering though if there was any way either I (or you) could modify the script so that when you hover over a link without a title attribute it would still create the "Nice Title" part, but just listing the link's target URL.

I have another extension which pops up a tool tip listing the target address when you hover over a link, but if the link has a title attribute it gets in the way of your script. I still want the functionality of that extension and your script, but it is annoying having two things popping up over each other simultaneously. If your script could do the same thing as the aforementioned extension, then I wouldn't need the extension anymore.

Any help on this is greatly appreciated :D
athlon said…
it works good! nice application!
Anonymous said…
Indeed it doesn't work when it is enclosed in a span tag. Any idea what a workaround is for this?
Anonymous said…
Modified it to work with span tags ONLY

http://www.roktechie.com/nicetitles.user.js
Anonymous said…
Sorry, wrong url posted above

http://www.nerdhappens.com/nicetitles.user.js
Tezkah said…
Hi, this script isn't running in Firefox 1.5 with greasemonkey 0.6.4... is it possible that there is conflicts with other extensions, or does this script just need to be updated with it?
Kharmy said…
Here is a Greasemonkey script that adds support for multiline tooltips/titles in Firefox:

http://userscripts.org/scripts/show/2619

It works in Firefox 1.5+ too.