GreasyFork aggregate stats

View the total GreasyFork stats of a user

  1. // ==UserScript==
  2. // @name GreasyFork aggregate stats
  3. // @namespace https://greasyfork.org/en/users/198860-zyenith
  4. // @version 0.3
  5. // @description View the total GreasyFork stats of a user
  6. // @author You
  7. // @match https://greasyfork.org/en/users*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. let total = 0;
  12. let daily = 0;
  13. Array.from(document.getElementById("user-script-list-section").children[1].children).forEach(e => (total += +e.getAttribute("data-script-total-installs"), (daily += +e.getAttribute("data-script-daily-installs"))))
  14.  
  15. console.log(`
  16. Total installs: ${total}
  17. Daily installs: ${daily}
  18. `);