// ==UserScript== // @name alt hesap // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You // @match https://datdrop.com/battle/* // @grant none // ==/UserScript== var gGoogleRecaptcha = false; for(var s of document.getElementsByTagName("script")) { if(s.src.indexOf("recaptcha/api.js") !== -1) gGoogleRecaptcha = true; } if(!gGoogleRecaptcha) { s = document.createElement("script"); http://s.id = "google-recaptcha-v3"; s.src = "https://google.com/recaptcha/api.js?render=6LcwYekUAAAAAEThqALzvcCQe5irAg4DIJrah_wc"; document.getElementsByTagName('head')[0].appendChild(s); console.log("-------------- Loaded Recaptcha!"); } var token1 = JSON.parse(localStorage.getItem("state")).user.token.access_token; var token2 = "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjYyMDhmODg0MzIwMDI2OWUzZDczZTMxZTE1YzhlYjM4NWU1OTA5YjMyN2U4ZWU4MGMyYmY3OTZjYjFhYjhmMGE1YWJhOWEwZTkzNDZjNmQxIn0.eyJhdWQiOiIxIiwianRpIjoiNjIwOGY4ODQzMjAwMjY5ZTNkNzNlMzFlMTVjOGViMzg1ZTU5MDliMzI3ZThlZTgwYzJiZjc5NmNiMWFiOGYwYTVhYmE5YTBlOTM0NmM2ZDEiLCJpYXQiOjE2MjIzNjIxNzcsIm5iZiI6MTYyMjM2MjE3NywiZXhwIjoxNjIyNDQ4NTc3LCJzdWIiOiIxMzIzOTQ4Iiwic2NvcGVzIjpbXX0.JWXJ2dNblmdYVQgyFhYsO_4UWcbOrXRbISpJMD5cGPJPWbkCmt27m1hLZIg0dGCxTSQYSW4TssXckuIqG7B5UuxshlNEolosVg2FPYUp2SwUAWy9D7cuFgoH1kDMylCDiAbIu1NdjZqenk4d6clD39nh8dgbnD9lNMhncTzX3lxwDSlnkG5wRTw7fGTwpYhfCAO8TyrTlqrxFjBLJRvKkNLo66xkN1FVRbu1W-F42EbnTOvGgAZmmEVxtbijVKGjRE9o0JlgnYcFVI97DgSea-FFYdzIWb1fZd-rBLwKd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IpnKYwDTM3vMZI2j_BGjqZh0SmfhI4tdX4Ix90Xr7eD6VhmfZUEF3uqlcnEfyplUQvHCkETB6Ocy3sXTaTzbGLin8yhEKkKxhvhw60aSM672wzjO4EcIWrzZO9AmILRDjIuNRWVf-ODWvMYRbG8pcnkz1NmpH45g9_7_b_UjsAnXWgNbknoQeD6eW6I74RTmTXuiVu7kAPSG46Jy-oZUkKuTBDyZL8Vpe-GjwBp2w2kbqEzZjdiqDp53XxkUneDOnyqaHYBExn-HET1zW0GRmeyOlL01IUP1ekBFQsOrMTbWQtUDW78Sk7LTyhhGBic_vIQnGe2xqmK2miIzUtYlxC1zEGgDDq1p_kPmsAkrVskLtbCIxtEPTAkFy0XeMnXQKJOMtkkc0Hb6fsKOU7hSU6MaFUXgjGv-Q" setTimeout(function() { var locationString = window.location.href; var split = locationString.split('/'); for (var i in split) { if (split[i].length === 9) { joinBattle(split[i], 1, token1); joinBattle(split[i], 2, token1); joinBattle(split[i], 1, token2); joinBattle(split[i], 2, token2); joinBattle(split[i], 1, token3); joinBattle(split[i], 2, token3); console.log("trying to enter " + split[i]); } } }, 125); function joinBattle(gameid, number, token) { grecaptcha.ready(function() { grecaptcha.execute('6LcwYekUAAAAAEThqALzvcCQe5irAg4DIJrah_wc', {action: 'join_prepaid_battle'}).then(function(recaptcha) { fetch("https://api.datdrop.com/api/group/game/join/" + gameid, { "credentials": "omit", "headers": { "accept": "application/json", "accept-language": "en-US,en;q=0.9", "authorization": "Bearer " + token, "content-type": "application/json", "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-site", "x-application-id": "730", "x-client-id": "15833270073190.16842532218081963", "x-client-version": "5", "x-ga-client-id": "301201259.1583327010", "x-language": "en", "x-nonce": "123809" }, "referrer": "https://datdrop.com/battle/" + gameid, "referrerPolicy": "no-referrer-when-downgrade", "body": "{\"uid\":\"" + gameid + "\", \"g-recaptcha-response\":\"" + recaptcha + "\", \"team_number\":\""+number+"\"}", "method": "POST", "mode": "cors" }).then((response) => { return response.json(); }).then((myJson) => { console.log(myJson); }).catch((err) => { if(err.message.indexOf("Unexpected") !== -1) { console.log("User not authenticated!"); } }); }); }); }