Advertisement
Guest User

Untitled

a guest
Nov 11th, 2019
2,176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. /*
  2.  
  3. Gimkit hack by Drew Snow
  4.  
  5. Fri Aug 23 2019 14:57:53 GMT-0700 (Pacific Daylight Time)
  6.  
  7. */
  8.  
  9. function Exploit () {
  10.  
  11. alert('Notice: This script is in beta and currently only works on demos.')
  12.  
  13. this.getSpans = () => document.getElementsByTagName('span');
  14.  
  15. this.questions = window..gameData.questions;
  16.  
  17. this.clickText = function (text) {
  18. let spans = this.getSpans();
  19.  
  20. for (let i = 0; i < spans.length; i++)
  21. if (text == spans[i].textContent.trim()) return spans[i].click();
  22. };
  23.  
  24. this.correctAnswer = (questions) => questions.answers.filter(e => e.correct)[0];
  25.  
  26. this.answerQuestion = function () {
  27. let spans = this.getSpans();
  28.  
  29. for (let i = 0; i < spans.length; i++) {
  30. let text = spans[i].textContent.trim();
  31.  
  32. for (let j = 0; j < this.questions.length; j++) {
  33. let correct = this.correctAnswer(this.questions[j]);
  34.  
  35. if (this.questions[j].text.trim() == text) return this.clickText(correct.text);
  36. }
  37. }
  38. };
  39.  
  40. }
  41.  
  42. let Session = new Exploit();
  43.  
  44. setInterval(() => {
  45.  
  46. // Find the answer and click it every 100ms
  47. Session.answerQuestion();
  48.  
  49. }, 100);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement