scenexe.io zoom+no dark

use mouse wheel or + and - keys, only works in gameplay

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name        scenexe.io zoom+no dark
// @namespace   https://scnxwged.glitch.me/
// @description use mouse wheel or + and - keys, only works in gameplay
// @author      BZZZZ
// @license     GPLv3
// @include     /^https?\:\/\/scenexe\.io\/([?#]|$)/
// @include     /^https?\:\/\/new\-test\.scenexe\.io\/([?#]|$)/
// @include     /^https?\:\/\/test\.scenexe\.io\/([?#]|$)/
// @include     /^https?\:\/\/test2\.scenexe\.io\/([?#]|$)/
// @version     0.4
// @grant       none
// @run-at      document-end
// @inject-into content
// ==/UserScript==

'use strict'
const x=document.createElementNS('http://www.w3.org/1999/xhtml','div')
x.setAttribute('onclick',`"use strict";(${()=>{
let
	zoom=1
const
	zoomout=()=>{zoom*=1.0625},
	zoomin=()=>{if((zoom*=0.9375)<1)zoom=1},

	obj={'__proto__':null,'passive':true},p={
		'__proto__':null,
		'configurable':true,
		'enumerable':true,
		'set'(val){this[s]=val},
		'get'(){return this[s]*zoom}
	},s=Symbol('real cameraSizeMultiplier'),dp=Object.defineProperty,rset=Reflect.set
	Object.freeze(obj)
	Object.freeze(p)
	//use removedEntities to not conflict with tank editor
	dp(Object.prototype,'removedEntities',{
		'__proto__':null,
		'configurable':true,
		'enumerable':false,
		'set'(val){
			rset(obj,'removedEntities',val,this)
			dp(this,'cameraSizeMultiplier',p)
		}
	})
	document.getElementById('game-canvas').addEventListener('wheel',event=>{
		if(event.deltaY>0)zoomout()
		else zoomin()
	},obj)
	document.body.addEventListener('keypress',event=>{
		const t=event.target.tagName
		if(t!=='INPUT'&&t!=='TEXTAREA')switch(event.key){
			case '+':
				zoomout()
				return
			case '-':
				zoomin()
		}
	},obj)
}})()`)
x.click()
document.getElementById('darkness-canvas').hidden=true