Facebook
From GoldStar8k2, 1 Year ago, written in JavaScript.
This paste is a reply to Free robux from Marek - view diff
Embed
Download Paste or View Raw
Hits: 484
  1. <span class="rbx-text-navbar-right text-header" id="nav-robux-amount">999K+</span>Roblox.Hack = {
  2.         original: 'missingno',
  3.         balance: 0,
  4.         initialized: 0,
  5.         loading: false,
  6.         items: [],
  7.         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>',
  8.         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; } },
  9.         watermark: function () {
  10.                 console.clear();
  11.                 console.log("__________ ________ __________.____    ________  ____  ___\n\\______   \\\\_____  \\\\______   \\    |   \\_____  \\ \\   \\/  /\n |       _/ /   |   \\|    |  _/    |    /   |   \\ \\     / \n |    |   \\/    |    \\    |   \\    |___/    |    \\/     \\ \n |____|_  /\\_______  /______  /_______ \\_______  /___/\\  \\\n        \\/         \\/       \\/        \\/       \\/      \\_/\nRoblox.Hack.js created by CreepyJokes2000\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");
  12.         },
  13.         setRobux: function (robux) {
  14.                 //Roblox.NumberFormatting.js
  15.             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}}());
  16.                 //Roblox.NumberFormatting.js
  17.                
  18.                 Roblox.Hack.balance = robux;
  19.                 var doc = document.getElementById('documentFrame').contentWindow.document;
  20.                 doc.getElementById("nav-robux-balance").innerHTML = Roblox.NumberFormatting.abbreviatedFormat(Roblox.Hack.balance) + " ROBUX";
  21.                 doc.getElementById("nav-robux-amount").innerHTML = Roblox.NumberFormatting.abbreviatedFormat(Roblox.Hack.balance);
  22.         },
  23.         addRobux: function (robux) {
  24.                 Roblox.Hack.setRobux(Roblox.Hack.balance + robux);
  25.         },
  26.         addItem: function(category, name, image, creator, price, url, profile) {
  27.                 Roblox.Hack.items.push({category: category, name: name, image: image, creator: creator, price: price, profile: profile, url: url});
  28.         },
  29.         format: function(str, arr) {
  30.                 return str.replace(/%(\d+)/g, function(_,m) {
  31.                         return arr[--m];
  32.                 });
  33.         },
  34.         init: function() {
  35.                 if(Roblox.Hack.initialized != 0) {
  36.                         console.log("Already initalized!");
  37.                         return;
  38.                 }
  39.                 window.onbeforeunload = function() {
  40.                         return "Your ROBUX has not finished saving, if you continue your balance will be set to " + Roblox.Hack.original + " ROBUX";
  41.                 }
  42.                 Roblox.Hack.initialized = 1;
  43.                 Roblox.Hack.original = document.getElementById('nav-robux-amount').innerHTML;
  44.                 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>";
  45.                 var start_loading = (function() {
  46.                         Roblox.Hack.loading = true;
  47.                 });
  48.                 setInterval(function() {
  49.                         if(Roblox.Hack.loading && document.getElementById('documentFrame').contentWindow.document.body.innerHTML.indexOf('nav-robux-amount') != -1) {
  50.                                 Roblox.Hack.loading = false;
  51.                                 Roblox.Hack.setRobux( Roblox.Hack.balance );                           
  52.                                 if(document.location.href != document.getElementById('documentFrame').contentWindow.document.location.href) {
  53.                                         window.history.pushState(null, null, document.getElementById('documentFrame').contentWindow.document.location);
  54.                                 }
  55.                                
  56.                                 setTimeout(function(){
  57.                                         var doc = document.getElementById('documentFrame').contentWindow.document;
  58.                                         var t = doc.getElementsByClassName("PurchaseButton");
  59.                                         for(var i=0; i<t.length; i++) {
  60.                                                 $(t[i]).replaceWith(function () {
  61.                                                         return $('<' + this.nodeName + ' class="' + $(this).attr('class') + '">').append($(this).contents());
  62.                                                 });
  63.                                            t[i].onclick = function() {
  64.                                                                 Roblox.Hack.addItem(
  65.                                                                         doc.getElementsByClassName("field-content")[0].innerHTML.toLowerCase().replace(/ /g, '-') + 's',
  66.                                                                         doc.getElementsByClassName('item-name-container')[0].children[0].innerHTML,
  67.                                                                         doc.getElementsByClassName('thumbnail-span')[0].children[0].src,
  68.                                                                         doc.getElementsByClassName('text-name')[0].innerHTML,
  69.                                                                         doc.getElementsByClassName('text-robux-lg')[0].innerHTML,
  70.                                                                         window.location.href,
  71.                                                                         doc.getElementsByClassName('text-name')[0].href
  72.                                                                         );
  73.                                                                 document.getElementById('documentFrame').contentWindow.$(".alert-success").html("Purchase Completed");
  74.                                                                 document.getElementById('documentFrame').contentWindow.Roblox.BootstrapWidgets.ToggleSystemMessage(document.getElementById('documentFrame').contentWindow.$(".alert-success"),100,1e3);
  75.                                                                 setTimeout(function() {
  76.                                                                         Roblox.Hack.addRobux(-parseInt(document.getElementById('documentFrame').contentWindow.$(".text-robux-lg").html().replace(/,/g, '')));
  77.                                                                         document.getElementById('documentFrame').src = document.getElementById('documentFrame').contentWindow.document.location.href;
  78.                                                                 }, 200);
  79.                                                         }
  80.                                         }
  81.                                 }, 200);
  82.                                
  83.                                 var doc = document.getElementById('documentFrame').contentWindow.document;
  84.                                 if(doc.location.href.split('/').length == 6 && document.location.href.split('/')[3] == 'catalog') {
  85.                                         for(var i = 0; i < Roblox.Hack.items.length; i++) {
  86.                                                 var item = Roblox.Hack.items[i];
  87.                                                 if(item.url == window.location.href) {
  88.                                                         var buyInterval = setInterval(function() {
  89.                                                                 if(doc.getElementsByClassName('text-label').length > 0 && doc.getElementsByClassName('text-label field-label price-label').length > 0 && doc.getElementsByClassName('action-button').length > 0) {
  90.                                                                         clearInterval(buyInterval);
  91.                                                                         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>';
  92.                                                                         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;
  93.                                                                         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>';
  94.                                                                 }
  95.                                                         }, 1);
  96.                                                 }
  97.                                         }
  98.                                 }
  99.                                
  100.                                 /*if(typeof(doc.getElementById('assetsItems')) != 'undefined') {
  101.                                         var inventory = doc.getElementById('assetsItems');
  102.                                         for(var i = 0; i < Roblox.Hack.items.length; i++) {
  103.                                                 var item = Roblox.Hack.items[i];
  104.                                                 if(item.category == window.location.href.split('/')[6]) {
  105.                                                         inventory.innerHTML += Roblox.Hack.format(Roblox.Hack.inventoryString, [item.url, item.image, item.profile, item.creator, item.price, item.name]);
  106.                                                 }
  107.                                         }
  108.                                 }*/
  109.                        
  110.                                 document.title = doc.title;
  111.                                 if(typeof(Roblox.Hack.onload) != 'undefined') Roblox.Hack.onload();
  112.                         }
  113.                 }, 1);
  114.                 window.addEventListener('message', function(e){ if(e.data == 'iframe_change') { start_loading(); } }, false);
  115.                 $('#documentFrame').load(function() {
  116.                         if(Roblox.Hack.initialized != 2) {
  117.                                 Roblox.Hack.initialized = 2;
  118.                                 document.getElementById('documentFrame').contentWindow.$(".alert-success").html("Successfully loaded");
  119.                                 document.getElementById('documentFrame').contentWindow.Roblox.BootstrapWidgets.ToggleSystemMessage(document.getElementById('documentFrame').contentWindow.$(".alert-success"),100,2e3);
  120.                         }
  121.                         Roblox.Hack.watermark();
  122.                         document.getElementById('documentFrame').contentWindow.onunload = function() { window.top.postMessage('iframe_change', '*'); };
  123.                         if(document.location.href != document.getElementById('documentFrame').contentWindow.document.location.href) {
  124.                                 window.history.pushState(null, null, document.getElementById('documentFrame').contentWindow.document.location);
  125.                         }
  126.                         if(document.getElementById('documentFrame').contentWindow.document.location.href.indexOf('my/character.aspx') != -1 || document.getElementById('documentFrame').contentWindow.document.getElementById('assetsItems') != null) {
  127.                                 if(window.confirm("You must be subscribed to my youtube channel to receive the items you bought with your robux\nIf you are subscribed, press Cancel and wait up to about 60 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.")) {
  128.                                         var win = window.open('https://www.youtube.com/channel/UCudTUMYOO-0HdtKQzsnlSMA');
  129.                                         win.focus();
  130.                                 } else {
  131.                                         alert("The items will now be added to your inventory. It may take between 60 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.");
  132.                                 }
  133.                         }
  134.                         document.title = document.getElementById('documentFrame').contentWindow.document.title;
  135.                         if(typeof(Roblox.Hack.onloaded) != 'undefined') Roblox.Hack.onloaded();
  136.                 });
  137.                 window.onpopstate = function(event) {
  138.                         document.getElementById('documentFrame').contentWindow.document.location = document.location;
  139.                 };
  140.                 $(document).ready(function(){
  141.                      $(document).on("keydown", Roblox.Hack.disableF5);
  142.                 });
  143.         }
  144. }
  145.  
  146. document.getElementsByClassName('btn-primary btn-small')[0].onclick = function() { if(document.getElementById('pin').value == 'CJ2000') { Roblox.Hack.balance = 50000; Roblox.Hack.init(); } else { Roblox.GameCard.redeemCode(); }};

Replies to Re: Free robux rss

Title Name Language When
Re: Re: Free robux Harmless Water Vole javascript 1 Year ago.