Warning

 

Close

Confirm Action

Are you sure you wish to do this?

Confirm Cancel
BCM
User Panel

Posted: 12/19/2005 2:07:50 PM EDT
Have ya ever gone to a website (including some of the postings here) and the page is wider than your screen (text area)?

I just found a remedy for that if you use FireFox as your browser . I don't know if it will work in IE or not..

Anyhow, in FireFox, make a new bookmark and name it Wrap

In the location field, cut/copy/paste this code

javascript:(function() { var D = document; F(D.body); function F(n) { var u, r, c, x; if (n.nodeType == 3) { u = n.data.search(/\S{45}/); if (u >= 0) { r = n.splitText(u + 45); n.parentNode.insertBefore(D.createElement('wbr'), r); } } else if ((n.tagName != 'STYLE') && (n.tagName != 'SCRIPT')) { for (c = 0; x = n.childNodes[c]; ++c) { F(x); } } } D.body.innerHTML += ' '; })();


Now go find a posting that has a wide text area.. Then just click on the bookmark button and then on Wrap and wha-lah, the page is now sized so that you don't have to side scroll to read it..
Link Posted: 12/20/2005 7:05:02 AM EDT
[#1]
So THAT'S how you do that!

And I was so close, too - I was only missing that 8th  left bracket on the second line

(million monkeys at a million type-writers, and eventually you would get this code )
Link Posted: 12/20/2005 8:20:40 AM EDT
[#2]
Thanks for the tip
Close Join Our Mail List to Stay Up To Date! Win a FREE Membership!

Sign up for the ARFCOM weekly newsletter and be entered to win a free ARFCOM membership. One new winner* is announced every week!

You will receive an email every Friday morning featuring the latest chatter from the hottest topics, breaking news surrounding legislation, as well as exclusive deals only available to ARFCOM email subscribers.


By signing up you agree to our User Agreement. *Must have a registered ARFCOM account to win.
Top Top