Skip to main content
References to relative positions of answers are not reliable as they depend on the view (votes/oldest/active) and changing of the accepted answer and change over time (for votes, active, and accepted state). Removed meta information (this belongs in comments).
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

I tried the codes abovecode in previous answers, but they did not work for me. So here is my JSJavaScript code for reconnecting.

let interval = setInterval(function(){ let ok = document.getElementById('ok'); if(ok != null){ console.log("Connect pushed"); ok.click(); }},60000) 

You can use it with the same way (run it on the console of your browser) to run it. If

If you want to stop the script, you can enter clearInterval(interval) and want to run again setInterval(interval).

I hope this helps you.

I tried the codes above but they did not work for me. So here is my JS code for reconnecting.

let interval = setInterval(function(){ let ok = document.getElementById('ok'); if(ok != null){ console.log("Connect pushed"); ok.click(); }},60000) 

You can use it with the same way (run it on the console of your browser) to run it. If you want to stop the script, you can enter clearInterval(interval) and want to run again setInterval(interval).

I hope this helps you.

I tried the code in previous answers, but they did not work for me. So here is my JavaScript code for reconnecting.

let interval = setInterval(function(){ let ok = document.getElementById('ok'); if(ok != null){ console.log("Connect pushed"); ok.click(); }},60000) 

You can use it with the same way (run it on the console of your browser) to run it.

If you want to stop the script, you can enter clearInterval(interval) and want to run again setInterval(interval).

Source Link
esr
  • 75
  • 2
  • 6

I tried the codes above but they did not work for me. So here is my JS code for reconnecting.

let interval = setInterval(function(){ let ok = document.getElementById('ok'); if(ok != null){ console.log("Connect pushed"); ok.click(); }},60000) 

You can use it with the same way (run it on the console of your browser) to run it. If you want to stop the script, you can enter clearInterval(interval) and want to run again setInterval(interval).

I hope this helps you.