Closed Bug 274790 Opened 20 years ago Closed 20 years ago

auto parsing of long url's [bookmarklet]

Categories

(Core :: Layout: Text and Fonts, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: toblin177, Unassigned)

References

()

Details

Whenever I get to a page on a bb where someone has posted a very long url I have
to use the lower slide bar in order to read the full post.  Some others who use
Firefox report the same problem while most do not.  It's a real pain. 
see: http://www.edodo.org/rumormill/viewtopic.php?p=172902&highlight=#172902

Thx.
Component: General → Layout: Fonts and Text
Product: Firefox → Core
Version: 1.0 Branch → Trunk
I guess this is saying that we want punctuation characters to be able to cause
word wrap if not doing so would cause the word to expand a table containing
block. Not sure how we can decently do this.
Assignee: firefox → nobody
QA Contact: firefox.general → core.layout.fonts-and-text
I just wrote a bookmarklet (in response to this bug) that takes any link longer
than 70 characters, and if the target of the link matches the link text (i.e.
the usual case with lazy people on forum) it chops out the middle and replaces
it with "..."  I had to add the "document.body.innerHTML" stuff at the end to
get the width to be recalculated - it's a hack, but it works, and even on huge
pages it isn't too slow.

javascript:(function(){ var k,x,t; for(k=0;x=document.links[k];k++) {  if
(x.innerHTML.length < 70) continue;  t=x.innerHTML.replace(/&amp;/g,'&');  if
(x.href == t)   x.innerHTML = x.innerHTML.substring(0,
30)+"..."+x.innerHTML.substring(x.innerHTML.length-30, x.innerHTML.length); }
document.body.innerHTML = document.body.innerHTML})();

Jesse, do you want to add this to your collection at squarefree.com?
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Summary: auto parsing of long url's → auto parsing of long url's [bookmarklet]
Nothing was actually checked into Mozilla code that I can see.

-> WORKSFORME.
Status: RESOLVED → UNCONFIRMED
Resolution: FIXED → ---
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.