summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2010-11-15 21:35:15 +0000
committerNick White <git@njw.me.uk>2010-11-15 21:35:15 +0000
commit1caed97afc0cb23206c40195f5e05dc6fe0a0250 (patch)
tree17516d55cbfe140204b1f019383013439956ffda
parent9721980dcd0f379900588691f4ee29ec7887e5f9 (diff)
Work around bookmarklet firefox bug
-rw-r--r--BUGS4
-rw-r--r--INSTALL2
2 files changed, 1 insertions, 5 deletions
diff --git a/BUGS b/BUGS
index 85023d3..5d39c68 100644
--- a/BUGS
+++ b/BUGS
@@ -5,7 +5,3 @@ Seems to be fine with webkit.
The issue is that for some reason on first run not all stylesheets
are disabled in firefox. Subsequent runs are fine. Presumably it's a
bug in firefox; should report it to them.
-
-When run as a bookmarklet in firefox, the first run it hasn't registered
-simplyread() by the time it is called. Subsequent runs work fine. This
-occurs whether simplyread is in a separate javascript: clause or not.
diff --git a/INSTALL b/INSTALL
index 59fe2cb..834d009 100644
--- a/INSTALL
+++ b/INSTALL
@@ -49,7 +49,7 @@ simplyread.js.
To use this as a 'bookmarklet', create a new bookmark with an address of:
-javascript:(function(){document.body.appendChild(document.createElement('script')).src='file:///path/to/simplyread.js';})();javascript:(function(){simplyread();})();
+javascript:(function(){document.body.appendChild(document.createElement('script')).src='file:///path/to/simplyread.js';alert("SimplyRead");simplyread();})();
Note that due to browsers being afraid of mixing local and remote files
this may not work for http:// addresses. If this is the case, you can