AimerNeige revised this gist 2 years ago. Go to revision
No changes
AimerNeige revised this gist 2 years ago. Go to revision
1 file changed, 20 insertions
cloud-genshin.js(file created)
| @@ -0,0 +1,20 @@ | |||
| 1 | + | // ==UserScript== | |
| 2 | + | // @name Genshin Cloud | |
| 3 | + | // @namespace http://tampermonkey.net/ | |
| 4 | + | // @version 0.1 | |
| 5 | + | // @description fix a Genshin Impact cloud game bug | |
| 6 | + | // @match https://ys.mihoyo.com/cloud/* | |
| 7 | + | // @grant none | |
| 8 | + | // ==/UserScript== | |
| 9 | + | ||
| 10 | + | (function () { | |
| 11 | + | 'use strict'; | |
| 12 | + | ||
| 13 | + | const origin = HTMLElement.prototype.requestPointerLock | |
| 14 | + | HTMLElement.prototype.requestPointerLock = function () { | |
| 15 | + | return origin.call(this) | |
| 16 | + | } | |
| 17 | + | })(); | |
| 18 | + | ||
| 19 | + | // 作者:SocialismTeen https://www.bilibili.com/read/cv26576757/ | |
| 20 | + | // 出处:bilibili | |
Newer
Older