Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install
Force Wrap
Wrap text automatically.
Based on Jesse Rudderman's Force Wrap bookmarklet.
Screenshots:
Before:
After:
Changelog:
- 2006-05-15: replaced Jim's codes with codes from MR Tech Link Wrapper to fix regression in Firefox 2.0/3.0 dev builds.
- 2006-01-09: replaced
innerHTMLwithinsertBefore. Thanks to Jim Roberts
You might also want to try MR Tech Link Wrapper extension by Mel Reyes.
|
|
Doesn't seem to work on SourceForce. |
|
|
This script seems to be breaking Gmail for me; disabling allows Gmail to load. Otherwise, it won't bring me to my inbox. |
|
|
@lootpacker: you're just two and a half years late. |
|
|
seems you beat me to it, very useful script btw. |
|
|
@dhongi: Yes, it can. Just change line 17
} else if(n.tagName != 'STYLE' && n.tagName != 'SCRIPT' && n.tagName != 'PRE') {
to } else if(n.tagName != 'STYLE' && n.tagName != 'SCRIPT') {
|
|
|
Wow, jusat what I was looking for, thanks. Can this script work for non-HTML pages, such as when we do "View CSS" or "View Source" using the Web Developer extension for Firefox? I use these features a lot but right now, I first copy the entire page to notepad and then read it. If this script could do it automatically in the browser itself, it'll be awesome. |
|
|
@BlueDrache, it's because the page you mentioned is using the PRE tags. You can include PRE tags by removing && n.tagName != 'PRE' in the script. |
|
|
Does not work as expected. See: |
|
|
Works perfectly. Thanks |
|
|
FYI, http://userscripts.org/scripts/show/2641 is a somewhat fancier version of this general approach. |
|
|
Updated |
|
|
You're welcome. |
|
|
Replace
document.body.innerHTML = document.body.innerHTML; With
document.body.parentNode.insertBefore(document.body, document.body); innerHTML breaks any eventListeners. |
You could comment on this script if you were logged in.
