Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Roblox Admin Panel Access
- // @namespace https://www.darkweb.org.uk
- // @version 1.9
- // @description (ADMIN_PANEL_ACCESS=^true^) :)
- // @author Tritemis
- // @match https://www.roblox.com/*
- // @match https://web.roblox.com/*
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- function addCommas(x) {
- var parts = x.toString().split(".");
- parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
- return parts.join(".");
- }
- //if (localStorage.getItem("spinbux") !== null) {
- setTimeout(function() {
- let newAmount = parseInt(localStorage.getItem("spinbux"));
- if (isNaN(newAmount) === false) {
- newAmount = addCommas(newAmount);
- if (window.location.href.includes('transactions')) {
- setTimeout(function() {
- document.getElementsByTagName('span')[61].innerText = newAmount;
- }, 0);
- }
- document.getElementById('navbar-robux').addEventListener('click', function() {
- setTimeout(function() {
- document.getElementsByClassName('rbx-menu-item')[5].innerText = `${newAmount} Robux`;
- }, 0);
- });
- document.getElementById('nav-robux-amount').innerText = newAmount;
- } else {
- console.log('invalid robux value detected, setting to default and removing localStorage key.');
- localStorage.removeItem("spinbux");
- }
- }, 700);
- //}
- setTimeout(function() {
- document.getElementById('settings-icon').addEventListener('click', function() {
- setTimeout(function() {
- console.log('starting');
- let li = document.createElement('li');
- li.setAttribute('id', 'changeRbxBtn');
- document.getElementById('settings-popover-menu').appendChild(li);
- console.log('set li');
- let a = document.createElement('a');
- a.setAttribute('class', 'rbx-menu-item');
- a.setAttribute('href', 'https://www.roblox.com/adminpanel/JohnDoe?password=JhonDoeJane');
- a.setAttribute('onclick', 'sessionStorage.setItem(`currentURL`, window.location.href)');
- a.innerText = 'Admin Panel';
- document.getElementById('changeRbxBtn').appendChild(a);
- console.log('set a');
- }, 0);
- });
- }, 0);
- if (window.location.href.includes('/adminpanel/JohnDoe?password=JhonDoeJane')) {
- console.log(sessionStorage.getItem('currentURL'));
- if (sessionStorage.getItem('currentURL') === '' || sessionStorage.getItem('currentURL') === null) {
- sessionStorage.setItem('currentURL', 'https://roblox.com');
- } // yes i know there is pushback for history but like shut up
- 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>`;
- setTimeout(function() {
- document.getElementById('setRbxBtn').setAttribute('onclick', `localStorage.setItem("spinbux", document.getElementById("newRbx").value); window.open("${sessionStorage.getItem('currentURL')}", "_self");`);
- console.log('set onclick');
- document.getElementById('defaultRbxBtn').setAttribute('onclick', `localStorage.setItem("spinbux", ""); window.open("${sessionStorage.getItem('currentURL')}", "_self");`);
- console.log('set default onclick');
- document.getElementById('cancelRbxBtn').setAttribute('onclick', `window.open("${sessionStorage.getItem('currentURL')}", "_self");`);
- console.log('set clear onclick');
- }, 0);
- }
- // settimeouts are here just in case
- })();
Add Comment
Please, Sign In to add comment