Tampermonkey can't get the value of the input box element input?

goal:
1. Plan to log in to some sites automatically, such as Baidu, Taobao
2, account password and other information can not be written in the script, use the function of chrome to fill out the form automatically

problem:
1, document.getElementById ("xxx") .value and other syntax is invalid
2. The value of the input box cannot be obtained in the code, but the value can be obtained in chrome console
3. It is suspected that it is a permission problem, but the get has not reached the point

.

google, baidu for several weeks, failed to solve the problem

ask for help from masters, experts, experts

May.23,2022
Menu