- Iggyhopper
- |
- Exalted Mythic Member
AV=http://avatar.coolclip.ru/albums/Avatars/Avatars%2090x90/A vatars_90x90_022.gif
BG=http://avatar.coolclip.ru/albums/Avatars/Avatars%2090x90/A vatars_90x90_022.gif
Posted by: BahamutZER0
(because I'm pretty sure I've got all the bugs fixed now)
Link preview:
A script to display the url of a link in a forum post when it is hovered over, so you don't have to remember to check the bottom left corner of your browser.
Script link
Which when hovered over becomes:
Script link (http://userscripts.org/scripts/show/47746)
There's a conflict with the Bungie BBCode script's embedded images that I know of, but it works correctly so long as the link preview script is above the BBCode script in the manage user scripts list. I don't know of any other conflicts, but let me know if you find one.
Under some specific circumstances (rapidly passing over a link with text formatting) the preview url may stay on the link after you've stopped hovering on it, but it will fix itself the next time you hover over a link.Another way to do that too.
You can set the title attribute of all links to their respective href attribute. That way, if you hover over a link long enough, it will show you where it goes.
var els = document.getElementsByTagName("p");
// get rid of any P tags that are not part of posts, and also, set title = href.
for (var i = 0; i < els.length; i++)
{
if (els[i].id.indexOf("PostBlock") > -1) els[i].title = els.[i].href;
}
[Edited on 05.13.2009 12:25 PM PDT]