Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function doCheck() {
- const now = new Date();
- if (now.getHours() !== 12) { // часы
- timeout();
- } else {
- if (now.getMinutes() !== 35) { // минуты
- timeout();
- } else {
- if (now.getSeconds() !== 57) { // секунды
- timeout();
- } else {
- if (now.getMilliseconds() < 500) { // миллисекунды
- timeout()
- } else {
- document.querySelector("#go > div.buttonContainer > button").click();
- }
- }
- }
- }
- }
- function timeout() {
- setTimeout(() => {
- doCheck();
- }, 50)
- }
- doCheck();
Add Comment
Please, Sign In to add comment