New Pie Filter For Yglesias's New Blog

Because Matt moved, thus breaking the Pie Filter I wrote for his site, I've been forced to write a new one.

So, download and install, if you wish (you’ll need FireFox and Greasemonkey, first). You’ll have to do some minor editing on the script itself - to add your list of targets, and optionally, to change the comment-abusing style. Again, all the stuff you need to monkey (get it?) with is clearly commented.

If you’re using FF v2.0 (or 3.0), and you’ve installed GreaseMonkey, and installed this script, just go to the Tools menu, choose GreaseMonkey / Manage User Scripts, select the script and click Edit. The things you need to edit are right there at the top. It’s basically just a matter of changing the default ‘baddies’ names to the names of the people you want. You can have as many names as you want. If you need more help, feel free to ask.

18 thoughts on “New Pie Filter For Yglesias's New Blog

  1. Jer

    This is indeed awesome. It however needs tweaking to run correctly under GreaseKit/Safari. On Safari, “OLCommentsSS” needs to be defined before replaceText() is called about 35 lines above it. I just moved the “OLCommentsSS” and “OLComments” definitions to the same location as the “redactedTextArray” definition, and it started working.

  2. Jer

    Thanks for that. One last thing: “var OLComments = null” and the if statement following need to be moved up as well. Otherwise, it won’t be defined by the time replaceText() is called.

  3. Jer

    Thanks for that. One last thing: “var OLComments = null” and the if statement following need to be moved up as well. Otherwise, it won’t be defined by the time replaceText() is called.

  4. cleek

    now that i think about it, all of the OLComment* stuff should be inside replaceText (at the top of the fn). that’s the only place they’re used.

  5. cmholm

    Damn cleek, that’s a fine hack. I realize it’s making bliss from ignorance, but since I was scrolling over the bad guy posts any way…

    I want to keep this logic in mind as a potential WP module. It’d make moderating the trolls a lot more fun.

  6. abb1

    if you replace
    if (nameText == baddies[baddiesIdx].toLowerCase())
    with
    if (nameText.substr(0,baddies[baddiesIdx].length) == baddies[baddiesIdx].toLowerCase())
    you’ll block all the names beginning with the strings you specified. For example, if you include “gop “, you’ll block all the GOP XXXXX commenters. Or, for that matter, “abb” will get rid of abb1, abb2, etc.

    Also, you may want to add another style option that executes the Ajax statement commentcontent.innerHTML = ” “;
    This will simply delete the name, date/time, and the comment; you’ll see the comment number and nothing else. The ultimate minimalist solution.

  7. cleek

    that’s truly awesome. :)

    i’ve almost given up with MY – between the fact that at least half of the regular commenters there are in my pie filter, and the fact that commenting doesn’t work for me anymore, and MY’s creepy creeping glibertarianism…

  8. cleek

    the spam filter (i think) has become insanely aggressive. some days it’s impossible to get a comment through. multiple attempts sometimes works, though if i can’t get a comment through in two tries, i give up.

    of course there’s a spammer there who gets through on nearly every thread with the exact same 2 comments, day after day: see 1 & 2. and that makes the whole thing a bit farcical.

Comments are closed.