summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TODO4
-rwxr-xr-xsimplyread.js3
2 files changed, 2 insertions, 5 deletions
diff --git a/TODO b/TODO
index 258e6f0..5406ca9 100644
--- a/TODO
+++ b/TODO
@@ -1,7 +1,3 @@
-core:
- consider counting <br />\s<br \> as a <p> as least some blogspot pages need it
- http://davidz25.blogspot.com/2011/06/writing-c-library-part-1.html
-
chromium:
generate appid for use in update xml
see GenerateId in extension.cc of chrome for how it works
diff --git a/simplyread.js b/simplyread.js
index dff7019..60a96c2 100755
--- a/simplyread.js
+++ b/simplyread.js
@@ -31,6 +31,7 @@ function simplyread()
}
doc.simplyread_original = doc.body.innerHTML;
+ doc.body.innerHTML = doc.body.innerHTML.replace(/<br[^>]*>\s*<br[^>]*>/g, "<p>");
var biggest_num = 0;
var biggest_tag;
@@ -61,7 +62,7 @@ function simplyread()
doc.body.innerHTML =
"<style type=\"text/css\"> p{margin:0ex auto;}" +
- " p+p{text-indent:2em;} body {background-color:#cccccc}" +
+ " p+p{text-indent:2em;} body {background:#cccccc none}" +
" img{display:block; max-width: 32em; padding:1em; margin:auto;}" +
" h1,h2,h3,h4 {font-weight:normal}</style>" +
"<div style=\"width:34em; padding:8em; padding-top:2em;" +