Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var tags = "Test desc";
- var on = "on";
- function edit(id, name) {
- $.get("https://www.roblox.com/item.aspx?id=" + id).success(function(data) {
- var ET = "ctl00$cphRoblox$SubmitButtonTop";
- var EA = "";
- var VS = $("#__VIEWSTATE", data).val();
- var VSG = $("#__VIEWSTATEGENERATOR", data).val();
- var EV = $("#__EVENTVALIDATION", data).val();
- var PP = $("#__PREVIOUSPAGE", data).val()
- var Data = {
- __EVENTTARGET : encodeURIComponent(ET),
- __EVENTARGUMENT : "",
- __VIEWSTATE : encodeURIComponent(VS),
- __VIEWSTATEGENERATOR : encodeURIComponent(VSG),
- __PREVIOUSPAGE : PP == "undefined" ? "" : PP,
- __EVENTVALIDATION : encodeURIComponent(EV)
- }
- Data[encodeURIComponent("ctl00$cphRoblox$NameTextBox")] = encodeURIComponent("Name should change to this?")
- Data[encodeURIComponent("ctl00$cphRoblox$EnableCommentsCheckBox")] = "on"
- Data[encodeURIComponent("GenreButtons2")] = 1
- Data[encodeURIComponent("ctl00$cphRoblox$actualGenreSelection")] = 1
- Data[encodeURIComponent("ctl00$cphRoblox$DescriptionTextBox")] = encodeURIComponent(tags)
- Data[encodeURIComponent("ctl00$cphRoblox$RobuxPrice")] = ""
- var Request = new XMLHttpRequest();
- var ParamString = "";
- Request.open("POST", "https://www.roblox.com/my/item.aspx?id=" + id, true);
- Request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
- Request.setRequestHeader("Cache-Control", "max-age=0");
- Request.setRequestHeader("Upgrade-Insecure-Requests", "1");
- Request.setRequestHeader("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8");
- $.each(Data, function(Key, Value){
- ParamString = ParamString + Key + "=" + Value + "&";
- });
- ParamString = ParamString.substr(0, ParamString.length-1); // Removes trailing "&"
- Request.send(ParamString);
- console.log("Edited successfully.");
- });
- }
- function loop(page) {
- $.get("https://search.roblox.com/catalog/json?Subcategory=1&CreatorID=62277089&CurrencyType=0&pxMin=0&pxMax=0&SortType=3&SortAggregation=5&SortCurrency=0&IncludeNotForSale=true&LegendExpanded=false&Category=1&PageNumber=" + page).success(function(data) {
- console.log("On page: " + page);
- for (var i = 0; i < data.length; i++) {
- edit(data[i].AssetId, data[i].Name);
- }
- });
- }
- /*for (var i = 0; i < 15; i++) {
- loop(i);
- }*/
- edit(183609406, "0003830056_21")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement