Restore Roblox website play functionality on Firefox-based browsers

Really hacky but better than nothing. DM me on Telegram if you have a better solution - @paidlowered

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        Restore Roblox website play functionality on Firefox-based browsers
// @namespace   Roblox scripts
// @match       https://www.roblox.com/games/*
// @grant       none
// @version     1.0
// @author      paidlowered
// @description Really hacky but better than nothing. DM me on Telegram if you have a better solution - @paidlowered
// @license     WTFPL
// ==/UserScript==

// splits url and gets place id
let id = window.location.href.split("/")[4]
//prompts if they want to play
  if (window.confirm("Play?")) {
    // opens about:blank with prompt to launch roblox
    window.open("roblox://placeId=" + id, "\_blank");
  } else {

  }