UGC Sniper (pain)(for roblox)

reload page and spam buys pls dont skid

目前为 2023-04-26 提交的版本。查看 最新版本

// ==UserScript==
// @name         UGC Sniper (pain)(for roblox)
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  reload page and spam buys pls dont skid
// @author       fishcat#2431
// @match        https://www.roblox.com/catalog/*
// @match        https://www.roblox.com/bundles/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=roblox.com
// @grant        none
// @license      GNU General Public License v3.0
// ==/UserScript==

const MAX_PRICE = 50; //edit this to change max price

function snipeitem() {
 const buttons = document.querySelectorAll('button');
 const buyButton = Array.from(buttons).find((button) => button.textContent === 'Buy');
 buyButton.click();
 setTimeout(() => {
   const buttons2 = document.querySelectorAll('button');
   const buyButton2 = Array.from(buttons2).find((button) => button.textContent === 'Buy Now');
   if (true == MPC) {
   console.log("can buy")
   buyButton2.click();
   }else{
   alert("price too high")
   }
   document.getElementById("refresh-details-button").click();
   /*setTimeout(() => {
     const buttons3 = document.querySelectorAll('button');
     const buyButton3 = Array.from(buttons3).find((button) => button.textContent === 'Not Now');
     buyButton3.click();
     setTimeout(snipeitem, 1000);
   }, 500);
window.location.reload()*/
 }, 500);
}


var intv = setInterval(function() {
    var elems = document.getElementsByClassName("btn-growth-lg btn-fixed-width-lg")
    if(elems.length < 1){
        return false;
    }
    //when element is found, clear the interval.by fishcat#2431
    clearInterval(intv);
    for (var i = 0, len = elems.length; i < len; i++){
        elems[i].value = "";
        console.log("by fishcat#2431")
        const rb = document.getElementsByClassName("text-robux-lg")[0].innerText
        var MPC = rb <= MAX_PRICE
        snipeitem();
        document.getElementById("refresh-details-button").click();
    }
}, 100);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址