Auto refresh, page wait
This commit is contained in:
parent
356f4f9a98
commit
02ad624dda
@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Mann Co. Store Giveaway Autojoiner
|
// @name Mann Co. Store Giveaway Autojoiner
|
||||||
// @namespace http://tampermonkey.net/
|
// @namespace http://tampermonkey.net/
|
||||||
// @version 2025-01-29
|
// @version 2025-02-15
|
||||||
// @description Tries to join giveaways on page load
|
// @description Tries to join giveaways on page load
|
||||||
// @author Abhorrent_Anger
|
// @author Abhorrent_Anger
|
||||||
// @include /^https?:\/\/mannco\.store\/giveaways.?$/
|
// @include /^https?:\/\/mannco\.store\/giveaways.?$/
|
||||||
@ -12,20 +12,24 @@
|
|||||||
// @run-at document-end
|
// @run-at document-end
|
||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
|
|
||||||
|
setTimeout(function () { location.reload(); }, 90 * 60 * 1000);
|
||||||
|
|
||||||
waitForKeyElements('a.raffle-list__item.list-group-item.list-group-item-action.raffleitem.isv.first', () => {
|
waitForKeyElements('a.raffle-list__item.list-group-item.list-group-item-action.raffleitem.isv.first', () => {
|
||||||
$('span[data-bs-title="Joined"][style*="display: none"]').each(function() {
|
setTimeout(function () {
|
||||||
let raffle = $(this).attr('url');
|
$('span[data-bs-title="Joined"][style*="display: none"]').each(function () {
|
||||||
let raffleJoinURL = 'https://mannco.store/requests/raffle.php?mode=join&url=' + raffle;
|
let raffle = $(this).attr('url');
|
||||||
$.ajax({
|
let raffleJoinURL = 'https://mannco.store/requests/raffle.php?mode=join&url=' + raffle;
|
||||||
method: "GET",
|
$.ajax({
|
||||||
xhrFields: {
|
method: "GET",
|
||||||
withCredentials: true
|
xhrFields: {
|
||||||
},
|
withCredentials: true
|
||||||
url:raffleJoinURL,
|
},
|
||||||
success: function(data){
|
url: raffleJoinURL,
|
||||||
console.log('Tried to join '+raffle+' raffle, output: ' + data);
|
success: function (data) {
|
||||||
}
|
console.log('Tried to join ' + raffle + ' raffle, output: ' + data);
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
console.log('Done with raffle join attempts');
|
||||||
console.log('Done with raffle join attempts');
|
}, 2000);
|
||||||
});
|
});
|
Loading…
x
Reference in New Issue
Block a user