Case Clicker

Simple cheat for Case Clicker, automatically makes money and buys cases. Automatically closes the annoying box after getting a weapon!

目前为 2019-02-13 提交的版本。查看 最新版本

// ==UserScript==
// @name         Case Clicker
// @namespace    https://kingofkfcjamal.github.io/CaseClicker/
// @version      0.41
// @description  Simple cheat for Case Clicker, automatically makes money and buys cases. Automatically closes the annoying box after getting a weapon!
// @author       PixxlMan
// @match        https://kingofkfcjamal.github.io/CaseClicker/
// @grant        none
// ==/UserScript==

setInterval(function () {
    document.getElementById('acceptButton').click();
    document.getElementById('case').click();
    console.log(mouseOver);
    removeElementsByClass('modalWindow');
},1);

var mouseOver = false;
addEventListener('click', myScript);

function myScript() {
    if(mouseOver == true) {
        document.getElementById('modalClose').click();
    }
}

function removeElementsByClass(className){
    var elements = document.getElementsByClassName(className);
    while(elements.length > 0){
        elements[0].parentNode.removeChild(elements[0]);
    }
}