summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2011-06-15 22:12:01 +0100
committerNick White <git@njw.me.uk>2011-06-15 22:12:01 +0100
commit4ffde89c32268cf4ccc5be98a19fb81ce526f276 (patch)
treee46a57159d8b5d92c0f7bed91ad332926e2be954
parent69cc40641ee0a55acf8221741640c6c493ba8299 (diff)
Improve layout, change brief description
Layout inspired by http://www.bramstein.com/projects/typeset/flatland/
-rwxr-xr-xchromium/viable.js6
-rw-r--r--gecko/install.ttl2
-rwxr-xr-xsimplyread.js13
-rw-r--r--web/doap.ttl2
-rw-r--r--webheader.html2
5 files changed, 12 insertions, 13 deletions
diff --git a/chromium/viable.js b/chromium/viable.js
index 09acb36..c957608 100755
--- a/chromium/viable.js
+++ b/chromium/viable.js
@@ -1,8 +1,4 @@
-/*
- * SimplyRead - makes webpages more readable
- *
- * See COPYING file for copyright, license and warranty details.
- */
+/* See COPYING file for copyright, license and warranty details. */
function viable() {
var doc;
diff --git a/gecko/install.ttl b/gecko/install.ttl
index cd10e86..655f3d6 100644
--- a/gecko/install.ttl
+++ b/gecko/install.ttl
@@ -11,7 +11,7 @@
em:maxVersion "4.0.*"
] ;
em:name "SimplyRead";
- em:description "Makes webpages more readable. Press Ctrl-Alt-r or click the 'sr' icon in the status bar to toggle SimplyRead.";
+ em:description "Stop browsing, start reading. Press Ctrl-Alt-r or click the 'sr' icon in the status bar to toggle SimplyRead.";
em:creator "Nick White";
em:homepageUrl "http://njw.me.uk/software/simplyread/";
<http://usefulinc.com/ns/doap#license> <http://www.gnu.org/licenses/agpl.html>.
diff --git a/simplyread.js b/simplyread.js
index cc7afee..d4df61e 100755
--- a/simplyread.js
+++ b/simplyread.js
@@ -1,5 +1,5 @@
/*
- * SimplyRead - makes webpages more readable
+ * SimplyRead - Stop browsing, start reading
*
* See COPYING file for copyright, license and warranty details.
*/
@@ -62,12 +62,15 @@ function simplyread()
doc.styleSheets[i].disabled = true;
doc.body.innerHTML =
- "<style type=\"text/css\">" +
- " p{margin:0ex auto;} p+p{text-indent:2em;}</style>"
- "<div style=\"width:38em; margin:auto; line-height: 1.4;" +
+ "<style type=\"text/css\"> p{margin:0ex auto;}" +
+ " p+p{text-indent:2em;} body {background-color:#cccccc}" +
+ " h1,h2,h3,h4 {font-weight:normal}</style>" +
+ "<div style=\"width:34em; padding:8em; padding-top:2em;" +
+ " background-color:white; margin:auto; line-height:1.4;" +
" text-align:justify; font-family:serif;" +
" text-rendering:optimizeLegibility; hyphens:auto;\">" +
- "<h1 style=\"text-align: center\">"+doc.title+"</h1>" +
+ "<h1 style=\"text-align:center;text-transform:uppercase\">"+doc.title+"</h1>" +
+ "<hr style=\"width:6em; margin-top:2ex auto;\"/>" +
fresh.innerHTML + "</div>";
return 0;
diff --git a/web/doap.ttl b/web/doap.ttl
index a4cc922..55fc2e4 100644
--- a/web/doap.ttl
+++ b/web/doap.ttl
@@ -5,7 +5,7 @@
:p a doap:Project;
doap:name "SimplyRead";
- doap:shortdesc "Makes webpages more readable";
+ doap:shortdesc "Stop browsing, start reading";
doap:homepage <http://njw.me.uk/software/simplyread/>;
doap:repository :repo;
doap:programming-language "ECMAScript";
diff --git a/webheader.html b/webheader.html
index 401a294..7d73833 100644
--- a/webheader.html
+++ b/webheader.html
@@ -11,5 +11,5 @@ h3 a:hover { text-decoration: underline }
img { display: block; margin: auto; }
</style>
<link rel="alternate" type="text/turtle" title="rdf" href="doap.ttl" />
-<title>SimplyRead - Makes webpages more readable</title>
+<title>SimplyRead - Stop browsing, start reading</title>
</head><body>