NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name Daily auto click
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Auto press the daily button
// @author Xuser
// @license MIT
// @copyright 2023, Xuser (https://openuserjs.org/users/Xuser)
// ==/UserScript==
(function() {
'use strict';
function clickElement() {
var element = document.querySelector('.daily-logo-text i');
if (element) {
element.click();
}
}
function waitForElement() {
var element = document.querySelector('#main > div:nth-child(3) > section > div > div > div:nth-child(1) > div.daily-parent > div > div.daily-logo-text');
if (element) {
clickElement();
} else {
setTimeout(waitForElement, 100);
}
}
window.addEventListener('load', waitForElement);
})();