Roblox Web To UWP Joiner

Redirects you from roblox web to roblox UWP

当前为 2023-08-08 提交的版本,查看 最新版本

// ==UserScript==
// @name         Roblox Web To UWP Joiner
// @namespace    RobloxJoiner
// @version      0.1
// @description  Redirects you from roblox web to roblox UWP 
// @author       BeboMods
// @match        https://www.roblox.com/games/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    const currentURL = window.location.href;
    const numbers = extractNumbersFromURL(currentURL);
    const newURL = `roblox://experiences/start?placeId=${numbers}`;
    window.open(newURL, '_blank');
    function extractNumbersFromURL(url) {
        const matches = url.match(/\/(\d+)\//);
        return matches ? matches[1] : "";
    }
})();