2024-12-02 20:52:27 +02:00
|
|
|
// ==UserScript==
|
|
|
|
// @name Mann Co. Store Giveaway Autojoiner
|
|
|
|
// @namespace http://tampermonkey.net/
|
2025-01-29 22:19:03 +02:00
|
|
|
// @version 2025-01-29
|
2024-12-02 20:52:27 +02:00
|
|
|
// @description Tries to join giveaways on page load
|
|
|
|
// @author Abhorrent_Anger
|
|
|
|
// @include /^https?:\/\/mannco\.store\/giveaways.?$/
|
|
|
|
// @icon https://www.google.com/s2/favicons?sz=64&domain=mannco.store
|
|
|
|
// @grant none
|
|
|
|
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
|
2025-01-29 22:19:03 +02:00
|
|
|
// @require https://cdn.jsdelivr.net/gh/CoeJoder/waitForKeyElements.js@v1.3/waitForKeyElements.js
|
2024-12-02 20:52:27 +02:00
|
|
|
// @run-at document-end
|
|
|
|
// ==/UserScript==
|
|
|
|
|
2025-01-29 22:19:03 +02:00
|
|
|
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() {
|
|
|
|
let raffle = $(this).attr('url');
|
|
|
|
let raffleJoinURL = 'https://mannco.store/requests/raffle.php?mode=join&url=' + raffle;
|
|
|
|
$.ajax({
|
|
|
|
method: "GET",
|
|
|
|
xhrFields: {
|
|
|
|
withCredentials: true
|
|
|
|
},
|
|
|
|
url:raffleJoinURL,
|
|
|
|
success: function(data){
|
|
|
|
console.log('Tried to join '+raffle+' raffle, output: ' + data);
|
|
|
|
}
|
2024-12-02 20:52:27 +02:00
|
|
|
});
|
2025-01-29 22:19:03 +02:00
|
|
|
});
|
|
|
|
console.log('Done with raffle join attempts');
|
|
|
|
});
|