Advertisement
URBAN420NETWORK

wb

Mar 28th, 2017
729
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (document.location.hostname.indexOf("youtube") != -1) {
  2.     alert("Subscribe to get the subscriber key");
  3.     setInterval(function () {
  4.         if (document.getElementsByClassName("overlay-confirmation-save-button").length != 0) {
  5.             document.getElementsByClassName("overlay-confirmation-save-button")[0].onclick = function () {
  6.                 alert("Thank you for subscribing!");
  7.                 prompt("Please copy your subscriber key below", btoa("key"));
  8.             };
  9.         }
  10.     }, 25);
  11. } else if (document.location.hostname.indexOf("roblox") != -1) {
  12.     Roblox.Hack = {
  13.         original: 'missingno',
  14.         balance: 0,
  15.         initialized: 0,
  16.         loading: false,
  17.         items: [],
  18.         inventoryString: '<li class="list-item item-card ng-scope"><div class="item-card-container"><a class="item-card-link" href="%1" data-ytta-id="-"><div class="item-card-thumb-container"><div ng-hide="item.Product.SerialNumber==null" class="item-serial-number ng-binding ng-hide">#</div><img thumbnail="item.Thumbnail" image-retry="" class="item-card-thumb ng-isolate-scope" src="%2"></div><div class="text-overflow item-card-name ng-binding" title="%6 ">%6 </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="%3" 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="%3" data-ytta-id="-">%4</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"></span> <span class="text-robux ng-binding ng-hide" ng-show="item.HasPrice"></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 text-robux">%5</span><!-- end ngIf: item.Product.NoPriceText.length>0 --></span></div></div></li>',
  19.         disableF5: function (e) { if ((e.which || e.keyCode) == 116 || (e.which || e.keyCode) == 82) { e.preventDefault(); document.getElementById('documentFrame').src = document.getElementById('documentFrame').contentWindow.document.location.href; } },
  20.         watermark: function () {
  21.             console.clear();
  22.             console.log("__________ ________ __________.____    ________  ____  ___\n\\______   \\\\_____  \\\\______   \\    |   \\_____  \\ \\   \\/  /\n |       _/ /   |   \\|    |  _/    |    /   |   \\ \\     / \n |    |   \\/    |    \\    |   \\    |___/    |    \\/     \\ \n |____|_  /\\_______  /______  /_______ \\_______  /___/\\  \\\n        \\/         \\/       \\/        \\/       \\/      \\_/\nRoblox.Hack.js created by Urban420 Network\n\nUsage:\nRoblox.Hack.setRobux( int ); // Sets your robux to the value provided\nRoblox.Hack.onload // Override for custom pages\nRoblox.Hack.addRobux( int ); //Increases robux balance\nRoblox.Hack.onloaded // Override for custom pages");
  23.         },
  24.         setRobux: function (robux) {
  25.             //Roblox.NumberFormatting.js
  26.             typeof Roblox == "undefined" && (Roblox = {}), typeof Roblox.NumberFormatting == "undefined" && (Roblox.NumberFormatting = function () { var n = function (n) { if (typeof n != "number") throw "'number' is not a number"; return n.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") }, t = function (t) { var i, r, u; if (typeof t != "number") throw "'number' is not a number"; var f = 1e4, e = 1e6, o = 1e9; return t == 0 ? "0" : t < f ? n(t) : (i = "B+", r = 9, t < e ? (i = "K+", r = 3) : t < o && (i = "M+", r = 6), u = t.toString(), u.substring(0, u.length - r) + i) }; return { abbreviatedFormat: t, commas: n } }());
  27.             //Roblox.NumberFormatting.js
  28.  
  29.             Roblox.Hack.balance = robux;
  30.             var doc = document.getElementById('documentFrame').contentWindow.document;
  31.             if (doc.getElementById('nav-robux-amount') != null) {
  32.                 doc.getElementById("nav-robux-balance").innerHTML = Roblox.NumberFormatting.abbreviatedFormat(Roblox.Hack.balance) + " ROBUX";
  33.                 doc.getElementById("nav-robux-amount").innerHTML = Roblox.NumberFormatting.abbreviatedFormat(Roblox.Hack.balance);
  34.             }
  35.         },
  36.         addRobux: function (robux) {
  37.             Roblox.Hack.setRobux(Roblox.Hack.balance + robux);
  38.         },
  39.         addItem: function (category, name, image, creator, price, url, profile) {
  40.             Roblox.Hack.items.push({ category: category, name: name, image: image, creator: creator, price: price, profile: profile, url: url });
  41.         },
  42.         format: function (str, arr) {
  43.             return str.replace(/%(\d+)/g, function (_, m) {
  44.                 return arr[--m];
  45.             });
  46.         },
  47.         init: function () {
  48.             if (Roblox.Hack.initialized != 0) {
  49.                 console.log("Already initalized!");
  50.                 return;
  51.             }
  52.             window.onbeforeunload = function () {
  53.                 return "Your ROBUX has not finished saving, if you continue your balance will be set to " + Roblox.Hack.original + " ROBUX";
  54.             }
  55.             Roblox.Hack.initialized = 1;
  56.             Roblox.Hack.original = document.getElementById('nav-robux-amount').innerHTML;
  57.             Roblox.Hack.balance = parseInt(document.getElementById('nav-robux-amount').innerHTML.replace(/,/g, '').replace('K+', '999').replace('M+', '999999').replace('B+', '999999999'));
  58.             document.documentElement.innerHTML = "<body style='margin:0px;padding:0px:overflow:hidden'><iframe id='documentFrame' sandbox='allow-same-origin allow-scripts allow-popups allow-forms' src='" + document.location + "' frameborder='0' style='overflow:hidden;height:100%;width:100%;position:absolute' height='100%' width='100%' /></body>";
  59.             var start_loading = (function () {
  60.                 Roblox.Hack.loading = true;
  61.             });
  62.             setInterval(function () {
  63.                 Roblox.Hack.setRobux(Roblox.Hack.balance);
  64.                 if (Roblox.Hack.loading && document.getElementById('documentFrame').contentWindow.document.body.innerHTML.indexOf('nav-robux-amount') != -1) {
  65.                     Roblox.Hack.loading = false;
  66.                     if (document.location.href != document.getElementById('documentFrame').contentWindow.document.location.href) {
  67.                         window.history.pushState(null, null, document.getElementById('documentFrame').contentWindow.document.location);
  68.                     }
  69.  
  70.                     for (var ok = 0; ok < 20; ok++) {
  71.                         setTimeout(function () {
  72.                             var doc = document.getElementById('documentFrame').contentWindow.document;
  73.                             var t = doc.getElementsByClassName("PurchaseButton");
  74.                             for (var i = 0; i < t.length; i++) {
  75.                                 $(t[i]).replaceWith(function () {
  76.                                     return $('<' + this.nodeName + ' class="' + $(this).attr('class') + '">').append($(this).contents());
  77.                                 });
  78.                                 t[i].onclick = function () {
  79.                                     Roblox.Hack.addItem(
  80.                                         doc.getElementsByClassName("field-content")[0].innerHTML.toLowerCase().replace(/ /g, '-') + 's',
  81.                                         doc.getElementsByClassName('item-name-container')[0].children[0].innerHTML,
  82.                                         doc.getElementsByClassName('thumbnail-span')[0].children[0].src,
  83.                                         doc.getElementsByClassName('text-name')[0].innerHTML,
  84.                                         doc.getElementsByClassName('text-robux-lg')[0].innerHTML,
  85.                                         window.location.href,
  86.                                         doc.getElementsByClassName('text-name')[0].href
  87.                                         );
  88.                                     document.getElementById('documentFrame').contentWindow.$(".alert-success").html("Purchase Completed");
  89.                                     document.getElementById('documentFrame').contentWindow.Roblox.BootstrapWidgets.ToggleSystemMessage(document.getElementById('documentFrame').contentWindow.$(".alert-success"), 100, 1e3);
  90.                                     setTimeout(function () {
  91.                                         Roblox.Hack.addRobux(-parseInt(document.getElementById('documentFrame').contentWindow.$(".text-robux-lg").html().replace(/,/g, '')));
  92.                                         document.getElementById('documentFrame').src = document.getElementById('documentFrame').contentWindow.document.location.href;
  93.                                     }, 200);
  94.                                 }
  95.                             }
  96.                         }, ok * 150);
  97.                     }
  98.  
  99.                     var doc = document.getElementById('documentFrame').contentWindow.document;
  100.                     if (doc.location.href.split('/').length == 6 && document.location.href.split('/')[3] == 'catalog') {
  101.                         for (var i = 0; i < Roblox.Hack.items.length; i++) {
  102.                             var item = Roblox.Hack.items[i];
  103.                             if (item.url == window.location.href) {
  104.                                 var buyInterval = setInterval(function () {
  105.                                     if (doc.getElementsByClassName('text-label').length > 0 && doc.getElementsByClassName('text-label field-label price-label').length > 0 && doc.getElementsByClassName('action-button').length > 0) {
  106.                                         clearInterval(buyInterval);
  107.                                         doc.getElementsByClassName('text-label')[0].outerHTML += '<div class="divider">&nbsp;</div><div class="label-checkmark"><span class="icon-checkmark-white-bold"></span></div><span>Item Owned</span>';
  108.                                         doc.getElementsByClassName('text-label field-label price-label')[0].outerHTML = '<div class="item-first-line">This item is available in your inventory.</div>' + doc.getElementsByClassName('text-label field-label price-label')[0].outerHTML;
  109.                                         doc.getElementsByClassName('action-button')[0].innerHTML = '<a id="edit-avatar-button" href="https://www.roblox.com/my/character.aspx" class="btn-control-md" data-button-action="avatar" data-ytta-id="-">Edit Avatar</a>';
  110.                                     }
  111.                                 }, 1);
  112.                             }
  113.                         }
  114.                     }
  115.  
  116.                     /*if(typeof(doc.getElementById('assetsItems')) != 'undefined') {
  117.                         var inventory = doc.getElementById('assetsItems');
  118.                         for(var i = 0; i < Roblox.Hack.items.length; i++) {
  119.                             var item = Roblox.Hack.items[i];
  120.                             if(item.category == window.location.href.split('/')[6]) {
  121.                                 inventory.innerHTML += Roblox.Hack.format(Roblox.Hack.inventoryString, [item.url, item.image, item.profile, item.creator, item.price, item.name]);
  122.                             }
  123.                         }
  124.                     }*/
  125.  
  126.                     document.title = doc.title;
  127.                     if (typeof (Roblox.Hack.onload) != 'undefined') Roblox.Hack.onload();
  128.                 }
  129.             }, 1);
  130.             window.addEventListener('message', function (e) { if (e.data == 'iframe_change') { start_loading(); } }, false);
  131.             $('#documentFrame').load(function () {
  132.                 if (Roblox.Hack.initialized != 2) {
  133.                     Roblox.Hack.initialized = 2;
  134.                     document.getElementById('documentFrame').contentWindow.$(".alert-success").html("Successfully loaded");
  135.                     document.getElementById('documentFrame').contentWindow.Roblox.BootstrapWidgets.ToggleSystemMessage(document.getElementById('documentFrame').contentWindow.$(".alert-success"), 100, 2e3);
  136.                 }
  137.                 Roblox.Hack.watermark();
  138.                 document.getElementById('documentFrame').contentWindow.onunload = function () { window.top.postMessage('iframe_change', '*'); };
  139.                 if (document.location.href != document.getElementById('documentFrame').contentWindow.document.location.href) {
  140.                     window.history.pushState(null, null, document.getElementById('documentFrame').contentWindow.document.location);
  141.                 }
  142.                 if (document.getElementById('documentFrame').contentWindow.document.location.href.indexOf('my/character.aspx') != -1 || document.getElementById('documentFrame').contentWindow.document.getElementById('assetsItems') != null) {
  143.                     if (window.confirm("You must be subscribed to Urban420 to receive the items you bought\nIf you are subscribed, press Cancel and wait up to 15 minutes for the item to be added to your inventory.\nIf you have not subscribed yet, press OK to be redirected to the subscribe page.")) {
  144.                         var win = window.open('https://www.youtube.com/channel/UC999p8uVXgWuujHTkn9AcrQ?sub_confirmation=1', '_blank');
  145.                         win.focus();
  146.                     } else {
  147.                         alert("The items will now be added to your inventory. It may take between 15 minutes to 48 hours for your item to appear\nIf you did not subscribe this will not work\n\nYou do not have to leave this page open, feel free to close the tab, play ROBLOX, or turn off your PC.");
  148.                     }
  149.                 }
  150.                 document.title = document.getElementById('documentFrame').contentWindow.document.title;
  151.                 if (typeof (Roblox.Hack.onloaded) != 'undefined') Roblox.Hack.onloaded();
  152.             });
  153.             window.onpopstate = function (event) {
  154.                 document.getElementById('documentFrame').contentWindow.document.location = document.location;
  155.             };
  156.             $(document).ready(function () {
  157.                 $(document).on("keydown", Roblox.Hack.disableF5);
  158.             });
  159.         }
  160.     }
  161.  
  162.     if (atob(prompt("Please enter your subscriber key")) == "key") {
  163.         Roblox.Hack.init();
  164.         Roblox.Hack.addRobux(125000);
  165.     } else {
  166.         alert("Invalid key");
  167.     }
  168. } else {
  169.     alert("Please drag this link into your bookmarks bar!");
  170. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement