I got "Subject has run script to click on the button 10 times in one second" by using xdotool click --delay 10 --repeat 100 1, wonder whether that's checking timing or just assuming nobody clicks that fast.
for (var i = 0; i < 30; i++) { setTimeout(()=> button.click(), Math.random()*1500) }
I wish bundle.js weren't minified, it could be fun to read.