Original Address https://jingyan.baidu.com/article/0a52e3f41c0b0abf63ed726d.html
Here take the Baidu Music VIP Redemption page to do the demonstration.
First open the Baidu Music VIP Redemption page, and then press F12 to switch to the console console. :
Then enter the following code in the console console, and then return to it will be automatically clicked, such as the demo diagram:
SetInterval (function () {$ (' #exchange-submit '). Click ();},800); SetInterval (function () {$ ('. txt '). Click ();},800)
----------delimiter------------
Code Explanation:
#exchange-submit, this is said ID such as: source <span id= "Exchange-submit" ></span>
. Inner (change the inner to TXT also look at the code), this is said class: source <span class= "inner" ><span class= "TXT" > Close </span> </ Span>
The number here is milliseconds.
“;” The code is the next paragraph of code, such as you want to loop click 3 different order of things and then add a ";" Just go ahead and enter the code.
places to be aware of:
JavaScript console automatically clicks on page elements