Tonight in IRC we were bemoaning the lack of an ignore feature on the forums. I figured it would be possible to knock up a Greasemonkey script to inspect the DOM and strip out comments from a known list of offenders.
I did a quick View Source of a thread and extracted a single comment from the HTML. It looks like this.
Things to note:
- Each comment is in either a
<div class="comment even ">or a
<div class="comment odd ">.
- Inside this div is a
<div class="author">, and inside that,
- The "author-name" div has exactly one element, which is the name of the poster inside a link to their user profile.
So I guess that in order to strip out someone's posts, you'd just need to search through all the
<div class="author-name"> elements in the DOM, and then remove the grandparent-div from any that you find. (Pedantry: this would muck up the different coloured backgrounds between alternate posts, but who actually cares.)
Now this is the point where I weasel out of doing it myself, using the excuse that I'm not familiar enough with web development and Greasemonkey scripting. Would any one of you lovely people be kind enough to do the forum a favour and knock a script up using these details?