I've improved the comment code, y'all! 
Before you had to enter a seed word, but I've hacked that out. 
Basically, I thought that Dave is rendering that up in the buildRss code (an area I'm somewhat familiar with now, having recently hacked it up to make Haloscan look presentable). 
What now happens is that it's taking the headline, pulling the punctuation and spaces out of it, and adding the random number on the end (as in Tibor/Kosso's code). 
This way, you only have to click the button to render the comments up. 
How does this work? Well, if you look at the code, what it's doing is selecting the parent node, getting the text, then going back in to the first child, then going down to the bottom. This is the code that makes that work: 
op.go (left, 1) 
title = op.getLineText () 
op.go (right, 1) 
op.go (down, infinity) 
The next bit of the code is a butchered up version of the bundle in dotOpmlSuite.blog.buildRss. The variable names are the same, see. 
The final two lines have their ancestry in the Tibor and Kosso code. 
This function fits nicely in to my philosophy: it should be easier to blog than to masturbate, otherwise nobody is going to bother. (Almost all blogging software fails that test). It removes another layer of day-to-day complexity. 
The code is here. Here's what you can do with it. If you want it to appear in your right-click menu, go to "Tools > Edit right click menu". Make a new entry, then double click on it. Copy the code in. 
If you are using a personal menu, then simply choose "Edit menu" from your personal menu, make a new entry and copy the code in. 
It may cough up if you include hyperlinks or character-coded items in the title. If this is the case, do it the old fashioned way (or stop putting hyperlinks in your title!). 
You may wish to modify the last line in order to do different things with your code. wp.insert, op.insertAtEndOfList and op.insert do different things. All are documented over on Docserver. You can also modify how the insert happens, so if you want it to appear differently, you can do so. Don't worry about breaking anything, as the code is up and can be retrieved if you mess it up too badly. 
Comments | TrackBack 