NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name PADherderHypermax
// @namespace tactical_retreat_padherder
// @description Adds a hypermax button to PADherder
// @include https://www.padherder.com/user/*/monsters/*
// @version 0.1
// @grant none
// @copyright 2017, tactical_retreat
// ==/UserScript==
$(document).ready(function () {
var hyperButton = $("#hypermax-button");
if (!$("#hypermax-button").length) {
console.log('adding hypermax button');
var hbe = document.createElement("button");
hbe.id = "hypermax-button";
hbe.type = "button";
hbe.className="btn btn-success pull-left";
hbe.innerHTML = "Hypermax";
$("#mem-form div.modal-footer")[0].prepend(hbe);
hyperButton = $("#hypermax-button");
} else {
console.log('hypermax button already present');
}
hyperButton.off('click').click(function() {
var level = $("#mem-level");
var skill = $("#mem-skill");
var awoken = $("#mem-awoken");
var hp = $("#mem-plus-hp");
var atk = $("#mem-plus-atk");
var rcv = $("#mem-plus-rcv");
var levelMaxVal = level.find('option').first().val();
var skillMaxVal = skill.find('option').first().val();
var awokenMaxVal = awoken.find('option').first().val();
level.val(levelMaxVal);
skill.val(skillMaxVal);
awoken.val(awokenMaxVal);
hp.val(99);
atk.val(99);
rcv.val(99);
});
});