This is a script intended to curb or (hopefully) maybe even stop the presence of so-called "ghost" games in geoguessr, when you accidentally double click on a button to play in competitive, and it puts you into two games, one of which you don't know about and don't have access to, but still negatively impacts your score when you inevitably lose.
The script itself is incredibly simplistic, it just looks for the various buttons you might press to queue into competitive, and attaches an event listener to the click event that will disable the button after clicking for 30 seconds, and show a timer right next to the button for those 30 seconds. I've personally tried this on all the buttons for accessing duels, and it should work (though I don't recommend double-clicking willy-nilly cause who knows what might fail). I haven't tested it on buttons for the other two competitive modes, but there shouldn't be any difference.
I can't guarantee this will work 100%, but in my limited testing it seems to. Please let me know by a reply or dm on discord if you're having an issue. My id on discord is Tyow#3742. I have not yet tested this across browsers (I'm using Firefox), but there shouldn't be any difference.