Skip to content

Instantly share code, notes, and snippets.

@user19
Created October 14, 2014 14:14
Show Gist options
  • Save user19/e107acd9d69f6f2e1da8 to your computer and use it in GitHub Desktop.
Save user19/e107acd9d69f6f2e1da8 to your computer and use it in GitHub Desktop.
javascript:(function(){var viewElement=document.getElementById('watch7-views-info').getElementsByClassName('watch-view-count')[0];var i=another=Number(viewElement.innerHTML.replace(",",""));var count=setInterval(function(){counter(i);i+=9;if(i>=another+10000){clearInterval(count);}},10);function counter(num){viewElement.innerHTML=String(num).replace(/(\d)(?=(\d\d\d)+(?!\d))/g,'$1,');}})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment