Akismet Excerpts

Engtech and I thought this was an excellent suggestion for dealing with the torrents of spam in the akismet panel, but matt disagrees. Engtech wrote a Greasemonkey Script that implements it browser side. I, being afraid of browser bloat, and wanting this for archGFX, not for this wordpress.com blog, hacked it in /wp-admin/wp-admin.css. It's a hack so simple, i'm embarassed i didn't think of it sooner:

#spam-list li {
max-height: 6.5em;
overflow: hidden;
margin-bottom: .5em;
}

#spam-list li * {
display: inline;
}

added to the end of the file. (i actually appended it to tiger.css, which works the same.) this is what it looks like:

auntie spam

if that's not enough context for you, or if it's more than you need, you can adjust max-height to your liking. if you're using IE6 or below to review your spam, you'll want to specify height instead of max-height.

3 Comments

  1. Posted 17 Jan 2007 at 1:10 |
    Permalink Quote

    Wow, that is simple. :)

    I still haven’t gotten my head around CSS enough that I think “oh, I’ll just do that in CSS”.

  2. Posted 17 Jan 2007 at 1:16 |
    Permalink Quote

    heh. i think it has less to do with getting my head around it, than getting my head stuck in it.

    PHP and javascript scare me.

    your solution is far better, and closer to what i would want as the default behaviour of akismet.

  3. Posted 17 Jan 2007 at 2:12 |
    Permalink Quote

    I think the optimal solution is the CSS hack above with an additional link of javascript to toggle the overflow setting.

Post a Comment

Your email is never published nor shared. Comments that do not follow the guidelines may be removed. By submitting a comment here you grant this site a perpetual license to reproduce your words and name/web site in attribution. Required fields are marked *
↓ Preview