Google Image Relinker Mod

By thorbenhauer Last update Oct 27, 2010 — Installed 57,640 times.

Long URLs break image layout

in
Subscribe to Long URLs break image layout 2 posts, 2 voices



Wes M User
FirefoxMacintosh

Having this script enabled can sometimes break the layout of the image results because the entire URL of the source page is displayed, pushing other images over to make room if the URL is too long. The problem is with the section of the code:
font.innerHTML = "<a href=\"" + contextLink + "\">" + domain + "</a>";

Change it to this and the links retain their original formatting with the ellipsis at the end for longer URLs:
font.innerHTML = "<a href=\"" + contextLink + "\">" + font.innerHTML + "</a>";

 
thorbenhauer Script's Author
FirefoxX11

Fixed in current version. Thanks for the hint!

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