Greasy Fork is available in English.
Automatically clicks the Sign In button for goku.to after a specified amount of time (default: 10 seconds).
当前为
// ==UserScript==
// @name Auto Goku.to Sign
// @namespace http://tampermonkey.net/
// @version 3.0
// @ author longkidkoolstar
// @description Automatically clicks the Sign In button for goku.to after a specified amount of time (default: 10 seconds).
// @match https://goku.to/*
// @grant none
// @license GPL-3.0
// @icon https://cdn.dribbble.com/users/289074/screenshots/1614713/sans_titre_-_2.png
// ==/UserScript==
//Clicks the Sign-in Button at the Goku Homepage
(function() {
'use strict';
window.addEventListener('load', function() {
const button = document.querySelector('.account-button .btn.btn-blank');
if (button) {
button.click();
}
});
})();
(function() {
'use strict';
if (window.location.href.startsWith('https://goku.to/login')) {
let secondsToWait = null;
const storedSeconds = localStorage.getItem('goku.to.autosign.seconds');
if (storedSeconds !== null) {
secondsToWait = parseInt(storedSeconds, 10);
}
if (!secondsToWait) {
const input = prompt('Enter the number of seconds to wait before clicking the "Sign In" button. Default is 10 seconds.', '10');
if (!input) return;
secondsToWait = parseInt(input, 10);
if (isNaN(secondsToWait)) {
secondsToWait = 10;
}
localStorage.setItem('goku.to.autosign.seconds', secondsToWait.toString());
}
setTimeout(function() {
const button = document.querySelector('.btn.btn-block.btn-primary.position-relative');
if (button) {
button.click();
}
}, secondsToWait * 1000);
}
})();