NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name Anticombat
// @author Tornados
// @version 1.0.0
// @license MIT
// @downloadURL https://openuserjs.org/install/Tornados/Anticombat.user.js
// @updateURL https://openuserjs.org/meta/Tornados/Anticombat.meta.js
// @include https://anticombats.com/bk
// @require http://code.jquery.com/jquery-3.4.1.min.js
// ==/UserScript==
(function() {
'use strict';
var isActive = true;
function run () {
$("#cr_rach_rc1").click();
if (isActive) {
$("#main").contents().find("#priems a img:not(.nopriemuse):not(:last):eq(0)").click();
var attack = $("#main")[0].contentWindow.atack;
if (typeof attack === "function") {
attack();
} else {
var refresh = $("#main")[0].contentWindow.reflesh;
if (typeof refresh === "function") {
refresh();
}
}
}
}
setInterval(run, 300);
top.addEventListener("keypress", function(e) {
if (e.code == "KeyP" && e.shiftKey) {
isActive = !isActive;
}
});
})();