Answer the question
In order to leave comments, you need to log in
How to fix the script for clicking on a timer?
There is this script:
// Точное время, когда выполнить команду
var whenDate = new Date(2020, 5, 28, 9, 0, 0, 0); // 28 июня 2020 г. 09:00:00.000 (9 утра)
// Точное время сейчас
var nowDate = new Date();
// Ставим таймер, который нажмёт на зелёную кнопку
// на сайте Тостер "Задать вопрос" ровно в 9 утра.
setTimeout(function() {
document.querySelector(".btn_add-question").click()
}, whenDate-nowDate);
Answer the question
In order to leave comments, you need to log in
The delay value is negative, in this case , the browser substitutes 0
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question