Created
October 16, 2022 14:37
-
-
Save ocixe/41272f32bdece6dbed51e2d37ee7ca6e to your computer and use it in GitHub Desktop.
ngecheat xixixi
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
var obj = Object.entries(document.getElementsByTagName('iframe')[0].contentWindow.H5PIntegration.contents) | |
var obj = obj[0][1]['jsonContent'] | |
parsejson = JSON.parse(obj) | |
for (var k in parsejson['questions']) { | |
console.log("=====================================================================") | |
console.log("SOAL : " + parsejson['questions'][k]['params']['question']) | |
for (var a in parsejson['questions'][k]['params']['answers']) { | |
if (parsejson['questions'][k]['params']['answers'][a]['correct']) { | |
console.log("JAWABAN : " + parsejson['questions'][k]['params']['answers'][a]['text']) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment