diff options
author | Nick White <git@njw.me.uk> | 2010-11-15 21:35:15 +0000 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2010-11-15 21:35:15 +0000 |
commit | 1caed97afc0cb23206c40195f5e05dc6fe0a0250 (patch) | |
tree | 17516d55cbfe140204b1f019383013439956ffda | |
parent | 9721980dcd0f379900588691f4ee29ec7887e5f9 (diff) |
Work around bookmarklet firefox bug
-rw-r--r-- | BUGS | 4 | ||||
-rw-r--r-- | INSTALL | 2 |
2 files changed, 1 insertions, 5 deletions
@@ -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. @@ -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 |