Advertisement
Hirsw0w

Zorgo faster blackjack join!

Jan 17th, 2020
484
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. var tried = "";
  2. var token = JSON.parse(localStorage.getItem("state")).account.token.access_token;
  3.  
  4. function joinBlackjack(gameid) {
  5. grecaptcha.ready(function() {
  6. grecaptcha.execute('6LdfE8IUAAAAABLuc6iqkcPAk3t6gT5---xKFz0j').then(function(recaptcha) {
  7. fetch("https://api.zorgo.games/api/games/bj/join/" + gameid, {"credentials":"omit","headers":{"accept":"application/json","accept-language":"he-IL,he;q=0.9,en-US;q=0.8,en;q=0.7,nl;q=0.6","authorization":"Bearer " + token,"content-type":"application/json","sec-fetch-mode":"cors","sec-fetch-site":"same-site","x-client-id":"15747600981600.11132709368663685","x-nonce":"10784093"},"referrer":"https://zorgo.games/game/blackjack/lobby","referrerPolicy":"no-referrer-when-downgrade","body":"{\"g-recaptcha-response\":\"" + recaptcha + "\"}","method":"POST","mode":"cors"});
  8. });
  9. });
  10. }
  11.  
  12. setInterval(function() {
  13. var split = window.location.href.split('/');
  14. if(split.length < 7)
  15. return;
  16.  
  17. if(tried.indexOf(split[6]) == -1) {
  18. joinBlackjack(split[6]);
  19. tried += split[6] + ";";
  20. }
  21. }, 100);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement