From 647184c02c15930a8a455e43e2baa428d1d637be Mon Sep 17 00:00:00 2001 From: LittleBit Date: Wed, 25 Nov 2026 22:39:43 -0600 Subject: [PATCH] [roblox-web-play] new script --- roblox-web-play.user.js | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 roblox-web-play.user.js diff --git a/roblox-web-play.user.js b/roblox-web-play.user.js new file mode 100644 index 0000000..bc2bb21 --- /dev/null +++ b/roblox-web-play.user.js @@ -0,0 +1,30 @@ +// ==UserScript== +// @name Roblox Web Play +// @version 1.0 +// @description Play a game in the experimental Roblox web client +// @author LittleBit +// @namespace https://tangled.org/did:plc:ba3ftueh2aewxja4dtuhi7kf +// @match https://*.roblox.com/games/* +// @match https://*.roblox.com/*/games/* +// @icon https://favicon.im/roblox.com +// @grant GM_registerMenuCommand +// ==/UserScript== + +(function() { + 'use strict'; + + function startWebPlay() { + const match = window.location.pathname.match(/\/games\/(\d+)/); + if (!match) { + alert("Could not find a valid Place ID in the URL."); + return; + } + + const placeId = match[1]; + const newUrl = `https://play.roblox.com/games/start?placeId=${placeId}`; + + window.open(newUrl, "_blank", "noopener"); + } + + GM_registerMenuCommand("Start Web Play", startWebPlay); +})(); \ No newline at end of file -- knotmirror 0.0.1