Skip to content

Instantly share code, notes, and snippets.

@DogeLOL98
Created October 27, 2017 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save DogeLOL98/740b3e4556f80e1f05cd2ab769219faa to your computer and use it in GitHub Desktop.
Save DogeLOL98/740b3e4556f80e1f05cd2ab769219faa to your computer and use it in GitHub Desktop.
Hack Quizlet Gravity
/*
Coded by SpicyWingz
I am not responsible for your use of this script
Instrucions;
1. Right click
2. Click on the tab called "Console"
3. Paste this script
4. Wait for word to come in screen
5. When you see word hit the "space bar" and then immediatly hit "enter"
6. Enjoy
7. Dont blame me
*/
if(!localStorage.cheat){
localStorage.cheatAutoType = true;
localStorage.cheatActivated = true;
}
alert('You have just pasted the hack code, Enjoy hacking! -Dogzmodz.');
selector = "#GravityGameTarget > div > div > div > div.ModeLayout-content > div > div.GravityGameplayView-inner > div:nth-child(5) > div > div > div > .TermText > .TermText";
outputSelector = "#GravityGameTarget > div > div > div > div.ModeLayout-controls > div > div > div > div.ModeControls-main > div.ModeControls-actions > div:nth-child(2) > div > button > span";
inputSelector = "#GravityGameTarget > div > div > div > div.ModeLayout-content > div > div.GravityGameplayView-inner > div.GravityGameplayView-typingPrompt > span > div > div > div.GravityTypingPrompt-inputWrapper > textarea";
inputRepeatSelector = "#GravityGameTarget > div > div > div > div.ModeLayout-content > div > div.GravityGameplayView-inner > div:nth-child(3) > div > div > div > div.GravityCopyTermView-inputWrapper > textarea";
wordstotalint = 1;
previouswordtotal = 0;
setInterval(function() {
if(document.querySelector(selector) && localStorage.cheatActivated == "true"){
translatedWord = words[document.querySelector(selector).innerHTML.replace(RegExp(
'<!--[\\s\\S]*?(?:-->)?'
+ '<!---+>?'
+ '|<!(?![dD][oO][cC][tT][yY][pP][eE]|\\[CDATA\\[)[^>]*>?'
+ '|<[?][^>]*>?',
'g'), "")];
document.querySelector(outputSelector).innerHTML = "Coded by DogzModz";
if(localStorage.cheatAutoType == "true" && wordstotalint > previouswordtotal ){
document.querySelector(inputSelector).value = translatedWord;
}
}
}, 0);
words = {};
for(i = 0; i<Quizlet.gravityData.terms.length; i++){
if(Quizlet.gravityData.terms[i].definition == null){
} else {
words[Quizlet.gravityData.terms[i].definition] = Quizlet.gravityData.terms[i].word;
}
}
@M1nt-Tiny
Copy link

i don't have the option to inspect

@4dw1tz
Copy link

4dw1tz commented Dec 3, 2020

I think the problem might be with this line...

for(i = 0; i<Quizlet.gravityData.terms.length; i++){

which is line 32 in the most recent update of your code.

@Helpmepleaselol
Copy link

yea doesnt work for me either "VM2977:32 Uncaught TypeError: Cannot read property 'terms' of undefined
at :32:34"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment