Skip to content

Instantly share code, notes, and snippets.

@dikey0ficial
Last active February 26, 2022 17:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dikey0ficial/a707c094984286f8025cba2974fa789c to your computer and use it in GitHub Desktop.
Save dikey0ficial/a707c094984286f8025cba2974fa789c to your computer and use it in GitHub Desktop.
Userscript for cheating in http://vasily.su/calculator-game
// ==UserScript==
// @name vasilysu_calc_cheat
// @namespace http://gist.github.com/
// @homepage http://dikey0ficial.rf.gd/vasilysu_calc_cheat.html
// @version 1.1
// @description Simple cheat script to skip unsolvable games on http://vasily.su/calculator-game/
// @author d!key
// @match http://vasily.su/calculator-game/level_random1.html
// @match http://vasily.su/calculator-game/level_random2.html
// @match http://vasily.su/calculator-game/level_random3.html
// @match http://vasily.su/calculator-game/level_random4.html
// @grant none
// ==/UserScript==
(function() {
'use strict';
var button = document.createElement("button");
button.className = "blue_border_start";
button.id = "hack";
button.innerHTML = "Click to win!";
button.style.backgroundColor = "#1d3d1e";
button.title = "Cheat made by d!key";
if (document.location.href == "http://vasily.su/calculator-game/level_random4.html") {
button.onclick = function() {
firstnumber = answer;
number1 = 0;
firstButton();
};
} else {
button.onclick = function() {
firstnumber = answer;
number2 = 0;
secondButton();
};
}
document.getElementsByTagName("h1")[0].after(button);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment