Fixing Paul Graham’s Footnotes
I’m a big fan of Paul Graham’s essays, the latest of which is How to Start a Startup. There’s just one niggling problem with them: Paul makes extensive use of footnotes, but provides no way of jumping from the reference in the text to the footnote at the bottom of the page and back up again. Instead, you have to manually down to the bottom of the article and back up again every time you hit a footnote reference.
I really should be finishing up my packing for SxSW (my bus leaves in an hour and a half), but I couldn’t resist knocking up a quick greasemonkey script to fix the problem. Install and enjoy. If you haven’t installed greasemonkey you can get the same effect by manually activating this bookmarklet: Fix Paul Graham’s Footnotes.
Here's a related script:
http://sharedobject.org/greasemonkey/paul.graham.u ser.js
Jonas Galvez - 11th March 2005 04:32 - #
Thanks, Simon. Installed.
And I learned a bit about both RegEx and String.replace() from the code. Bonus!
Jeremy Dunck - 11th March 2005 15:12 - #
Pretty cool; but I get an error on the second line ("To install,"). The /* and */ don't seem to be commenting it out.
I changed the code to use // and it worked fine.
Joe W. - 11th March 2005 15:31 - #
Joe:
Were you installing with the context menu, or by navigating to the script, then using Tools > Install User Script...?
I'm asking because I installed the latter way, and didn't have any problem. I'm running FF 1.0.1 and GM 0.2.1. If this is a GM bug, I'd like to nail down the reproducing steps.
Thanks!
Jeremy Dunck - 11th March 2005 21:51 - #
Joe W. - 12th March 2005 22:15 - #
Richard - 13th March 2005 03:52 - #
Thanks for the intro into this bit of tech. The screen display and printing of footnotes and endnotes is a recurring problem for documenters.
A while ago I cooked up an IE-only approach using CSS and a tiny script that solved some of the conflicts between the needs of the screen and the print versions. The solution uses the
onbeforeprintevent so I never found a way to generalize it to Mozilla-spawn.Print Endnotes in IE
Brett Merkey - 13th March 2005 21:39 - #
Jeremy Hawkins - 16th March 2005 23:34 - #
I haven't forgotten you, Joe.
Also, anyone that likes this may also like this user script which sets the text to be 800 pixels wide, instead of Graham's narrow setting. Yes, of course, this could be done in a CSS user stylesheet.
Jeremy Dunck - 18th March 2005 05:24 - #
hangzhouren - 15th June 2005 19:16 - #
fafda - 15th June 2005 19:18 - #