Created
November 3, 2017 16:22
-
-
Save ksokhan/7bc2aa5d5ee9ec24fb8788d63d232e9a to your computer and use it in GitHub Desktop.
Get a dribbble score for views-to-likes ratio on your shots
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// paste this into console on any dribbble page | |
document.querySelectorAll('.dribbble-shot').forEach((item) => { item.querySelector('.tools.group').innerHTML += " " + Math.round(Number(item.querySelector('.fav a:last-child').innerText) / Number(item.querySelector('.views span').innerText.replace(',','')) * 1000) }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment