I don't understand why it doesn't work,on js it usually work.
I mean what's wrong in it ?? when a box open it should return true directly
// ==UserScript==
// @name Moderate Faster
// @namespace http://tampermonkey.net/
// @version 0.1
// @description A tool to moderate faster for moderators, it bypass alert box
// @author Kai Smith
// @match *://*stackoverflow.com/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// ==/UserScript==
window.confirm = function myConfirm() {
return true;
}
const a = confirm("Are you sure")
console.log(a)