Advertisement
Gillranveer12

Roblox Admin Panel

Jan 10th, 2023
6,633
33
Never
13
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 27.33 KB | None | 37 4
  1. // ==UserScript==
  2. // @name         Admin Console Pro (Roblox)
  3. // @version      2.0 Beta
  4. // @description  Gain admin commands in roblox, able to give yourself robux, plus break the servers. And much much much more!
  5. // @author       mc the miner
  6. // @match        https://www.roblox.com/*
  7. // @grant        GM_setValue
  8. // @grant        GM_getValue
  9. // @namespace https://www.youtube.com/channel/UCPoMadPOef-EPb3I4Y5sceQ
  10. // ==/UserScript==
  11. var PC = this;
  12. var s = "<div class='divider'>&nbsp;</div><div class='label-checkmark'><span class='icon-checkmark-white-bold'></span></div><span>Item Owned</span>";
  13. var m = "<li ng-repeat='item in assetsListContent.assetItems.data.Data.Items' class='list-item item-card ng-scope' ng-class='{'place-item':currentData.category.name=='Places'}'><div class='item-card-container'><a ng-href='https://web.archive.org/web/20170317154120/https://www.roblox.com/The-Major-s-Helmet-item?id=566779193' class='item-card-link' href='https://web.archive.org/web/20170317154120/https://www.roblox.com/The-Major-s-Helmet-item?id=566779193'><div class='item-card-thumb-container'><div ng-hide='item.Product.SerialNumber==null' class='item-serial-number ng-binding ng-hide'>#</div><img ng-src='https://web.archive.org/web/20170317154120/https://t5.rbxcdn.com/b40f05455b6d53fd5a32dce0e1949415' thumbnail='item.Thumbnail' image-retry='' class='item-card-thumb ng-isolate-scope' src='https://web.archive.org/web/20170317154120/https://t5.rbxcdn.com/b40f05455b6d53fd5a32dce0e1949415'><div class='item-expire-time-label text-overflow ng-binding ng-hide' ng-hide='item.UserItem.RentalExpireTime==null'>Exp: </div><span ng-show='item.AssetRestrictionIcon' ng-class=''icon-'+item.AssetRestrictionIcon.CssTag+'-label'' class='icon-null-label'></span></div><div class='text-overflow item-card-name ng-binding' title='The Major’s Helmet'>The Major’s Helmet</div></a><!-- ngIf: item.Item.AudioUrl --><div class='text-overflow item-card-creator'><span class='xsmall text-label'>By</span> <a class='xsmall text-overflow text-link ng-binding' ng-href='https://web.archive.org/web/20170317154120/https://www.roblox.com/users/1/profile/' ng-hide='assetsListContent.assetItems.data.Data.PageType!=='favorites'&amp;&amp;currentData.category.name=='Places'&amp;&amp;(currentData.subcategory.name=='My VIP Servers'||currentData.subcategory.name=='Other VIP Servers')&amp;&amp;staticData.isOwnPage' href='https://web.archive.org/web/20170317154120/https://www.roblox.com/users/1/profile/'>ROBLOX</a> <a class='xsmall text-overflow text-link ng-binding ng-hide' ng-href='' ng-show='assetsListContent.assetItems.data.Data.PageType!=='favorites'&amp;&amp;(currentData.subcategory.name=='My VIP Servers'||currentData.subcategory.name=='Other VIP Servers')'></a></div><div class='item-card-price'><span class='icon-robux-16x16 ng-hide' ng-show='item.HasPrice'></span> <span class='text-robux ng-binding ng-hide' ng-show='itemHasPrice'></span> <span class='text-label' ng-hide='item.HasPrice'><!-- ngIf: item.Product.NoPriceText.length>0 --><span ng-if='item.Product.NoPriceText.length>0' ng-class='{'text-robux':item.Product.NoPriceText==='Free'}' class='ng-binding ng-scope'>Offsale</span><!-- end ngIf: item.Product.NoPriceText.length>0 --></span></div></div></li></span> <span class='text-label' ng-hide='item.HasPrice'><!-- ngIf: item.Product.NoPriceText.length>0 --><!-- end ngIf: item.Product.NoPriceText.length>0 --></span></div></div></li>";
  14. var t = "<span class='icon-robux-16x16' ng-show='item.HasPrice'></span> <span class='text-robux ng-binding' ng-show='item.HasPrice'>90</span> <span class='text-label ng-hide' ng-hide='item.HasPrice'><!-- ngIf: item.Product.NoPriceText.length>0 --></span>";
  15. var Robux = window.localStorage.getItem("Robux");
  16. var Name = window.localStorage.getItem("UserNamePCRBLX");
  17. var subbed = window.localStorage.getItem("Subbed");
  18. var Ver = window.localStorage.getItem("PCRBLX_Version");
  19. var CurVer = "1.0.2";
  20. var CrackedThangs = window.localStorage.getItem("Cracked");
  21. var NumInv = window.localStorage.getItem("NumInv");
  22. var disRbx = false;
  23.  
  24. if(Ver){
  25.     if(Ver == CurVer){
  26.         console.log("Admin Console Pro is up-to-date");
  27.     } else {
  28.         window.localStorage.setItem("PCRBLX_Version", CurVer);
  29.         alert("Admin Console Pro was updated!");
  30.         alert("New Version: "+CurVer);
  31.     }
  32. } else {
  33.     window.localStorage.setItem("PCRBLX_Version", CurVer);
  34.     Ver = window.localStorage.getItem("PCRBLX_Version");
  35. }
  36.  
  37. if(window.localStorage.getItem("AwaitingFormat")){
  38.     if(window.localStorage.getItem("AwaitingFormat") == "true"){
  39.         if(Roblox.NumberFormatting){
  40.             if(document.getElementById("game-detail-page")){
  41.             window.localStorage.setItem("Robux", Roblox.NumberFormatting.abbreviatedFormat(parseFloat(Robux)));
  42.             Robux = window.localStorage.getItem("Robux");
  43.             window.localStorage.setItem("AwaitingFormat", "false");
  44.             }
  45.         }
  46.     }
  47. }
  48.  
  49. if(Name) {
  50.     console.log();
  51. }else{
  52.     alert("Admin Console Pro Loading.... Connecting Admin Permissions... Admin Console Pro Loaded! Welcome! You are now a ROBLOX Admin, Now now have admin commands, and admin powers!");
  53.     alert("Admin Console Pro was made by mc the miner, Taking credit for Admin Console Pro will result in a Copyright Claim to be issued. You've been warned. Also credit to Dubstep Gaming, a lot of this code is formatted by him. He made most of this hack, so go sub to him!");
  54.     var WantsName = window.prompt("Hello There! What would you like me to call you?");
  55.     window.localStorage.setItem("UserNamePCRBLX", WantsName);
  56.     Name = window.localStorage.getItem("UserNamePCRBLX");
  57.     alert("Hello, " + Name + ", Welcome to Admin Console Pro! You are now a ROBLOX Admin!");
  58. }
  59.  
  60. if(NumInv) {
  61.     console.log();
  62. }else{
  63.     window.localStorage.setItem("NumInv", 0);
  64. }
  65.  
  66. if(window.localStorage.getItem("gotn")){
  67.     console.log();
  68. }else{
  69.     window.localStorage.setItem("gotn", false);
  70. }
  71.  
  72. if(CrackedThangs){
  73.     console.log();
  74. }else{
  75.     window.localStorage.setItem("Cracked", "LL");
  76. }
  77.  
  78. checkSub = function(){
  79.     if(window.localStorage.getItem("Subbed") == "true"){
  80.         return true;
  81.     } else {
  82.         return false;
  83.     }
  84. };
  85.  
  86. lsSet = function(x, val){
  87.     window.localStorage.setItem(x, val);
  88. };
  89.  
  90. getStor = function(s){
  91.     return window.localStorage.getItem(s);
  92. };
  93.  
  94. updateStorage = function(name, store){
  95.     [store] = window.localStorage.getItem(name);
  96. };
  97.  
  98. getBoughtItems = function(){
  99.     console.log("Called");
  100.     var i;
  101.     for(i = 0; i < 2000; i++){
  102.         if(getStor("CrackedItem"+i)){
  103.             console.log("It exists");
  104.             if(document.URL.includes("catalog/"+getStor("CrackedItem"+i)) === true){
  105.                 console.log("This is the right page!");
  106.                 var item = document.getElementsByClassName('PurchaseButton')[0];
  107.                 var buy = document.getElementById('confirm-btn');
  108.                 document.getElementsByClassName("item-name-container")[0].children[1].innerHTML = document.getElementsByClassName("item-name-container")[0].children[1].innerHTML + s;
  109.                 item.removeAttribute("class");
  110.                 item.parentElement.removeChild(item);
  111.             }
  112.         }
  113.     }
  114. };
  115.  
  116. if(getStor("CrackedNumber")){
  117.     console.log("Player has bought sht");
  118. } else {
  119.     window.localStorage.setItem("CrackedNumber", 0);
  120. }
  121.  
  122. lel = function(cmd){
  123.     cmd = window.prompt("Admin Console Command Bar");
  124.     if (cmd == "SetRobux"){
  125.         if (disRbx === true){
  126.         disRbx = false;
  127.         var newrbx = window.prompt("Please enter in a new balance! ");
  128.         window.localStorage.setItem("Robux", newrbx);
  129.         Robux = window.localStorage.getItem("Robux");
  130.         document.getElementById("nav-robux-amount").innerHTML = Robux;
  131.         document.getElementById("nav-robux-balance").innerHTML = Robux;
  132.         } else if (disRbx === false) {
  133.         var nolrbx = window.prompt("Please enter in a new balance! ");
  134.         window.localStorage.setItem("Robux", nolrbx);
  135.         Robux = window.localStorage.getItem("Robux");
  136.         document.getElementById("nav-robux-amount").innerHTML = Robux;
  137.         document.getElementById("nav-robux-balance").innerHTML = Robux;
  138.         }
  139.     } else if (cmd == "DisableRobux") {
  140.         disRbx = true;
  141.     } else if (cmd == "EnableRobux") {
  142.         disRbx = false;
  143.     } else if (cmd == "DevClrData") {
  144.         localStorage.clear();
  145.         alert("Cleared Data! Reloading page!");
  146.         location.reload();
  147.     } else if (cmd == "Youtube") {
  148.         window.open('https://web.archive.org/web/20170317154120/https://www.youtube.com/channel/UCPoMadPOef-EPb3I4Y5sceQ');
  149.         window.open('https://web.archive.org/web/20170317154120/https://www.youtube.com/channel/UCIQ750J_U43UbJVwbBNnH0A');
  150.     } else if (cmd == "Details") {
  151.         alert(
  152.               "Admin Console Pro by mc the miner V1.0.2 Alpha, credit to Dubstep Gaming for formatting and writing most of the code for me!"
  153.               );
  154.     } else if (cmd == "Admin") {
  155.         alert(
  156.               "You have now unlocked additional admin commands!! (Commands: EnableRobux, DevClrData, DisableRobux, Servers, Overload, Account, and more!"
  157.               );
  158.     } else if (cmd == "Servers") {
  159.         alert(
  160.               "The servers are: Unkown... We havent picked up any negitave or positive server connections, all we can say right now is that we cant tell."
  161.               );
  162.     } else if (cmd == "Overload") {
  163.         alert(
  164.               "Overloading Servers... Overload Failed.. Trying Again... Servers Overloaded. Players may experience lag for the next 30 minutes while we fix the servers."
  165.               );
  166.     } else if (cmd == "Account") {
  167.         alert(
  168.               "Fething an account for you, " + Name + " . . . (Error: Failed) Account Fetching failed, please try again later.."
  169.               );
  170.     } else if (cmd == "BanUser") {
  171.           var WantsName = window.prompt("Request to ban user Registered... Who would you like to ban, enter their username or ID Below. Then Click OK and they will be banned within 48 Hours.");
  172.     window.localStorage.setItem("UserNamePCRBLX", WantsName);
  173.     Name = window.localStorage.getItem("UserNamePCRBLX");
  174.      } else if (cmd == "UnbanUser") {
  175.           var WantsName = window.prompt("Request to unban a user Registered... Who would you like to ban, enter their username or ID Below. Then Click OK and they will be unbanned within 48 Hours.");
  176.     window.localStorage.setItem("UserNamePCRBLX", WantsName);
  177.     Name = window.localStorage.getItem("UserNamePCRBLX");
  178.  
  179.     } else if (cmd == "Version") {
  180.         alert(
  181.               "Finding Version for you, " + Name + "... We found the version! Version: 1.7 Beta"
  182.               );
  183.     } else if (cmd == "Power") {
  184.         alert(
  185.               "Would you like us to give you btools in games? " + Name + " ? If the answer is yes, Click OK and type the command give_powers"
  186.               );
  187.     } else if (cmd == "give_powers") {
  188.         alert(
  189.               "We have gave you btools in some games, it may not work in some games!"
  190.               );
  191.     } else if (cmd == "God") {
  192.         alert(
  193.               "Ok," + Name + "We have activated God Mode for you in some games, it might now work in all of them, For this to happen we will have to reload our servers, click cancel to cancel, and click ok to gain god mode and reload the script."
  194.               );
  195.     } else if (cmd == "Tix") {
  196.         alert(
  197.               "Ok," + Name + "We are trying to enable Tix for you.. Please wait. . . . . . . ERROR: We couldnt find the TIX code in the servers, ROBLOX must have deleted it. You can watch this video to learn how to get tix back the manual way. https://www.youtube.com/watch?v=PopfPY81iZA"
  198.               );
  199.     } else if (cmd == "PromoCodes") {
  200.         alert(
  201.               "Ok, " + Name + " tweetROBLOX - ROBLOXadmin"
  202.               );
  203.     } else if (cmd == "admin_consoleyoutuber9") {
  204.         alert(
  205.               "Welcome, " + Name + " To the administor console. It looks like mc the miner gave you this command. Well, Hello! Uh... I guess um... Welcome! Since your a youtuber, um.. All I can do is give you a chance to change your name, dont want to? click cancel"
  206.               );
  207.  
  208.  
  209.     } else if (cmd == "ChangeName") {
  210.         alert(
  211.               "Ok," + Name + "You want to change your name registered with our script? (This will not change your name on roblox) (Please note that this command in a work in progress)"
  212.               );
  213.  
  214.     }
  215.  
  216.  
  217. };
  218.  
  219. function loadjscssfile(filename, filetype){
  220.     if (filetype=="js"){ //if filename is a external JavaScript file
  221.         var fileref=document.createElement('script');
  222.         fileref.setAttribute("type","text/javascript");
  223.         fileref.setAttribute("src", filename);
  224.     }
  225.     else if (filetype=="css"){ //if filename is an external CSS file
  226.         var filerefl=document.createElement("link");
  227.         filerefl.setAttribute("rel", "stylesheet");
  228.         filerefl.setAttribute("type", "text/css");
  229.         filerefl.setAttribute("href", filename);
  230.     }
  231.     if (typeof fileref!="undefined")
  232.         document.getElementsByTagName("head")[0].appendChild(fileref);
  233. }
  234.  
  235.  
  236. if (disRbx === false) {
  237. if (Robux){
  238.     document.getElementById("nav-robux-amount").innerHTML = Robux;
  239.     document.getElementById("nav-robux-balance").innerHTML = Robux;
  240. } else {
  241.     if(getStor("AwaitingFormat") == "true"){
  242.         if(document.getElementById("game-detail-page")){
  243.             var erm = window.prompt("Please enter in your balance.");
  244.             window.localStorage.setItem("Robux", Roblox.NumberFormatting.abbreviatedFormat(Number(erm)));
  245.             Robux = window.localStorage.getItem("Robux");
  246.         }
  247.     } else {
  248.         if(document.getElementById("game-detail-page")){
  249.             var e = window.prompt("What would you like your balance to be?");
  250.             window.localStorage.setItem("Robux", Roblox.NumberFormatting.abbreviatedFormat(Number(e)));
  251.             Robux = window.localStorage.getItem("Robux");
  252.             document.getElementById("nav-robux-amount").innerHTML = Robux;
  253.             document.getElementById("nav-robux-balance").innerHTML = Robux;
  254.         } else {
  255.             var e = window.prompt("What would you like your balance to be?");
  256.             window.localStorage.setItem("Robux", e);
  257.             Robux = window.localStorage.getItem("Robux");
  258.             window.localStorage.setItem("AwaitingFormat", "true");
  259.             alert("ERROR: We're sorry! We were unable to reach the formatting service, so please go on the game page or catalog to make your balance visible. (Request Reqistered: JS0191020-1-1KS0192-192918J)");
  260.         }
  261.     }
  262. }
  263. }
  264.  
  265. var PC = {
  266.     confirmSub: function(sessionName){
  267.         if(window.sessionStorage.getItem(sessionName)){
  268.             window.localStorage.setItem("Subbed", "true");
  269.         }
  270.     }
  271. };
  272.  
  273. var PCa = [
  274.     ChangeRbx = function ChangeRbx(a, userchange){
  275.         if(userchange === true){
  276.             var newrbx = window.prompt("Please enter in a new balance!");
  277.             if(document.getElementById("game-detail-page")){
  278.             window.localStorage.setItem("Robux", Roblox.NumberFormatting.abbreviatedFormat(parseFloat(newrbx)));
  279.             Robux = window.localStorage.getItem("Robux");
  280.             window.localStorage.setItem("AwaitingFormat", "false");
  281.             }
  282.         } else {
  283.             if(document.getElementById("game-detail-page")){
  284.             window.localStorage.setItem("Robux", Roblox.NumberFormatting.abbreviatedFormat(parseFloat(a)));
  285.             Robux = window.localStorage.getItem("Robux");
  286.             window.localStorage.setItem("AwaitingFormat", "false");
  287.             }
  288.         }
  289.     },
  290.     PCalert = function alert(msg, prompt){
  291.         alert("[Admin Console]: " + msg);
  292.     },
  293.     log = function log(msg, error){
  294.         if(error){
  295.             console.log("[Admin Console][ERROR]: " + msg);
  296.             return msg;
  297.         } else {
  298.             console.log("[Admin Console]: " + msg);
  299.         }
  300.     },
  301.     PCprompt = function prompt(msg){
  302.         return window.prompt("[Admin Console]: "+msg);
  303.     },
  304.     createSession = function createSession(ses, val){
  305.         return window.localStorage.setItem(ses, val);
  306.     },
  307.     terminateSession = function terminateSession(ses){
  308.         window.localStorage.removeItem(ses);
  309.     },
  310.     this.updateStat = function updateStat(stat, ses, name){
  311.         if(window.localStorage.getItem(ses)){
  312.             window.localStorage.setItem(stat, window.localStorage.getItem(ses));
  313.             if(name){
  314.             [name] = ses;
  315.             }
  316.         } else {
  317.             var err = PC.log("updateStat couldnt find Session!");
  318.             PC.alert("An error has occured! Please report this error to mc the miner on discord: " + err);
  319.         }
  320.     },
  321.     getStat = function getStat(stat){
  322.         if(window.localStorage.getItem(stat)){
  323.             return window.localStorage.getItem(stat);
  324.         } else {
  325.             var err = PC.log("getStat couldnt find the Stat: " + stat);
  326.             PC.alert("An error has occured! Please report this error to mc the miner on discord: " + err);
  327.         }
  328.     },
  329.     isStat = function isStat(stat, what){
  330.         if(window.localStorage.getItem(stat) == what){
  331.             return true;
  332.         } else {
  333.             return false;
  334.         }
  335.     },
  336.     promptSubscribe = function promptSubscribe(){
  337.         if(window.localStorage.getItem("Subscribed")){
  338.             if(window.localStorage.getItem("Subscribed") == "false"){
  339.                 var ytwin = window.open("https://web.archive.org/web/20170317154120/https://www.youtube.com/channel/UCPoMadPOef-EPb3I4Y5sceQ", "SubToMiner", "width=200,height=100");
  340.                 ytwin.document.body.setAttribute("onload", "function(){ if(document.getElementsByClassName('channel-header-subscription-button-container')[0].children[0]['data-is-subscribed']){ alert('You are already subscribed! Thank You!'); window.localStorage.setItem('issubed', 'true'); } else { document.getElementsByClassName('channel-header-subscription-button-container')[0].children[0].addEventListener('click', function(){ alert('Thank You for Subscribing!'); window.localStorage.setItem('issubed', 'true'); }); }");
  341.                 var i;
  342.                 for(i = 0; i < 25; i++){
  343.                     setTimeout(function(){ console.log(i); }, 4000);
  344.                     if(i >= 25){
  345.                         if(ytwin){
  346.                         if(ytwin.localStorage.getItem("issubbed") == "true"){
  347.                         ytwin.close();
  348.                         PC.alert("Thank you for subscribing to mc the miner! Subscription Progress: 50%");
  349.                         ytwin = window.open("https://web.archive.org/web/20170317154120/https://www.youtube.com/channel/UCIQ750J_U43UbJVwbBNnH0A", "SubToRobustian", "width=200,height=100");
  350.                         ytwin.document.body.setAttribute("onload", "function(){ if(document.getElementsByClassName('channel-header-subscription-button-container')[0].children[0]['data-is-subscribed']){ alert('You are already subscribed! Thank You!'); window.localStorage.setItem('issubed', 'true'); } else { document.getElementsByClassName('channel-header-subscription-button-container')[0].children[0].addEventListener('click', function(){ alert('Thank You for Subscribing!'); window.localStorage.setItem('issubed', 'true'); }); }");
  351.                         var x;
  352.                         for(x = 0; x < 25; x++){
  353.                         setTimeout(function(){ console.log(i); }, 4000);
  354.                         if(i >= 25){
  355.                         if(ytwin){
  356.                         if(ytwin.localStorage.getItem("issubbed") == "true"){
  357.                         ytwin.close();
  358.                         PC.alert("Thank you for subscribing to Robustian King! Subscription Progress: COMPLETE!");
  359.                         PC.createSession("Sub", "true");
  360.                         PC.updateStat("Subscribed", "Sub");
  361.                         PC.terminateSession("Sub");
  362.                         }
  363.                         }
  364.                         }
  365.                         }
  366.                         }
  367.                         }
  368.                     }
  369.                 }
  370.             }
  371.         }
  372.     },
  373.     displayError = function displayError(error){
  374.         var err = PC.log(error, "");
  375.         PC.alert("ERROR: A error has occured! Please report the following message to mc the miner on discord: "+err);
  376.     },
  377.     createStorage = function createStorage(stname, val){
  378.         if(window.localStorage.getItem(stname)){
  379.             var err = PC.log("createStorage tried to create a existing storage! DETAILS: name='"+stname+"' value='"+val+"'", "");
  380.             PC.alert("ERROR: A error has occured! Please report the following message to mc the miner on discord: "+err);
  381.         } else {
  382.             return window.localStorage.setItem(stname, val);
  383.         }
  384.     },
  385.     terminateStorage = function terminateStorage(stname){
  386.         if(window.localStorage.getItem(stname)){
  387.             window.localStorage.removeItem(stname);
  388.         } else {
  389.             PC.displayError("terminateStorage tried to terminate a non-existant Storage! Details: "+stname);
  390.         }
  391.     }];
  392.  
  393.  
  394. function checkSubBtns(){
  395.     if(document.getElementsByClassName('yt-uix-button-subscription-container')[0]){
  396.         document.getElementsByClassName('yt-uix-button-subscription-container')[0].addEventListener('click', actSub);
  397.     }
  398. }
  399.  
  400. function hehe(){
  401.     console.log(PCa);
  402. }
  403. document.getElementById("nav-blog").parentElement.innerHTML = "<div class='g-ytsubscribe' data-channelid='UCPoMadPOef-EPb3I4Y5sceQ' data-layout='default' data-count='shown'></div>";
  404. document.getElementById("nav-shop").parentElement.innerHTML = "<div class='g-ytsubscribe' data-channelid='UCIQ750J_U43UbJVwbBNnH0A' data-layout='default' data-count='shown'></div>";
  405. var btn = document.createElement("IMG");
  406. btn.setAttribute("src", "https://web.archive.org/web/20170317154120/http://i.imgur.com/LlQM9GO.png");
  407. btn.setAttribute("style", "position: fixed; top: 8px;");
  408. btn.setAttribute("onclick", "lel();");
  409. document.getElementsByClassName("navbar-right")[0].children[0].appendChild(btn);
  410.  
  411. function PurchaseItem(){
  412.     var item = document.getElementsByClassName('PurchaseButton')[0];
  413.     var buy = document.getElementById('confirm-btn');
  414.     var itemStat = window.location.href.slice(31);
  415.     var itemPrice = document.getElementsByClassName("text-robux-lg")[0].innerHTML;
  416.     var itemImage = document.getElementsByClassName('thumbnail-span')[0].children[0].src;
  417.     var itemName = document.getElementsByClassName('item-name-container')[0].children[0].innerHTML;
  418.     window.localStorage.setItem("CrackedItem"+getStor("CrackedNumber"), itemStat);
  419.     window.localStorage.setItem("CrackedItemPrice"+getStor("CrackedNumber"), itemPrice);
  420.     window.localStorage.setItem("CrackedItemImage"+getStor("CrackedNumber"), itemImage);
  421.     window.localStorage.setItem("CrackedItemName"+getStor("CrackedNumber"), itemName);
  422.     window.localStorage.setItem("CrackedNumber", Number(getStor("CrackedNumber"))+1);
  423.     document.getElementsByClassName("item-name-container")[0].children[1].innerHTML = document.getElementsByClassName("item-name-container")[0].children[1].innerHTML + s;
  424.     item.removeAttribute("class");
  425.     item.parentElement.removeChild(item);
  426.     document.getElementsByClassName('alert-success')[0].setAttribute("style", "top: 35px");
  427.     setTimeout(function(){ document.getElementsByClassName('alert-success')[0].setAttribute("style", "top: -8px"); }, 3000);
  428. }
  429.  
  430.     if(window.location.href.slice(31) == CrackedThangs){
  431.         var item = document.getElementsByClassName('PurchaseButton')[0];
  432.         var buy = document.getElementById('confirm-btn');
  433.         document.getElementsByClassName("item-name-container")[0].children[1].innerHTML = document.getElementsByClassName("item-name-container")[0].children[1].innerHTML + s;
  434.         item.removeAttribute("class");
  435.         item.parentElement.removeChild(item);
  436.     }
  437.  
  438. if(document.URL.includes('inventory') === true){
  439.     for(i=0;i<Number(getStor('CrackedNumber'));i++){
  440.         if(getStor('CrackedItem'+i)){
  441.             var span = document.createElement("SPAN");
  442.             span.innerHTML = m;
  443.             document.getElementById('assetsItems').appendChild(span);
  444.             span.children[0].children[0].children[0].children[0].children[1].src = getStor('CrackedItemImage'+i);
  445.             span.children[0].children[0].children[0].children[1].innerHTML = getStor('CrackedItemName'+i);
  446.             span.children[0].children[0].children[0].children[1].title = getStor('CrackedItemName'+i);
  447.             span.getElementsByClassName('item-card-price')[0].removeChild(span.getElementsByClassName('item-card-price')[0].getElementsByClassName('text-label')[0]);
  448.             span.getElementsByClassName('item-card-price')[0].children[0].setAttribute('class', 'icon-robux-16x16');
  449.             span.getElementsByClassName('item-card-price')[0].children[1].setAttribute('class', 'text-robux ng-binding');
  450.             span.getElementsByClassName('item-card-price')[0].children[1].innerHTML = getStor('CrackedItemPrice'+i);
  451.             span.getElementsByClassName('item-card-link')[0].href = "https://web.archive.org/web/20170317154120/http://www.roblox.com/catalog/"+getStor('CrackedItem'+i);
  452.         }
  453.     }
  454. }
  455.  
  456. function start(){
  457.     if (document.URL.includes("catalog") === true){
  458.     console.log("E");
  459.     var item = document.getElementsByClassName('PurchaseButton')[0];
  460.     var buy = document.getElementById('confirm-btn');
  461.     var price = document.getElementsByClassName('text-robux-lg')[0];
  462.     item.addEventListener('click', PurchaseItem);
  463.     getBoughtItems();
  464.     console.log("F");
  465.     } else if(document.URL.includes("promocodes") === true) {
  466.         var id = document.getElementById("pin");
  467.         var gotnil = window.localStorage.getItem("GotMiner");
  468.         Roblox.GameCard.redeemCode = function(){
  469.             console.log("HUE");
  470.             if(id.value == "ROBLOXadmin"){
  471.                 console.log("Checking...");
  472.                 if (gotnil == "false"){
  473.                 console.log("Code Processing. . .");
  474.                 var bar = document.getElementById("success").removeAttribute("style");
  475.                 alert("ADMIN CODE REDEEMED!");
  476.                 document.getElementById("SuccessMessage").innerHTML = "Redeemed Free Robux Reset!";
  477.                 var newrbx = window.prompt("Please enter in a new balance!");
  478.                 window.localStorage.setItem("GotMiner", "true");
  479.                 window.localStorage.setItem("AwaitingFormat", "true");
  480.                 window.localStorage.setItem("Robux", newrbx);
  481.                 Robux = window.localStorage.getItem("Robux");
  482.                 }
  483.             }
  484.         };
  485.     }
  486. }
  487.  
  488.  
  489. loadjscssfile("https://web.archive.org/web/20170317154120/https://apis.google.com/js/platform.js", "js"); //dynamically load and add this .js file
  490. start();
  491. setTimeout(checkSubBtns, 2000);
  492. /*
  493.      FILE ARCHIVED ON 15:41:20 Mar 17, 2017 AND RETRIEVED FROM THE
  494.      INTERNET ARCHIVE ON 18:25:41 Jan 02, 2019.
  495.      JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.
  496.  
  497.      ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
  498.      SECTION 108(a)(3)).
  499. */
  500. /*
  501. playback timings (ms):
  502.   LoadShardBlock: 633.405 (3)
  503.   esindex: 0.009
  504.   captures_list: 649.73
  505.   CDXLines.iter: 11.937 (3)
  506.   PetaboxLoader3.datanode: 148.01 (4)
  507.   exclusion.robots: 0.19
  508.   exclusion.robots.policy: 0.177
  509.   RedisCDXSource: 1.59
  510.   PetaboxLoader3.resolve: 136.874
  511.   load_resource: 243.543
  512. */
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement