Want to auto-click undo in tooltip in firefox

OK, so I'm currently playing a game that has a random botcheck. the tab in the popup has an OK and Cancel button and I am trying to find or make a grease-free script to automatically hit cancel when it is and because of its random value it should always be on the script type

the tooltip is always displayed in the same x and y coordinates and button 1 is always ok and button 2 always cancels the hits on the screen, just like pressing cancels

ive tried google and i can't find anything

+1


source to share


1 answer


// @require http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js
$(".popup").bind('show',function(){
    $(this).hide();
});

      

may work depends on the type of popup. if it doesn't work try this:

// @require http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js
$(".popup").bind('show',function(){
    $(".popup .cancel).trigger("click");
});

      



[If JQuery was not installed successfully in your script previously, you need to delete your script and reinstall it]

edit: to simulate pressing escape, use

// @require http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js
var esc = $.Event("keydown", {
keyCode: 27
});
$(".popup").bind('show',function(){
    $('body').trigger(esc);
});

      

0


source







All Articles