Pre-Wrap

Some mailman/pipermail list archives display very long  -formatted lines.

For example, see http://copysouth.org/pipermail/copysouth_copysouth.org/2009-September/000003.html

Pre-Wrap is a simple Greasemonkey script which turns on line-wrapping for any  sections on the page.

You can install Pre-Wrap from this page: http://userscripts.org/scripts/show/58839

Make sure you have Greasemonkey installed first.

Comments or suggestions for improvement are welcome!

-- Peter Kaminski 10:03, 29 September 2009 (PDT)

// Pre-Wrap v1.0 // By Peter Kaminski  // License: public domain // Version history: // 	1.0: very simple initial version // // This Greasemonkey script is handy for pages with pre-formatted text // with very long lines, e.g., some mailman/pipermail list archive pages. // // ==UserScript== // @name          Pre-Wrap // @namespace     http://peterkaminski.com/ // @description   (v1.0) Wraps -formatted text to the width of its container. // @include       * // ==/UserScript==

var e = document.getElementsByTagName('pre'); for (i=0; i<e.length; i++) { e[i].setAttribute("style","width:95%;white-space:pre-wrap;"); }