UWP Private Servers

Join private servers using UWP

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey 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.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

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         UWP Private Servers
// @version      1.0.0
// @description  Join private servers using UWP
// @author       Synapsium
// @match        https://www.roblox.com/*
// @icon         https://cdn.discordapp.com/attachments/678309173137768469/1124861983221628948/Untitled13_20230701203947.png
// @grant        none
// @namespace https://greatest.deepsurf.us/users/1128618
// ==/UserScript==
function waitForElm(selector) {
   return new Promise(resolve => {
       if (document.querySelector(selector)) {
           return resolve(document.querySelector(selector));
       }

       const observer = new MutationObserver(mutations => {
           if (document.querySelector(selector)) {
               resolve(document.querySelector(selector));
               observer.disconnect();
           }
       });

       observer.observe(document.body, {
           childList: true,
           subtree: true
       });
   });
}

(function() {
   'use strict';
   waitForElm('#gamelaunch').then((elm) => {
   let element = document.getElementById("gamelaunch")
if (element) {
let src = element.src
let reg = /placeId%3D(.*)%26accessCode%3D(.*)%26linkCode%3D(.*)%26/gm
let result = reg.exec(src)
let placeid = result[1]
let accesscode = result[2]
let linkcode = result[3]
const bt = document.createElement("button")
const tx = document.createTextNode("UWP")
bt.appendChild(tx)
bt.classList.add("btn-full-width")
bt.classList.add("btn-common-play-game-lg")
bt.classList.add("btn-primary-md")
bt.classList.add("btn-min-width")
bt.style = "width:66px;min-width:66px;margin-left:3px;position:relative; z-index:1045;"
const di = document.getElementById("game-details-play-button-container")
di.appendChild(bt)
bt.addEventListener('click', () => {
window.open(`roblox://placeID=${placeid}&accessCode=${accesscode}&linkCode=${linkcode}`, `_self`)
});
console.log("UWP Private Servers Loaded")
}
       });
})();