PDA

View Full Version : Mozilla Firefox Users..


N1MLF
12-20-2005, 12:47 PM
Have ya ever gone to a website (including some of the postings here) and the page is wider than your screen (text area)? Making you side scroll to read it??

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 when you 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..

Hope this helps..JW

K8ERV
12-20-2005, 02:30 PM
I have that problem. My image program, compupic allows resizing.If I resize an image (copy) to a lower value, it will fit on the screen. I don't always remember to do it tho.

TOM K8ERV Montrose Colo

ka5s
12-20-2005, 03:26 PM
Quote[/b] (N1MLF @ Dec. 20 2005,05:47)]Have ya ever gone to a website (including some of the postings here) and the page is wider than your screen (text area)? Making you side scroll to read it??

I just found a remedy for that if you use FireFox as your browser ...
Can you post a link to the original location?


Cortland
KA5S

N1MLF
12-20-2005, 05:53 PM
A5S I got it on another forum.. there was no reference to the original source.
It works fine for me and I didnt get an alarm from my registry tracker.
I will inquire at the other forum to see if I can locate the original source.
..JW

ka5s
12-21-2005, 12:22 AM
Thanks, JW... I'd like to post it on the Firefox forum at Delphiforums but as they're really sensitive to copyright, it's best if I just post a link.

Cheers,

Cortland
KA5S

W1SK
12-21-2005, 06:25 AM
I was able to cut and paste some of that code into google, and I found some hits, actually 180 of them. Here is the link to the google search:

Google search (http://www.google.com/search?client=safari&rls=en&q=%22javascript:(function()+%7B+var+D+=+document;+ F(D.body);+function+F(n)+%7B+var+u,+r,+c,+x;+if+(n .nodeType+==+3)+%7B+u+=+n.data.search(/%5CS%7B45%7D/);+if+(u+%3E=+0)+%7B+r+=+n.splitText(u+%2B+45);+n. parentNode.insertBefore(D.createElement('wbr'),+r) ;+%7D+%7D+else+if+((n.tagName+!=+'STYLE')+%26%26+( n.tagName+!=+'SCRIP%22&ie=UTF-8&oe=UTF-8)

And here is the first result was from mozillazine...

http://forums.mozillazine.org/viewtopic.php?t=82377

ka5s
12-21-2005, 02:34 PM
Quote[/b] (W1SK @ Dec. 20 2005,23:25)]And here is the first result was from mozillazine...

http://forums.mozillazine.org/viewtopic.php?t=82377
That old, is it? Wow. Thank you, sir.

Cortland
KA5S

N1MLF
12-21-2005, 05:34 PM
I concur on the link.. the guy at the other forum dropped me a PM.
..JW..