// ==UserScript==
// @name          Filter annoying people
// @namespace     http://ax.to
// @description   Filters annoying people.
// @include       http://www.metafilter.com/mefi/*
// ==/UserScript==
window.addEventListener(
  'load',
  function() {
    // annoying_people contains a list of annoying people, separated by the |
    // character:  example
    // var annoying_people = "annoying_person|dull_person|silly_person";
    var annoying_people = "";
    var annoying_re = /">(" + annoying_people + )<\/a> at /;

    // Roughly split the document into individual comments.
    var comments = document.body.innerHTML.split(/(?=<a name=")/);
    var results = "";
    for (i = 0; i < comments.length; ++i) {
      var comment = comments[i];
      if (!annoying_re.test(comment)) {
        results = results + comment;
      }
    }
    document.body.innerHTML = results;
  },
  true);
