Skip to content

Instantly share code, notes, and snippets.

@ITHackCentral
Created May 27, 2017 20:12
Show Gist options
  • Select an option

  • Save ITHackCentral/683d9fb95afdf819bd3d805b53b6f47f to your computer and use it in GitHub Desktop.

Select an option

Save ITHackCentral/683d9fb95afdf819bd3d805b53b6f47f to your computer and use it in GitHub Desktop.
var time = 60; var clock = 300; function TimeHack(){
setInterval(function Applytime() {
document.getElementsByClassName('timerLabel whiteTextWithShadow font-60 ng-binding')["0"].innerText = time; document.getElementsByClassName('timerLabel whiteTextWithShadow font-60 ng-binding')["0"].innerHtml = time;
document.getElementsByClassName('clockHand').rotate = clock;
}, 1);}; function TimeHackm() {
setInterval(function Addtime() {
time = time + 1;
clock = clock + 6;
}, 1000);}
var score = 1;
function ScoreHack(){
setInterval(function ApplyScore() {
score = score + 1
document.getElementById("scoreBar0").innerText = score ;
}, 1);};
alert("YOU ARE USING I_T_HackCentral's ML CHEAT! ENJOY!")
var btn = document.createElement("BUTTON");
document.body.appendChild(btn);
btn.setAttribute("onclick","ShowAwnser()");
btn.setAttribute("id","dashow")
var t = document.createTextNode(".A. Bot");
btn.appendChild(t);
var btnt = document.createElement("BUTTON");
document.body.appendChild(btnt);
btnt.setAttribute("onclick","TimeHack(); TimeHackm()")
btnt.setAttribute("id","dasho")
var tt = document.createTextNode("TimeCheat");
btnt.appendChild(tt);
var btnd = document.createElement("BUTTON");
document.body.appendChild(btnd);
btnd.setAttribute("onclick","ScoreHack()");
btnd.setAttribute("id","dashowd")
var td = document.createTextNode("Point Hack");
btnd.appendChild(td);
function ShowAwnser(){
var nums = document.getElementsByClassName('questions-text-alignment whiteTextWithShadow question-size-v4')["0"].innerText;
var add = nums.split('+' && '=');
var equasion = add[0];
function addbits(s){
var total= 0, s= s.match(/[+\-]*(\.\d+|\d+(\.\d+)?)/g) || [];
while(s.length){
total+= parseFloat(s.shift());
}
return total;
}
var awnser = addbits(equasion)
var nums = document.getElementsByClassName('questions-text-alignment whiteTextWithShadow question-size-v4')["0"].innerText;
var add = nums.split('+' && '=');
var equasion = add[0];
function addbits(s){
var total= 0, s= s.match(/[+\-]*(\.\d+|\d+(\.\d+)?)/g) || [];
while(s.length){
total+= parseFloat(s.shift());
}
return total;
}
var awnser = addbits(equasion)
document.getElementById('dashow').innerText = awnser;
document.getElementsByClassName("questions-input-adjustment questions-input-width-v3")["0"].value = awnser;
}
window.addEventListener("keydown", checkKeyPressed, false);
function checkKeyPressed(e) {
if (e.keyCode == "65") {
ShowAwnser()
}
}
@Hxolotl15
Copy link
Copy Markdown

NP

@ZaylinTheKingHcker123
Copy link
Copy Markdown

oh alright thank you

@helpmehack12
Copy link
Copy Markdown

im so lost amd dont know what to do

@helpmehack12
Copy link
Copy Markdown

when i done the first bit where you copy the code then go on live mathletics and spam a and enter but its not working

@helpmehack12
Copy link
Copy Markdown

i cant find the bookmarks

@Hxolotl15
Copy link
Copy Markdown

Hxolotl15 commented May 24, 2024 via email

@tiana548
Copy link
Copy Markdown

hi

@Licktaytertotsototsototso
Copy link
Copy Markdown

@note35y88
Copy link
Copy Markdown

note35y88 commented Sep 14, 2024 via email

@CoolPokes
Copy link
Copy Markdown

CoolPokes commented Sep 15, 2024 via email

@Licktaytertotsototsototso
Copy link
Copy Markdown

@tiana548
Copy link
Copy Markdown

fake

um it not hahahaha

@Hxolotl15
Copy link
Copy Markdown

im searching for a way to delete the prevent cheats file i will tell you when i can. ive been working on this for months.

@CoolPokes
Copy link
Copy Markdown

CoolPokes commented Nov 27, 2024 via email

@CoolPokes
Copy link
Copy Markdown

CoolPokes commented Nov 27, 2024 via email

@tiana548
Copy link
Copy Markdown

tiana548 commented Nov 28, 2024 via email

@CoolPokes
Copy link
Copy Markdown

CoolPokes commented Nov 29, 2024 via email

@Lujis-Manchin
Copy link
Copy Markdown

Did you find a way to get rid of the mathletics file?

@CoolPokes
Copy link
Copy Markdown

CoolPokes commented Feb 6, 2025 via email

@cometpro
Copy link
Copy Markdown

cometpro commented Mar 5, 2026

it still works, tf?

@CoolPokes
Copy link
Copy Markdown

CoolPokes commented Mar 21, 2026 via email

@platuserQuan
Copy link
Copy Markdown

var time = 60;
var clock = 300;

function TimeHack() {
setInterval(function Applytime() {
const timer = document.querySelector('.timerLabel.whiteTextWithShadow.font-60.ng-binding');
if (timer) timer.innerText = time;
const hand = document.querySelector('.clockHand');
if (hand) hand.style.transform = rotate(${clock}deg);
}, 1);
}

function TimeHackm() {
setInterval(function Addtime() {
time++;
clock += 6;
}, 1000);
}

var score = 1;
function ScoreHack() {
setInterval(function ApplyScore() {
score++;
const scoreBar = document.getElementById('scoreBar0');
if (scoreBar) scoreBar.innerText = score;
}, 1);
}

alert("YOU ARE USING I_T_HackCentral's ML CHEAT! ENJOY!");

// Create buttons (unchanged)
var btn = document.createElement("BUTTON");
document.body.appendChild(btn);
btn.setAttribute("onclick", "ShowAwnser()");
btn.setAttribute("id", "dashow");
var t = document.createTextNode(".A. Bot");
btn.appendChild(t);

var btnt = document.createElement("BUTTON");
document.body.appendChild(btnt);
btnt.setAttribute("onclick", "TimeHack(); TimeHackm()");
btnt.setAttribute("id", "dasho");
var tt = document.createTextNode("TimeCheat");
btnt.appendChild(tt);

var btnd = document.createElement("BUTTON");
document.body.appendChild(btnd);
btnd.setAttribute("onclick", "ScoreHack()");
btnd.setAttribute("id", "dashowd");
var td = document.createTextNode("Point Hack");
btnd.appendChild(td);

// ----- FIXED ShowAwnser (works with subtraction) -----
function ShowAwnser() {
// 1. Locate the question element
const questionEl = document.querySelector('.questions-text-alignment.whiteTextWithShadow.question-size-v4');
if (!questionEl) {
console.error('Question element not found');
return;
}

// 2. Extract the expression before '='
let fullText = questionEl.innerText.trim();
let expression = fullText.split('=')[0].trim();

// 3. Normalize different dash characters (en dash, em dash) to standard minus
expression = expression.replace(/[−–—]/g, '-');

// 4. Evaluate the arithmetic expression safely
let answer;
try {
// Use eval for simplicity (works for +, -, *, /, etc.)
// Since the expression comes from your own website, it's generally safe.
answer = eval(expression);
} catch (e) {
console.error('Evaluation error:', e);
return;
}

if (isNaN(answer)) {
console.error('Could not evaluate expression:', expression);
return;
}

// 5. Display answer on the button (optional)
const btn = document.getElementById('dashow');
if (btn) btn.innerText = answer;

// 6. Fill the answer in the input field
const inputEl = document.querySelector('.questions-input-adjustment.questions-input-width-v3');
if (inputEl) {
inputEl.value = answer;
// Trigger events to notify any JavaScript framework (Angular, React, etc.)
inputEl.dispatchEvent(new Event('input', { bubbles: true }));
inputEl.dispatchEvent(new Event('change', { bubbles: true }));

// If the game uses AngularJS, try to manually update the model
if (window.angular && inputEl.attributes['ng-model']) {
  const scope = angular.element(inputEl).scope();
  if (scope) {
    const modelName = inputEl.attributes['ng-model'].value;
    scope[modelName] = answer;
    scope.$apply();
  }
}

} else {
console.error('Input field not found');
}
}

// Hotkey: press 'A' to trigger the answer bot
window.addEventListener("keydown", checkKeyPressed, false);
function checkKeyPressed(e) {
if (e.keyCode == "65") ShowAwnser(); // 'A' key
}

@platuserQuan
Copy link
Copy Markdown

you're welcome kids

@ahmedsiphone2-code
Copy link
Copy Markdown

you're welcome kids

do I use it in tamper monkey? or the console

@Hxolotl15
Copy link
Copy Markdown

Convert it to bookmarklet

@Hxolotl15
Copy link
Copy Markdown

It works the best that way

@Hxolotl15
Copy link
Copy Markdown

Convert it to a bookmark let and put it in your bookmarks

@Hxolotl15
Copy link
Copy Markdown

I might give up finding a way to get rid of the prevent cheats file I did find a way to delete it but It regenerated the file

@ahmedsiphone2-code
Copy link
Copy Markdown

Convert it to bookmarklet

how to convert, since i am new

@Hxolotl15
Copy link
Copy Markdown

Hxolotl15 commented Mar 26, 2026 via email

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