Auto refresh, page wait

This commit is contained in:
Abhorrent_Anger 2025-02-15 22:10:27 +02:00
parent 356f4f9a98
commit 02ad624dda

View File

@ -1,7 +1,7 @@
// ==UserScript==
// @name Mann Co. Store Giveaway Autojoiner
// @namespace http://tampermonkey.net/
// @version 2025-01-29
// @version 2025-02-15
// @description Tries to join giveaways on page load
// @author Abhorrent_Anger
// @include /^https?:\/\/mannco\.store\/giveaways.?$/
@ -12,7 +12,10 @@
// @run-at document-end
// ==/UserScript==
setTimeout(function () { location.reload(); }, 90 * 60 * 1000);
waitForKeyElements('a.raffle-list__item.list-group-item.list-group-item-action.raffleitem.isv.first', () => {
setTimeout(function () {
$('span[data-bs-title="Joined"][style*="display: none"]').each(function () {
let raffle = $(this).attr('url');
let raffleJoinURL = 'https://mannco.store/requests/raffle.php?mode=join&url=' + raffle;
@ -28,4 +31,5 @@ waitForKeyElements('a.raffle-list__item.list-group-item.list-group-item-action.r
});
});
console.log('Done with raffle join attempts');
}, 2000);
});