Want more features on Pastebin? Sign Up, it's FREE!
Guest

StudyIsland Hack

By: a guest on Feb 24th, 2010  |  syntax: JavaScript  |  size: 2.40 KB  |  views: 4,033  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. javascript:
  2. var str = document.body.innerHTML;
  3. str = str.substring(str.indexOf("isMac"));
  4. str = str.substring(str.indexOf("var "));
  5. var var1 = str.substring(str.indexOf("=") + 1, str.indexOf(";"));
  6. str = str.substring(str.indexOf(";")+1);
  7. var var2 = str.substring(str.indexOf("=") + 1, str.indexOf(";"));
  8. alert("Question 1: " + (parseInt(document.q1.corAns.value) / ( parseInt(var1) / parseInt(var2) )) % 6);
  9. alert("Question 2: " + (parseInt(document.q2.corAns.value) / ( parseInt(var1) / parseInt(var2) )) % 6);
  10. alert("Question 3: " + (parseInt(document.q3.corAns.value) / ( parseInt(var1) / parseInt(var2) )) % 6);
  11. alert("Question 4: " + (parseInt(document.q4.corAns.value) / ( parseInt(var1) / parseInt(var2) )) % 6);
  12. alert("Question 5: " + (parseInt(document.q5.corAns.value) / ( parseInt(var1) / parseInt(var2) )) % 6);
  13. alert("Question 6: " + (parseInt(document.q6.corAns.value) / ( parseInt(var1) / parseInt(var2) )) % 6);
  14. alert("Question 7: " + (parseInt(document.q7.corAns.value) / ( parseInt(var1) / parseInt(var2) )) % 6);
  15. alert("Question 8: " + (parseInt(document.q8.corAns.value) / ( parseInt(var1) / parseInt(var2) )) % 6);
  16. alert("Question 9: " + (parseInt(document.q9.corAns.value) / ( parseInt(var1) / parseInt(var2) )) % 6);
  17. alert("Question 10: " + (parseInt(document.q10.corAns.value) / ( parseInt(var1) / parseInt(var2) )) % 6);
  18. alert("Question 11: " + (parseInt(document.q11.corAns.value) / ( parseInt(var1) / parseInt(var2) )) % 6);
  19. alert("Question 12: " + (parseInt(document.q12.corAns.value) / ( parseInt(var1) / parseInt(var2) )) % 6);
  20. alert("Question 13: " + (parseInt(document.q13.corAns.value) / ( parseInt(var1) / parseInt(var2) )) % 6);
  21. alert("Question 14: " + (parseInt(document.q14.corAns.value) / ( parseInt(var1) / parseInt(var2) )) % 6);
  22. alert("Question 15: " + (parseInt(document.q15.corAns.value) / ( parseInt(var1) / parseInt(var2) )) % 6);
  23. alert("Question 16: " + (parseInt(document.q16.corAns.value) / ( parseInt(var1) / parseInt(var2) )) % 6);
  24. alert("Question 17: " + (parseInt(document.q17.corAns.value) / ( parseInt(var1) / parseInt(var2) )) % 6);
  25. alert("Question 18: " + (parseInt(document.q18.corAns.value) / ( parseInt(var1) / parseInt(var2) )) % 6);
  26. alert("Question 19: " + (parseInt(document.q19.corAns.value) / ( parseInt(var1) / parseInt(var2) )) % 6);
  27. alert("Question 20: " + (parseInt(document.q20.corAns.value) / ( parseInt(var1) / parseInt(var2) )) % 6);
clone this paste RAW Paste Data