Last active
February 26, 2022 17:04
-
-
Save dikey0ficial/a707c094984286f8025cba2974fa789c to your computer and use it in GitHub Desktop.
Userscript for cheating in http://vasily.su/calculator-game
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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