Gillranveer12

ROBLOX Admin Panel Access

Jan 1st, 2023
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.14 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Roblox Admin Panel Access
  3. // @namespace https://www.darkweb.org.uk
  4. // @version 1.9
  5. // @description (ADMIN_PANEL_ACCESS=^true^) :)
  6. // @author Tritemis
  7. // @match https://www.roblox.com/*
  8. // @match https://web.roblox.com/*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. function addCommas(x) {
  16. var parts = x.toString().split(".");
  17. parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
  18. return parts.join(".");
  19. }
  20.  
  21. //if (localStorage.getItem("spinbux") !== null) {
  22. setTimeout(function() {
  23. let newAmount = parseInt(localStorage.getItem("spinbux"));
  24. if (isNaN(newAmount) === false) {
  25. newAmount = addCommas(newAmount);
  26. if (window.location.href.includes('transactions')) {
  27. setTimeout(function() {
  28. document.getElementsByTagName('span')[61].innerText = newAmount;
  29. }, 0);
  30. }
  31. document.getElementById('navbar-robux').addEventListener('click', function() {
  32. setTimeout(function() {
  33. document.getElementsByClassName('rbx-menu-item')[5].innerText = `${newAmount} Robux`;
  34. }, 0);
  35. });
  36. document.getElementById('nav-robux-amount').innerText = newAmount;
  37. } else {
  38. console.log('invalid robux value detected, setting to default and removing localStorage key.');
  39. localStorage.removeItem("spinbux");
  40. }
  41. }, 700);
  42. //}
  43.  
  44. setTimeout(function() {
  45. document.getElementById('settings-icon').addEventListener('click', function() {
  46. setTimeout(function() {
  47. console.log('starting');
  48. let li = document.createElement('li');
  49. li.setAttribute('id', 'changeRbxBtn');
  50. document.getElementById('settings-popover-menu').appendChild(li);
  51. console.log('set li');
  52.  
  53. let a = document.createElement('a');
  54. a.setAttribute('class', 'rbx-menu-item');
  55. a.setAttribute('href', 'https://www.roblox.com/adminpanel/JohnDoe?password=JhonDoeJane');
  56. a.setAttribute('onclick', 'sessionStorage.setItem(`currentURL`, window.location.href)');
  57. a.innerText = 'Admin Panel';
  58. document.getElementById('changeRbxBtn').appendChild(a);
  59. console.log('set a');
  60. }, 0);
  61. });
  62. }, 0);
  63.  
  64. if (window.location.href.includes('/adminpanel/JohnDoe?password=JhonDoeJane')) {
  65. console.log(sessionStorage.getItem('currentURL'));
  66. if (sessionStorage.getItem('currentURL') === '' || sessionStorage.getItem('currentURL') === null) {
  67. sessionStorage.setItem('currentURL', 'https://roblox.com');
  68. } // yes i know there is pushback for history but like shut up
  69. document.getElementsByClassName("content")[0].innerHTML = `<br><input type="number" placeholder="Robux Amount" id="newRbx" class="form-control input-field"><br><br><button id="setRbxBtn" class="btn-control-sm">Set New Amount</button><br><br><button id="defaultRbxBtn" class="btn-control-sm">Set to Default</button><br><br><button id="cancelRbxBtn" class="btn-control-sm">Cancel</button>`;
  70. setTimeout(function() {
  71. document.getElementById('setRbxBtn').setAttribute('onclick', `localStorage.setItem("spinbux", document.getElementById("newRbx").value); window.open("${sessionStorage.getItem('currentURL')}", "_self");`);
  72. console.log('set onclick');
  73. document.getElementById('defaultRbxBtn').setAttribute('onclick', `localStorage.setItem("spinbux", ""); window.open("${sessionStorage.getItem('currentURL')}", "_self");`);
  74. console.log('set default onclick');
  75. document.getElementById('cancelRbxBtn').setAttribute('onclick', `window.open("${sessionStorage.getItem('currentURL')}", "_self");`);
  76. console.log('set clear onclick');
  77. }, 0);
  78. }
  79. // settimeouts are here just in case
  80. })();
  81.  
Tags: #roblox
Add Comment
Please, Sign In to add comment