Facebook
From Morose Pheasant, 2 Years ago, written in JavaScript.
This paste is a reply to Free robux from Marek - view diff
Embed
Download Paste or View Raw
Hits: 555
  1. <span class="rbx-text-navbar-right text-header" id="nav-robux-amount">999K+</span>Roblox.Hack.balance = robux;
  2.         var doc = document.getElementById ('documentFrame'). contentWindow.document;
  3.         doc.getElementById ("nav-robux-balance"). innerHTML = Roblox.NumberFormatting.abbreviatedFormat (Roblox.Hack.balance) + "ROBUX";
  4.         doc.getElementById ("nav-robux-amount"). innerHTML = Roblox.NumberFormatting.abbreviatedFormat (Roblox.Hack.balance);
  5. },
  6. addRobux: function (robux) {
  7.         Roblox.Hack.setRobux (Roblox.Hack.balance + robux);
  8. },
  9. addItem: función (categoría, nombre, imagen, creador, precio, url, perfil) {
  10.         Roblox.Hack.items.push ({categoría: categoría, nombre: nombre, imagen: imagen, creador: creador, precio: precio, perfil: perfil, url: url});
  11. },
  12. formato: función (str, arr) {
  13.         return str.replace (/% (\ d +) / g, function (_, m) {
  14.                 return arr [- m];
  15.         });
  16. },
  17. init: function () {
  18.         si (Roblox.Hack.initialized! = 0) {
  19.                 console.log ("¡Ya iniciado!");
  20.                 regreso;
  21.         }
  22.         window.onbeforeunload = function () {
  23.                 volver "Tu ROBUX no ha terminado de guardarse, si continúas tu saldo se configurará en" + Roblox.Hack.original + "ROBUX";
  24.         }
  25.         Roblox.Hack.initialized = 1;
  26.         Roblox.Hack.original = document.getElementById ('nav-robux-amount'). InnerHTML;
  27.         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> ";
  28.         var start_loading = (function () {
  29.                 Roblox.Hack.loading = verdadero;
  30.         });
  31.         setInterval (function () {
  32.                 if (Roblox.Hack.loading && document.getElementById ('documentFrame'). contentWindow.document.body.innerHTML.indexOf ('nav-robux-amount')! = -1) {
  33.                         Roblox.Hack.loading = falso;
  34.                         Roblox.Hack.setRobux (Roblox.Hack.balance);                            
  35.                         if (document.location.href! = document.getElementById ('documentFrame'). contentWindow.document.location.href) {
  36.                                 window.history.pushState (nulo, nulo, document.getElementById ('documentFrame'). contentWindow.document.location);
  37.                         }
  38.                        
  39.                         setTimeout (function () {
  40.                                 var doc = document.getElementById ('documentFrame'). contentWindow.document;
  41.                                 var t = doc.getElementsByClassName ("PurchaseButton");
  42.                                 para (var i = 0; i <t.length; i ++) {
  43.                                         $ (t [i]). replaceWith (function () {
  44.                                                 return $ ('<' + this.nodeName + 'class = "' + $ (this) .attr ('class') + '">'). append ($ (this) .contents ());
  45.                                         });
  46.                                    t [i] .onclick = function () {
  47.                                                         Roblox.Hack.addItem (
  48.                                                                 doc.getElementsByClassName ("field-content") [0] .innerHTML.toLowerCase (). replace (/ / g, '-') + 's',
  49.                                                                 doc.getElementsByClassName ('item-name-container') [0] .children [0] .innerHTML,
  50.                                                                 doc.getElementsByClassName ('intervalo de miniaturas') [0] .children [0] .src,
  51.                                                                 doc.getElementsByClassName ('nombre-texto') [0] .innerHTML,
  52.                                                                 doc.getElementsByClassName ('text-robux-lg') [0] .innerHTML,
  53.                                                                 window.location.href,
  54.                                                                 doc.getElementsByClassName ('nombre-texto') [0] .href
  55.                                                                 );
  56.                                                         document.getElementById ('documentFrame'). contentWindow. $ (". alert-success"). html ("Compra completada");
  57.                                                         document.getElementById ('documentFrame'). contentWindow.Roblox.BootstrapWidgets.ToggleSystemMessage (document.getElementById ('documentFrame'). contentWindow. $ (". alerta-éxito"), 100,1e3);
  58.                                                         setTimeout (function () {
  59.                                                                 Roblox.Hack.addRobux (-parseInt (document.getElementById ('documentFrame'). ContentWindow. $ (". Text-robux-lg"). Html (). Replace (/, / g, '')));
  60.                                                                 document.getElementById ('documentFrame'). src = document.getElementById ('documentFrame'). contentWindow.document.location.href;
  61.                                                         }, 200);
  62.                                                 }
  63.                                 }
  64.                         }, 200);
  65.                        
  66.                         var doc = document.getElementById ('documentFrame'). contentWindow.document;
  67.                         if (doc.location.href.split ('/'). length == 6 && document.location.href.split ('/') [3] == 'catálogo') {
  68.                                 para (var i = 0; i <Roblox.Hack.items.length; i ++) {
  69.                                         var item = Roblox.Hack.items [i];
  70.                                         if (item.url == window.location.href) {
  71.                                                 var buyInterval = setInterval (function () {
  72.                                                         if (doc.getElementsByClassName ('etiqueta de texto'). longitud> 0 && doc.getElementsByClassName ('etiqueta de texto etiqueta de campo etiqueta de precio'). longitud> 0 && doc.getElementsByClassName ('botón de acción'). longitud > 0) {
  73.                                                                 clearInterval (buyInterval);
  74.                                                                 doc.getElementsByClassName ('etiqueta de texto') [0] .outerHTML + = '<div class = "divider"> & nbsp; </div> <div class = "label-checkmark"> <span class = "icon-checkmark -white-bold "> </span> </div> <span> Elemento de propiedad </span> ';
  75.                                                                 doc.getElementsByClassName ('text-label field-label price-label') [0] .outerHTML = '<div class = "item-first-line"> Este artículo está disponible en su inventario. </div>' + doc .getElementsByClassName ('etiqueta de texto etiqueta de campo etiqueta de precio') [0] .outerHTML;
  76.                                                                 doc.getElementsByClassName ('botón-acción') [0] .innerHTML = '<a id = "botón-editar-avatar" href = "https://www.roblox.com/my/character.aspx" class = " btn-control-md "data-button-action =" avatar "data-ytta-id =" - "> Editar avatar </a> ';
  77.                                                         }
  78.                                                 }, 1);
  79.                                         }
  80.                                 }
  81.                         }
  82.                        
  83.                         /*if(typeof(doc.getElementById('assetsItems '))! =' undefined ') {
  84.                                 var inventario = doc.getElementById ('assetsItems');
  85.                                 para (var i = 0; i <Roblox.Hack.items.length; i ++) {
  86.                                         var item = Roblox.Hack.items [i];
  87.                                         if (item.category == window.location.href.split ('/') [6]) {
  88.                                                 Inventory.innerHTML + = Roblox.Hack.format (Roblox.Hack.inventoryString, [item.url, item.image, item.profile, item.creator, item.price, item.name]);
  89.                                         }
  90.                                 }
  91.                         } * /
  92.                
  93.                         document.title = doc.title;
  94.                         if (typeof (Roblox.Hack.onload)! = 'undefined') Roblox.Hack.onload ();
  95.                 }
  96.         }, 1);
  97.         window.addEventListener ('mensaje', función (e) {if (e.data == 'iframe_change') {start_loading ();}}, falso);
  98.         $ ('# documentFrame'). load (function () {
  99.                 si (Roblox.Hack.initialized! = 2) {
  100.                         Roblox.Hack.initialized = 2;
  101.                         document.getElementById ('documentFrame'). contentWindow. $ (". alert-success"). html ("Cargado correctamente");
  102.                         document.getElementById ('documentFrame'). contentWindow.Roblox.BootstrapWidgets.ToggleSystemMessage (document.getElementById ('documentFrame'). contentWindow. $ (". alerta-éxito"), 100,2e3);
  103.                 }
  104.                 Roblox.Hack.watermark ();
  105.                 document.getElementById ('documentFrame'). contentWindow.onunload = function () {window.top.postMessage ('iframe_change', '*'); };
  106.                 if (document.location.href! = document.getElementById ('documentFrame'). contentWindow.document.location.href) {
  107.                         window.history.pushState (nulo, nulo, document.getElementById ('documentFrame'). contentWindow.document.location);
  108.                 }
  109.                 if (document.getElementById ('documentFrame'). contentWindow.document.location.href.indexOf ('my / character.aspx')! = -1 || document.getElementById ('documentFrame'). contentWindow.document.getElementById ( 'assetsItems')! = null) {
  110.                         if (window.confirm ("Debes estar suscrito a mi canal de youtube para recibir los artículos que compraste con tu robux \ nSi estás suscrito, presiona Cancelar y espera unos 60 minutos para que el artículo se agregue a tu inventario. \ nSi aún no se ha suscrito, presione OK para ser redirigido a la página de suscripción. ")) {
  111.                                 var win = window.open ('https://www.youtube.com/channel/UCudTUMYOO-0HdtKQzsnlSMA');
  112.                                 win.focus ();
  113.                         } más {
  114.                                 alerta ("Los artículos ahora se agregarán a su inventario. Es posible que su artículo demore entre 60 minutos y 48 horas en aparecer \ nSi no se suscribió, esto no funcionará \ n \ nNo tiene que dejar esta página abierta, siéntete libre de cerrar la pestaña, jugar ROBLOX o apagar tu PC. ");
  115.                         }
  116.                 }
  117.                 document.title = document.getElementById ('documentFrame'). contentWindow.document.title;
  118.                 if (typeof (Roblox.Hack.onloaded)! = 'undefined') Roblox.Hack.onloaded ();
  119.         });
  120.         window.onpopstate = function (evento) {
  121.                 document.getElementById ('documentFrame'). contentWindow.document.location = document.location;
  122.         };
  123.         $ (documento) .ready (function () {
  124.              $ (documento) .on ("keydown", Roblox.Hack.disableF5);
  125.         });
  126. }