【20230917】手动修复米哈游云游戏在Linux平台无法锁定鼠标问题 - 哔哩哔哩
// ==UserScript==
// @name Genshin Cloud Mouse Fix
// @namespace https://www.bilibili.com/read/cv26576757/
// @version 0.1
// @description Fix a Genshin cloud game mouse move bug
// @match https://ys.mihoyo.com/cloud/*
// @grant none
// ==/UserScript==
(function () {
'use strict';
const origin = HTMLElement.prototype.requestPointerLock
HTMLElement.prototype.requestPointerLock = function () {
return origin.call(this)
}
})();