Initial commit

This commit is contained in:
Abhorrent_Anger 2025-01-30 21:37:39 +02:00
commit 2c69df47b5
3 changed files with 57 additions and 0 deletions

11
LICENSE Normal file
View File

@ -0,0 +1,11 @@
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.

11
README.md Normal file
View File

@ -0,0 +1,11 @@
# SkinraveRakebackCollector
## Requirements
* [Tampermonkey](https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en) (Chrome)
* [Greasemonkey](https://addons.mozilla.org/en-us/firefox/addon/greasemonkey/) (Firefox)
## Installation
1. Ensure that you have either Tampermonkey or Greasemonkey installed.
2. Download the script [`SkinraveRakebackCollector.user.js`](SkinraveRakebackCollector.user.js?raw=true).
3. Confirm that you want to install the script.
4. The script should now be installed and ready to use. Open the [Reward](https://skinrave.gg/en/rewards) page.

View File

@ -0,0 +1,35 @@
// ==UserScript==
// @name Skinrave Rakeback Collector
// @namespace http://tampermonkey.net/
// @version 2025-01-30
// @description Claims rakebacks
// @author You
// @match https://skinrave.gg/en/rewards
// @icon https://www.google.com/s2/favicons?sz=64&domain=skinrave.gg
// @grant none
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
// @require https://cdn.jsdelivr.net/gh/CoeJoder/waitForKeyElements.js@v1.3/waitForKeyElements.js
// @run-at document-end
// ==/UserScript==
const RECHECK_TIMER = 60000;
const INITIAL_TIMER = 2000;
const MAIN_WINDOW_SELECTOR = "div.flex.overflow-y-auto.overflow-x-hidden";
const CLAIM_SELECTOR = 'body > div.flex.overflow-y-auto.overflow-x-hidden > div.w-full.flex div.relative.w-fit.items-center.justify-center.gap-1.flex button:not(:disabled)';
const EMPTY_CLAIM = 'Claim 0.00 T';
function runRoutines() {
$(CLAIM_SELECTOR).each(function () {
if ($(this).text() == EMPTY_CLAIM) {
console.log('Skipped an empty rakeback');
return;
}
$(this).click();
console.log('Attempted to claim a rakeback');
});
setTimeout(runRoutines, RECHECK_TIMER);
}
waitForKeyElements(MAIN_WINDOW_SELECTOR, () => {
setTimeout(runRoutines, INITIAL_TIMER);
});