Greasy Fork

Scenexe Vision fix by Ashy

Just more vision. Better than others...:)

当前为 2022-09-12 提交的版本,查看 最新版本

// ==UserScript==
// @name         Scenexe Vision fix by Ashy
// @namespace    http://tampermonkey.net/
// @version      0.5
// @description  Just more vision. Better than others...:)
// @author       AshyUwU
// @match        https://scenexe.io/
// @match        https://new-test.scenexe.io/
// @icon         https://www.google.com/s2/favicons?sz=64&domain=scenexe.io
// @grant        none
// @license MIT
// ==/UserScript==

function change_atribute(){
    var change_css = document.getElementById('darkness-canvas');
    change_css.setAttribute("style", "z-index: -20 !important");
};
change_atribute();

function change_scs(s_size) {
	if (ss < 1) {
		ss = 1;
	}
	Object.defineProperty(Object.prototype, "cameraSizeMultiplier", { configurable: true, get: () => s_size, set: () => { } });
}
var ss = 1;
document.addEventListener('wheel', function (e) {
	if (e.deltaY > 0) {
		ss += 0.1;
	} else {
		ss -= 0.1;
	}
	change_scs(ss);
});