Created
December 5, 2025 00:49
-
-
Save PatheticMustan/bebd16aeb3cb771670d8f2f08053873b to your computer and use it in GitHub Desktop.
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
| const blockName = "XXXXXXXXXX" | |
| const module = temp1.map(v => v.challenge).filter(v => v.block === blockName).map(v => v.id); | |
| function complete(challID) { | |
| fetch("https://api.freecodecamp.org/encoded/modern-challenge-completed", { | |
| "headers": { | |
| "content-type": "application/json", | |
| "csrf-token": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", | |
| }, | |
| "body": JSON.stringify({id: challID, challengeType:6}), | |
| "method": "POST", | |
| "mode": "cors", | |
| "credentials": "include" | |
| }).then(v => v.json()).then(v => console.log(v)) | |
| } | |
| setInterval(() => { | |
| const nextID = module.shift(); | |
| if (nextID) complete(nextID) | |
| }, 1500) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
temp1comes frompage_data.json, it'sresult.data.allChallengeNode.nodes.blockNameis the module name like "basic-css"