JavaScript popup automatic confirmation

80 views

sakulmore
sakulmore
Lead Developer

  • Discussions: 6
  • Posts: 6
  • Likes: 0
November 15, 2025 at 6:58 PM

You definitely know this. You go to some website and when you click a button, a confirmation window pops up, for example "Are you sure you want to continue?" with the options "Ok", "Cancel". This window is not useless, because it can save a person in a situation where they might click something by accident.

However, then there are websites where this is literally unnecessary and more annoying than useful. A perfect example is the Czech-Slovak game hosting FakaHeda.eu. Every time you want to shut down/restart the server, this window pops up. In this case, it's more annoying than beneficial.

That's why I'm bringing you this guide to help you.

  • The first thing you need to do is download the browser extension "Page Manipulator".
  • Then create a new JavaScript.
  • In the script, write the script that you will find below in this topic.
  • On the left, enter the websites for which you want the script to work.
  • Done.

Images:

Script:

window.confirm = function(msg){
   console.log("Auto-confirming:", msg);
   return true;
};