Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name TagPro Lobby Launcher
- // @description Launches game every 10s when there are five people in pub group. You should be in the waiting.
- // @version 0.1
- // @author Fap
- // @require https://code.jquery.com/jquery-3.3.1.min.js
- // @include http://tagpro-centra.koalabeast.com/groups/*
- // @include http://tagpro-chord.koalabeast.com/groups/*
- // @include http://tagpro-diameter.koalabeast.com/groups/*
- // @include http://tagpro-orbit.koalabeast.com/groups/*
- // @include http://tagpro-origin.koalabeast.com/groups/*
- // @include http://tagpro-pi.koalabeast.com/groups/*
- // @include http://tagpro-radius.koalabeast.com/groups/*
- // @include http://tagpro-sphere.koalabeast.com/groups/*
- // ==/UserScript==
- (function() {
- console.log('TagProLobbyLauncher running...');
- const launchBtn = $('#launch-public-btn');;
- setInterval(function() {
- const numPubPlayers = $('#pub-players > .player-group > .player-list > .player-item').toArray().length;
- if (numPubPlayers >= 4)
- launchBtn.trigger('click');
- }, 5000)
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement