Novicane - SPNATI Cheat

Collection of cheats for the browser game SPNATI, put into a large userscript for ease of use

Verzia zo dňa 05.01.2023. Pozri najnovšiu verziu.

Na nainštalovanie skriptu si budete musieť nainštalovať rozšírenie, ako napríklad Tampermonkey, Greasemonkey alebo Violentmonkey.

Na nainštalovanie skriptu si budete musieť nainštalovať rozšírenie, ako napríklad Tampermonkey, % alebo Violentmonkey.

Na nainštalovanie skriptu si budete musieť nainštalovať rozšírenie, ako napríklad Tampermonkey, % alebo Violentmonkey.

Na nainštalovanie skriptu si budete musieť nainštalovať rozšírenie, ako napríklad Tampermonkey alebo Userscripts.

Na inštaláciu tohto skriptu je potrebné nainštalovať rozšírenie, ako napríklad Tampermonkey.

Na inštaláciu tohto skriptu je potrebné nainštalovať rozšírenie správcu používateľských skriptov.

(Už mám správcu používateľských skriptov, nechajte ma ho nainštalovať!)

Na inštaláciu tohto štýlu je potrebné nainštalovať rozšírenie, ako napríklad Stylus.

Na inštaláciu tohto štýlu je potrebné nainštalovať rozšírenie, ako napríklad Stylus.

Na inštaláciu tohto štýlu je potrebné nainštalovať rozšírenie, ako napríklad Stylus.

Na inštaláciu tohto štýlu je potrebné nainštalovať rozšírenie správcu používateľských štýlov.

Na inštaláciu tohto štýlu je potrebné nainštalovať rozšírenie správcu používateľských štýlov.

Na inštaláciu tohto štýlu je potrebné nainštalovať rozšírenie správcu používateľských štýlov.

(Už mám správcu používateľských štýlov, nechajte ma ho nainštalovať!)

// ==UserScript==
// @name         Novicane - SPNATI Cheat
// @namespace    https://www.github.com/anonfoxer
// @version      0.3.0
// @description  Collection of cheats for the browser game SPNATI, put into a large userscript for ease of use
// @author       anonfoxer
// @match        https://spnati.net/*
// @grant        none
// @license      MIT
// ==/UserScript==


/* Making the buttons and appending them all
just underneath the name bubble of each character.
Kinda roundabout but eh. */

console.log("N O V I C A N E _ L O A D I N G . . .");

//cheat name button because flair is important.
var cheat = document.createElement("button");
cheat.innerHTML = "Novicane v0.3.0";
var gameVers = document.getElementById("title-version-button");
try {
    gameVers.appendChild(cheat);
}
catch(e) {
console.log(e);
}

//win hand button
var winHandButton = document.createElement("button");
winHandButton.innerHTML = "Win Hand";
document.getElementsByClassName("optional-bordered player-card-area")[0].appendChild(winHandButton);

//info button
var splashButton = document.createElement("button");
splashButton.innerHTML = "Info";
document.getElementsByClassName("optional-bordered player-card-area")[0].appendChild(splashButton);

//instant epilogue button
/*
var instantEpilogueButton = document.createElement("button");
instantEpilogueButton.innerHTML = "Instant Epilogue";
document.body.appendChild(instantEpilogueButton);
*/

//splash listener
splashButton.addEventListener ("click", function() {
    alert("Novicane v0.3.0 by anonfoxer");
    alert("Changes: -Removed debug mode button (doesnt work online)\n-Added cheat splash and information.\n-Updated button appending to make buttons appear.");
});

//win hand listener
winHandButton.addEventListener ("click", function() {
try {
    console.log("Giving player winning hand");
    players[0].hand.cards = [ 14, 13, 12, 11, 10 ].map(function(n) { return new Card(0 - 1, n); });
}
    catch (e) {
    console.log("An error occurred when trying to force a winning hand. Error:");
    console.log(e);
    }
});


//instant epilogue listener
/*
instantEpilogueButton.addEventListener ("click", function() {
    var character = prompt("Enter the name of the character you want to see the epilogue of. They must have an epilogue written.","raven");
    console.log(character);
    doEpilogueModal(character);
});
*/