Last active
January 9, 2026 22:54
-
-
Save QuartzWarrior/e62aaa782fa38153e30562aa9584082c to your computer and use it in GitHub Desktop.
A script to automatically claim probot daily.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Probot daily script | |
| // @namespace https://quartzwarrior.xyz/ | |
| // @version 0.1 | |
| // @description A script to automatically claim probot daily. | |
| // @author QuartzWarrior | |
| // @match http*://quartzwarrior.xyz/* | |
| // @match http*://probot.io/daily | |
| // @icon http://probot.io/favicon.ico | |
| // @grant unsafeWindow | |
| // @grant GM_openInTab | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| unsafeWindow.addEventListener('load', function () { | |
| if (location.host == "quartzwarrior.xyz") { | |
| var hrefOpener = (new URL('https://probot.io/daily')).href; | |
| var workingTab = GM_openInTab(hrefOpener, { active: true }); | |
| setInterval(() => { | |
| var hrefOpener = (new URL('https://probot.io/daily')).href; | |
| var workingTab = GM_openInTab(hrefOpener, { active: true }); | |
| }, 86400000) | |
| } else { | |
| setTimeout(() => { | |
| if (document.getElementById("daily-time-left") == null) { | |
| document.getElementsByClassName("fas fa-gift")[1].click(); | |
| } else { | |
| unsafeWindow.close(); | |
| } | |
| var e = setInterval(() => { | |
| if (document.getElementById("daily-time-left") != null) { | |
| clearInterval(e); | |
| unsafeWindow.close(); | |
| } | |
| }, 100) | |
| }, 1000) | |
| } | |
| }) | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment