Last active
April 19, 2021 03:44
-
-
Save samarthdave/ba583b46a878e4b5567d0be53e176c93 to your computer and use it in GitHub Desktop.
Get total quizlet card count on a user's profile
This file contains hidden or 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
// requires jQuery | |
var items = $(".SetPreview-cardBylineWrapper"); | |
function parseStr(strr) { | |
var num = strr.split(" ")[0]; | |
return parseInt(num); | |
} | |
var total = 0; | |
for (var i = 0; i < items.length; i++) { | |
var num = parseStr(items[i].innerText); | |
if (num != undefined) | |
total += num; | |
} | |
console.log(total/items.length); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Made for the purpose of counting the absurd number of cards that https://quizlet.com/bebrill has made on quizlet.com. For the record, it's almost 90k as of right now.