@namespace url(http://www.w3.org/1999/xhtml);

/* Bing */
@-moz-document domain("search.live.com"), 
domain("search.msn.co.jp"), 
domain("www.bing.com") {
  body {
    counter-reset: result !important;
  }
  div#results h3:before {
    content: counter(result) ". " !important;
    counter-increment: result !important;
    color: #000 !important;
  }
}

/* Yahoo! */
@-moz-document domain("search.yahoo.co.jp") {
  body {
    counter-reset: result !important;
  }

  div.hd h3:before {
    content: counter(result) ". " !important;
    counter-increment: result !important;
    color: #000 !important;
    font-size: 100% !important;
  }
}
@-moz-document domain("search.yahoo.com") {
  body {
    counter-reset: result !important;
  }

  div.res h3:before {
    content: counter(result) ". " !important;
    counter-increment: result !important;
    font-size: 110% !important;
  }
}

/* Google */
/* Web Search */
@-moz-document domain("google.com"), 
domain("google.co.jp") {
  body {
    counter-reset: result !important;
  }
  h3.r:before {
    content: counter(result) ". " !important;
    counter-increment: result !important;
  }
}
/* Books */
@-moz-document domain("books.google.com"), 
domain("books.google.co.jp") {
  body {
    counter-reset: result !important;
  }
  h2.resbdy:before {
    content: counter(result) ". " !important;
    counter-increment: result !important;
  }
}
/* Scholar */
@-moz-document domain("scholar.google.com"), 
domain("scholar.google.co.jp") {
  body {
    counter-reset: result !important;
  }
  div.gs_rt h3:before {
    content: counter(result) ". " !important;
    counter-increment: result !important;
  }
}