Skip to content

Instantly share code, notes, and snippets.

@logonoff
Last active September 13, 2022 05:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save logonoff/de24890fd4288459208324c8543628cb to your computer and use it in GitHub Desktop.
Save logonoff/de24890fd4288459208324c8543628cb to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Hypixel Reward Skip
// @namespace https://logonoff.co/
// @version 3.0.1
// @description Auto skip Hypixel's daily reward!
// @author logonoff
// @match *://rewards.hypixel.net/*
// @downloadURL https://raw.githubusercontent.com/logonoff/userscripts/main/HypixelRewardSkip.user.js
// @updateURL https://raw.githubusercontent.com/logonoff/userscripts/main/HypixelRewardSkip.user.js
// @icon https://www.google.com/s2/favicons?sz=64&domain=hypixel.net
// @grant none
// @run-at document-end
// ==/UserScript==
window.onload = function() {
'use strict';
// based off https://github.com/HexedHero/HypixelRewardSkip (MIT)
const task = setInterval(function() {
let target = document.querySelectorAll("button span");
if (target) {
target.forEach(function(elem) {
elem.click();
});
clearTimeout(task);
}
}, 500 + Math.random() * 100);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment