Greasy Fork is available in English.
Automatically purchases an item for a set price or less.
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyfork.icu/scripts/410044/841849/Space%20Hair%20Sniper.js
// ==UserScript==
// @name Space Hair Sniper
// @namespace Updated by Coco
// @version 1.0
// @description Automatically purchases an item for a set price or less.
// @author Someone else
// @match https://www.roblox.com/catalog/564449640...ace-People
// @match https://roblox.com/catalog/564449640/Bea...ace-People
// @grant none
// ==/UserScript==
(function() {
'use strict';
var purchaseprice = 1000; //Max price you'd pay
var stringprice = document.getElementsByClassName('text-robux-lg')[0].innerHTML;
var price = stringprice.replace(',','');
if (price <= purchaseprice) {
var confirmbutton = document.getElementsByClassName("btn-fixed-width-lg btn-growth-lg PurchaseButton");
for (var x=0;x<confirmbutton.length; x++) {
confirmbutton[x].click();
}
document.getElementById("confirm-btn").click();
} else {
document.location.reload();
}
})();