Skip to content

Instantly share code, notes, and snippets.

@tomhat
Created February 25, 2013 00:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomhat/5026384 to your computer and use it in GitHub Desktop.
Save tomhat/5026384 to your computer and use it in GitHub Desktop.
Stylish CSS (Chrome Extends,Firefox Add-on) Display ranking number at 3 Search Engine.
/* Google */
@-moz-document url-prefix("http://www.google.co.jp/"), url-prefix("https://www.google.co.jp/") {
body {
counter-reset: result !important;
}
h3.r:before {
content: counter(result) ". " !important;
counter-increment: result !important;
}
}
/* Yahoo */
@-moz-document url-prefix("http://search.yahoo.co.jp/"), url-prefix("https://search.yahoo.co.jp/") {
body {
counter-reset: result !important;
}
div.hd h3:before {
content: counter(result) ". " !important;
counter-increment: result !important;
}
}
/* Bing */
@-moz-document url-prefix("http://www.bing.com/"), url-prefix("https://www.bing.com/") {
body {
counter-reset: result !important;
}
div.sb_tlst h3:before {
content: counter(result) ". " !important;
counter-increment: result !important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment