- Go to github profile page.
- Click on today's or some days contribution
- Open Inspector Window
- Pase the following code
let rollupWrapper = document.querySelectorAll('.profile-rollup-wrapper');
var minimizeNumber = (num) => { | |
if(!Number.isFinite(num)) return ""; | |
const minimizeMap = ["K", "M", "G", "T", "P", "E"]; | |
if(num < 1000) return num.toString(); | |
const exp = Math.floor(Math.log(num)/ Math.log(1000)); | |
const minimized = Number((num / Math.pow(1000, exp)).toFixed(2)); | |
return minimized+minimizeMap[exp-1]; | |
} |