Adds a button to quickly join on the games page
目前為
// ==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';
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
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+"'"+')">Quick Start</button>'
element.appendChild(buttonOut)
$('head').append('<style> .QuickJoinButton { border: none; color: white; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; margin: 4px 2px; cursor: pointer; background-color: #04AA6D;} </style>');
});
})();