Skip to content

Instantly share code, notes, and snippets.

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 reficedev/5c6924fd0e13a838eea92e3554a5a44d to your computer and use it in GitHub Desktop.
Save reficedev/5c6924fd0e13a838eea92e3554a5a44d to your computer and use it in GitHub Desktop.
This bookmarklet adds CSS style wich shows the number of Google result
javascript:(function(){%20var%20style%20=%20document.createElement(%27style%27),%20styleContent%20=%20document.createTextNode(%27body{%20counter-reset:%20resultat%20!important;%20}%20div.g::before{%20counter-increment:%20resultat%20!important;%20content:%20counter(resultat)%20\%22.\%22%20!important;%20}%20%27);%20style.appendChild(styleContent%20);%20var%20caput%20=%20document.getElementsByTagName(%27head%27);%20caput[0].appendChild(style);%20})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment