首页 > 解决方案 > Can a website detect usage of TamperMonkey scripts

问题描述

I had a question about Tampermonkey detection on websites. I've viewed a lot of the questions on here but haven't found an answer specific to my case.

I'm wanting a script that will auto-fill some input boxes in for me on a website and preferably click the submit button for me.

Looking at other answers, some have mentioned that it's possible for a script-generated mouse click to be detected. I'm not sure if this is correct or not. If it is and I avoid automated clicks, can an input box value change be detected?

I would be changing the value by doing the following: $('#name').val('Jeff')

This isn't me trying to abuse any system, it's more of an ease of life script.

Thanks.

The code I'm using:

document.addEventListener('click', (e) => { 
  document.getElementById("name").value = "Jeff";
});

标签: javascriptgoogle-chrometampermonkey

解决方案


推荐阅读