Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var btnData = document.getElementsByClassName("btn-fixed-width-lg btn-primary-lg PurchaseButton")[0].attributes;
- var buyData = document.getElementById("item-container").attributes;
- var newScript = "var buy = 'https://www.roblox.com/API/Item.ashx?rqtype=purchase&productID=ABC420YOLO&expectedCurrency=1&expectedPrice=ABC123YOLO&expectedSellerId=ABC360YOLO&userAssetID=ABC207YOLO'; $.ajax({ url: buy, type: 'POST' });";
- function loadAttributes(data, name) {
- for(var i = 0; i < data.length; i++) {
- if(data[i].name.indexOf('data-product-id') >= 0) {
- newScript = newScript.replace('ABC420YOLO', data[i].value);
- }
- if(data[i].name.indexOf('data-expected-price') >= 0) {
- newScript = newScript.replace('ABC123YOLO', data[i].value);
- }
- if(data[i].name.indexOf('data-expected-seller-id') >= 0) {
- newScript = newScript.replace('ABC360YOLO', data[i].value);
- }
- if(data[i].name.indexOf('data-userasset-id') >= 0) {
- newScript = newScript.replace('ABC207YOLO', data[i].value);
- }
- }
- }
- loadAttributes(btnData, 'btnData');
- loadAttributes(buyData, 'buyData');
- console.log("//script by urban420 network\n" + newScript + "\n//created by urban420 network");
Add Comment
Please, Sign In to add comment