Initial commit (real)
This commit is contained in:
parent
51f25bcf9d
commit
bd8b676ac0
|
@ -0,0 +1,32 @@
|
||||||
|
// ==UserScript==
|
||||||
|
// @name Mann Co. Store Giveaway Autojoiner
|
||||||
|
// @namespace http://tampermonkey.net/
|
||||||
|
// @version 2024-11-14
|
||||||
|
// @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
|
||||||
|
// @run-at document-end
|
||||||
|
// ==/UserScript==
|
||||||
|
|
||||||
|
window.onload = function(){
|
||||||
|
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;
|
||||||
|
$.ajax({
|
||||||
|
method: "GET",
|
||||||
|
xhrFields: {
|
||||||
|
withCredentials: true
|
||||||
|
},
|
||||||
|
url:raffleJoinURL,
|
||||||
|
success: function(data){
|
||||||
|
console.log('Tried to join '+raffle+' raffle, output: ' + data);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
console.log('Done with raffle join attempts');
|
||||||
|
}, 2000);
|
||||||
|
};
|
Loading…
Reference in New Issue