cloud-genshin.js
· 531 B · JavaScript
Raw
// ==UserScript==
// @name Genshin Cloud
// @namespace http://tampermonkey.net/
// @version 0.1
// @description fix a Genshin Impact cloud game 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)
}
})();
// 作者:SocialismTeen https://www.bilibili.com/read/cv26576757/
// 出处:bilibili
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 |