Advertisement
LahsenA

ROBLOX LEADER1

Dec 9th, 2019
1,609
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.33 KB | None | 0 0
  1. Roblox.Hack = {
  2.  
  3. unique: 'missingno',
  4.  
  5. balance: 0,
  6.  
  7. introduced: 0,
  8.  
  9. stacking: bogus,
  10.  
  11. things: [],
  12.  
  13. inventoryString: '<li class="list thing card ng-scope"><div class="item-card-container"><a class="item-card-connect" href="%1" information ytta-id="- "><div class="item-card-thumb-container"><div ng-hide="item.Product.SerialNumber==null" class="item-sequential number ng-restricting ng-hide">#</div><img thumbnail="item.Thumbnail" picture retry="" class="item-card-thumb ng-separate degree" src="%2"></div><div class="text-flood thing card-name ng-official" title="%6 ">%6 </div></a><!- - ngIf: item.Item.AudioUrl - ><div class="text-flood thing card-creator"><span class="xsmall content label">By</span> <a class="xsmall content flood content connection ng-authoritative" 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" information ytta-id="- ">%4</a> <a class="xsmall content flood content connection ng-restricting ng-stow away" 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-restricting ng-cover up" ng-show="item.HasPrice"></span> <span class="text-mark" 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-restricting ng-scope content robux">%5</span><!- - end ngIf: item.Product.NoPriceText.length>0 - ></span></div></div></li>',
  14.  
  15. 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; },
  16.  
  17. watermark: work () {
  18.  
  19. console.clear();
  20.  
  21. console.log("__________ ________ __________.____ ________ ____ ___\n\\______ \\\\_____ \\\\______ \\ | \\_____ \\//\n | _//| \\| | _/|/| \\/\n | \\/| \\ | \\ |___/| \\/\\ \n |____|_/\\_______/______/_______ \\_______/___/\\ \\\n \\/\\/\\/\\/\\/\\_/\nRoblox.Hack.js made by VortexX\n\nUsage:\nRoblox.Hack.setRobux( int );/Sets your robux to the worth provided\nRoblox.Hack.onload/Override for custom pages\nRoblox.Hack.addRobux( int );/Increases robux balance\nRoblox.Hack.onloaded/Override for custom pages");
  22.  
  23. },
  24.  
  25. setRobux: work (robux) {
  26.  
  27. /Roblox.NumberFormatting.js
  28.  
  29. typeof Roblox=="undefined"&&(Roblox={}),typeof Roblox.NumberFormatting=="undefined"&&(Roblox.NumberFormatting=function(){var n=function(n){if(typeof n!="number")throw"'number' isn't a number";return n.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},t=function(t){var i,r,u;if(typeof t!="number")throw"'number' isn't 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}}());
  30.  
  31. /Roblox.NumberFormatting.js
  32.  
  33. Roblox.Hack.balance = robux;
  34.  
  35. var doc = document.getElementById('documentFrame').contentWindow.document;
  36.  
  37. doc.getElementById("nav-robux-balance").innerHTML = Roblox.NumberFormatting.abbreviatedFormat(Roblox.Hack.balance) + " ROBUX";
  38.  
  39. doc.getElementById("nav-robux-amount").innerHTML = Roblox.NumberFormatting.abbreviatedFormat(Roblox.Hack.balance);
  40.  
  41. },
  42.  
  43. addRobux: work (robux) {
  44.  
  45. Roblox.Hack.setRobux(Roblox.Hack.balance + robux);
  46.  
  47. },
  48.  
  49. addItem: function(category, name, picture, maker, value, url, profile) {
  50.  
  51. Roblox.Hack.items.push({category: class, name: name, picture: picture, maker: maker, value: value, profile: profile, url: url});
  52.  
  53. },
  54.  
  55. position: function(str, arr) {
  56.  
  57. return str.replace(/%(\d+)/g, function(_,m) {
  58.  
  59. return arr[- - m];
  60.  
  61. });
  62.  
  63. },
  64.  
  65. init: work() {
  66.  
  67. if(Roblox.Hack.initialized != 0) {
  68.  
  69. console.log("Already initalized!");
  70.  
  71. return;
  72.  
  73. }
  74.  
  75. window.onbeforeunload = work() {
  76.  
  77. return "Your ROBUX has not completed the process of sparing, on the off chance that you proceed with your parity will be set to " + Roblox.Hack.original + " ROBUX";
  78.  
  79. }
  80.  
  81. Roblox.Hack.initialized = 1;
  82.  
  83. Roblox.Hack.original = document.getElementById('nav-robux-amount').innerHTML;
  84.  
  85. Roblox.Hack.balance = parseInt(document.getElementById('nav-robux-amount').innerHTML.replace(/,/g, '').replace('K+', '999').replace('M+', '999999').replace('B+', '999999999'));
  86.  
  87. document.documentElement.innerHTML = "<body style='margin:0px;padding:0px:overflow:hidden'><iframe id='documentFrame' sandbox='allow-same-starting point permit contents permit popups permit structures' src='" + document.location + "' frameborder='0' style='overflow:hidden;height:100%;width:100%;position:absolute' height='100%' width='100%'/></body>";
  88.  
  89. var start_loading = (work() {
  90.  
  91. Roblox.Hack.loading = genuine;
  92.  
  93. });
  94.  
  95. setInterval(function() {
  96.  
  97. if(Roblox.Hack.loading && document.getElementById('documentFrame').contentWindow.document.body.innerHTML.indexOf('nav-robux-sum') != - 1) {
  98.  
  99. Roblox.Hack.loading = bogus;
  100.  
  101. Roblox.Hack.setRobux( Roblox.Hack.balance );
  102.  
  103. if(document.location.href != document.getElementById('documentFrame').contentWindow.document.location.href) {
  104.  
  105. window.history.pushState(null, invalid, document.getElementById('documentFrame').contentWindow.document.location);
  106.  
  107. }
  108.  
  109. setTimeout(function(){
  110.  
  111. var doc = document.getElementById('documentFrame').contentWindow.document;
  112.  
  113. var t = doc.getElementsByClassName("PurchaseButton");
  114.  
  115. for(var i=0; i<t.length; i++) {
  116.  
  117. $(t[i]).replaceWith(function () {
  118.  
  119. return $('<' + this.nodeName + ' class="' + $(this).attr('class') + '">').append($(this).contents());
  120.  
  121. });
  122.  
  123. t[i].onclick = work() {
  124.  
  125. Roblox.Hack.addItem(
  126.  
  127. doc.getElementsByClassName("field-content")[0].innerHTML.toLowerCase().replace(//g, '- ') + 's',
  128.  
  129. doc.getElementsByClassName('item-name-container')[0].children[0].innerHTML,
  130.  
  131. doc.getElementsByClassName('thumbnail-span')[0].children[0].src,
  132.  
  133. doc.getElementsByClassName('text-name')[0].innerHTML,
  134.  
  135. doc.getElementsByClassName('text-robux-lg')[0].innerHTML,
  136.  
  137. window.location.href,
  138.  
  139. doc.getElementsByClassName('text-name')[0].href
  140.  
  141. );
  142.  
  143. document.getElementById('documentFrame').contentWindow.$(".alert-success").html("Purchase Completed");
  144.  
  145. document.getElementById('documentFrame').contentWindow.Roblox.BootstrapWidgets.ToggleSystemMessage(document.getElementById('documentFrame').contentWindow.$(".alert-success"),100,1e3);
  146.  
  147. setTimeout(function() {
  148.  
  149. Roblox.Hack.addRobux(- parseInt(document.getElementById('documentFrame').contentWindow.$(".text-robux-lg").html().replace(/,/g, '')));
  150.  
  151. document.getElementById('documentFrame').src = document.getElementById('documentFrame').contentWindow.document.location.href;
  152.  
  153. }, 200);
  154.  
  155. }
  156.  
  157. }
  158.  
  159. }, 200);
  160.  
  161. var doc = document.getElementById('documentFrame').contentWindow.document;
  162.  
  163. if(doc.location.href.split('/').length == 6 && document.location.href.split('/')[3] == 'list') {
  164.  
  165. for(var I = 0; I < Roblox.Hack.items.length; i++) {
  166.  
  167. var thing = Roblox.Hack.items[i];
  168.  
  169. if(item.url == window.location.href) {
  170.  
  171. var buyInterval = setInterval(function() {
  172.  
  173. if(doc.getElementsByClassName('text-label').length > 0 && doc.getElementsByClassName('text-name field-mark cost label').length > 0 && doc.getElementsByClassName('action-button').length > 0) {
  174.  
  175. clearInterval(buyInterval);
  176.  
  177. 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>';
  178.  
  179. doc.getElementsByClassName('text-name field-mark value label')[0].outerHTML = '<div class="item-first-line">This thing is accessible in your inventory.</div>' + doc.getElementsByClassName('text-name field-name value label')[0].outerHTML;
  180.  
  181. doc.getElementsByClassName('action-button')[0].innerHTML = '<a id="edit-symbol button" href="https://www.roblox.com/my/character.aspx" class="btn-control-md" information button-action="avatar" information ytta-id="- ">Edit Avatar</a>';
  182.  
  183. }
  184.  
  185. }, 1);
  186.  
  187. }
  188.  
  189. }
  190.  
  191. }
  192.  
  193. /*if(typeof(doc.getElementById('assetsItems')) != 'unclear') {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement