4 ms·
Paul Graham Topics
- RyanMcGreal 17y agoLooks like it searches the text for text inside <b>...</b> tags and writes out the list of matches in an absolutely positioned div. A Topics script written for a sanely coded website would presumably look for text inside heading tags.
- DanielRibeiro 17y agoYes, that is pretty much how it works (it is a very simple hack). Therefore it is very specific to pg's essays, as it doesn't uses headings. But worked so well for me that I decided to share (and do a sinatra app that injects it, as some of my friends would not install greasemonkey just for this).
- RyanMcGreal 17y agoSimple hacks are often the best. Thanks for sharing!
- DanielRibeiro 17y agoYou can see it working online (without any install needed) on http://paulgrahamsidebar.heroku.com/ http://paulgrahamsidebar.heroku.com/. The source of the web app can be found on github: http://github.com/danielribeiro/PaulGrahamSideBar http://github.com/danielribeiro/PaulGrahamSideBar
- DanielRibeiro 17y agoAs the hosting site, userscripts.org, seems to be having difficulties (http://blog.arpitnext.com/2010/04/userscript-org-is-down.html http://blog.arpitnext.com/2010/04/userscript-org-is-down.htm...) with alleged unintentional DDOS, I've uploaded the script on github as well: http://github.com/danielribeiro/PaulGrahamSideBar/raw/master/resources/paul_graham_topics.js http://github.com/danielribeiro/PaulGrahamSideBar/raw/master...