Roblox Prank

redirects any game you join to another (first release - 4/30)

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name         Roblox Prank
// @namespace    http://tampermonkey.net/
// @version      Alpha-v3
// @description  redirects any game you join to another (first release - 4/30)
// @author       You
// @match        https://www.roblox.com/games/*
// @match        https://web.roblox.com/games/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=roblox.com
// @grant        none
// @license      CC BY-NC-ND 4.0
// ==/UserScript==

/*
 * Personal Use Only License:
 * This script is provided for personal use only. You may modify the script
 * for your own use, but you are not allowed to distribute modified versions
 * of the script publicly or for commercial purposes.
 */

const gameID = 12334109280

// Function to manipulate the button
function manipulateButton(button) {
    // Change what the game button does
    button.setAttribute("onclick", "Roblox.GameLauncher.joinGameInstance(" + gameID + ")");

    // Clone and delete button so it doesn't join original game
    var button2 = button.cloneNode(true);
    button.parentNode.insertBefore(button2, button.nextSibling);
    button.parentNode.removeChild(button);
    console.log("by fishcat2431")
    console.log("message me any errors/bugs or any features you want on discord")
}

// Function to check for button1 and manipulate it if found
function checkAndManipulateButton() {
    var button1 = document.getElementsByClassName("btn-common-play-game-lg btn-primary-md btn-full-width")[0];
    if (button1) {
        manipulateButton(button1);
    }
}

// Check for button1 initially
checkAndManipulateButton();

// Repeat the check every 500 milliseconds (adjust as needed)
setInterval(checkAndManipulateButton, 500);