Moderator: Tech Team
billval3 wrote:Ishiro,
Thanks for this. Is there a way I can take off the confirm for auto attack? I like the other options, just not that one.
Maybe you could republish the older one as well? Thanks!
(function() {
var inputs = document.getElementsByTagName("input");
for(var a = 0; a < inputs.length; a++) {
if (inputs[a].value == "End Attacks")
{
inputs[a].setAttribute("onclick", "javascript:return confirm('Are you sure?');" );
}
if (inputs[a].value == "End Fortification")
{
inputs[a].setAttribute("onclick", "javascript:return confirm('Are you sure?');" );
}
if (inputs[a].value == "Auto-Attack")
{
inputs[a].setAttribute("onclick", "javascript:return confirm('Are you sure?');" );
}
}
})();
alkemann wrote:I downloaded this script based on a reply to a support ticket i posted about the need for an undo button on army placement, as I experienced some unfortunate mishaps that i believe was part me and part system fault. Anyways the reply said I should install this script, but it doesnt do what I need it most to. To show a confirmation dialog when I place armies, telling me what country I am placing on and how many. If it could show on the actual map as well, that would rock.
anyways, if this is possible, it would appreciate it
alek
(function() {
var inputs = document.getElementsByTagName("input");
for(var a = 0; a < inputs.length; a++) {
if (inputs[a].value == "End Attacks")
{
inputs[a].setAttribute("onclick", "javascript:return confirm('Are you sure?');" );
}
if (inputs[a].value == "End Fortification")
{
inputs[a].setAttribute("onclick", "javascript:return confirm('Are you sure?');" );
}
if (inputs[a].value == "Auto-Attack")
{
inputs[a].setAttribute("onclick", "javascript:return confirm('Are you sure?');" );
}
if (inputs[a].value == "Deploy")
{
inputs[a].setAttribute("onclick", "javascript:return confirm('Are you sure?');" );
}
}
})();
johnzam wrote:Is it possible to add a script/line for confirming troop deployment!!
redtide wrote:But I can't even download and install it - it seems like that's a bad link, although I've used it in the past. Any ideas?
Shooter_Jay wrote:So if I read this thread right, if I download and install firefox then greasemonky and adjust/set it up right, I will be able to cancel a fortify AFTER seeing the numbers change on the map?
Ishiro wrote:redtide wrote:But I can't even download and install it - it seems like that's a bad link, although I've used it in the past. Any ideas?
This script does not exist anymore. I stopped updating it when it got incorporated into BOB. After a few months I removed the file from my website.
Users browsing this forum: No registered users