Greasy Fork

Roblox Beeswarm Servery

try to take over the world!

当前为 2020-04-09 提交的版本,查看 最新版本

// ==UserScript==
// @name         Roblox Beeswarm Servery
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  try to take over the world!
// @author       You
// @match        https://web.roblox.com/games/1537690962/Bee-Swarm-Simulator*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
(async function() {
for(let i = 20; i < 200; i++){
    let cs = 50*i;
    fetch(`https://web.roblox.com/games/getgameinstancesjson?placeId=1537690962&startIndex=${cs}&_=1586418906147`).then( t=>t.json()).then(async t=> {
if(t.Collection.length){
    console.log(t.Collection[0].PlayersCapacity,t.Collection[0].JoinScript)
    for(let c of t.Collection){
    const joinB = document.createElement("a",null)
joinB.setAttribute("onclick", c.JoinScript)
joinB.setAttribute("class", "btn-full-width btn-control-xs rbx-game-server-join")
joinB.style.background="lightgreen";
joinB.innerText = c.PlayersCapacity
   // await setTimeout(()=>0,50)
    if(joinB.innerText[0] < 4){
       document.querySelector(".content").append(joinB)

       }
    }


}
})
}

})()
    // Your code here...
})();