From 1caed97afc0cb23206c40195f5e05dc6fe0a0250 Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 15 Nov 2010 21:35:15 +0000 Subject: Work around bookmarklet firefox bug --- BUGS | 4 ---- INSTALL | 2 +- 2 files changed, 1 insertion(+), 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 -- cgit v1.2.3