Advertisement
Guest User

TagPro Lobby Launcher

a guest
Sep 19th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. // ==UserScript==
  2. // @name TagPro Lobby Launcher
  3. // @description Launches game every 10s when there are five people in pub group. You should be in the waiting.
  4. // @version 0.1
  5. // @author Fap
  6. // @require https://code.jquery.com/jquery-3.3.1.min.js
  7. // @include http://tagpro-centra.koalabeast.com/groups/*
  8. // @include http://tagpro-chord.koalabeast.com/groups/*
  9. // @include http://tagpro-diameter.koalabeast.com/groups/*
  10. // @include http://tagpro-orbit.koalabeast.com/groups/*
  11. // @include http://tagpro-origin.koalabeast.com/groups/*
  12. // @include http://tagpro-pi.koalabeast.com/groups/*
  13. // @include http://tagpro-radius.koalabeast.com/groups/*
  14. // @include http://tagpro-sphere.koalabeast.com/groups/*
  15. // ==/UserScript==
  16.  
  17. (function() {
  18. console.log('TagProLobbyLauncher running...');
  19.  
  20. const launchBtn = $('#launch-public-btn');;
  21.  
  22. setInterval(function() {
  23. const numPubPlayers = $('#pub-players > .player-group > .player-list > .player-item').toArray().length;
  24.  
  25. if (numPubPlayers >= 4)
  26. launchBtn.trigger('click');
  27. }, 5000)
  28. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement