Roblox Quick Join Button

Adds a button to quickly join on the games page

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Roblox Quick Join Button
// @namespace    http://tampermonkey.net/
// @version      2024-09-19
// @description  Adds a button to quickly join on the games page
// @author       You
// @match        https://www.roblox.com/games*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net
// @grant        none
// ==/UserScript==

(function() {
        'use strict';




    window.addEventListener('load', function () {
var GetUrl = 'roblox:/'+'/experiences/start?'+'PlaceID='+window.location.href.slice(29).split('/')[0];
function QuickJoinGame() {

}

const element = document.getElementById("game-details-play-button-container");
const buttonOut = document.createElement('button');

buttonOut.innerHTML ='<button class="QuickJoinButton" onclick="window.location.replace('+"'"+GetUrl+"'"+')">'+'<img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8c3ZnIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiIHZpZXdCb3g9IjAgMCAxNiAxNiIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4NCiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDQzLjIgKDM5MDY5KSAtIGh0dHA6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Dg5NTA5NDkgMy42MzU4NDg1MSwzLjYyMDMyODkxIDMuODQyODQyNjEsNC4xMzQ1NjU5MSBMNi4xOTE5MjY1LDkuOTcwNDEyNjcgWiIgaWQ9InR1cmJvLWJvbHQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDcuOTY5Mzk1LCA3Ljg3MzUwOCkgcm90YXRlKDY5LjAwMDAwMCkgdHJhbnNsYXRlKC03Ljk2OTM5NSwgLTcuODczNTA4KSAiPjwvcGF0aD4NCiAgICAgICAgPC9nPg0KICAgIDwvZz4NCjwvc3ZnPg==" style="width: 36px; height: 36px;" draggable="false"></img>'+'</button>'

element.append(buttonOut)
buttonOut.outerHTML = buttonOut.innerHTML
$('head').append('<style> .QuickJoinButton { border: none; border-radius: 8px; color: white; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; margin: 0px 5px; cursor: pointer; background-color: #fc6c00; width: 100px;} </style>');
});
    })();