Greasy Fork

Scenexe.io Vision Tools by Ashy [tools transferred to debug mode]

Special Vision Tool. Better than others...:) [use debug mode to emble tool](press "M")

当前为 2022-11-24 提交的版本,查看 最新版本

// ==UserScript==
// @name         Scenexe.io Vision Tools by Ashy [tools transferred to debug mode]
// @namespace    http://tampermonkey.net/
// @version      1.0.8
// @description  Special Vision Tool. Better than others...:) [use debug mode to emble tool](press "M")
// @description  use mouse wheel to zoom + no dark in cross! +anty annoying asking about adblock
// @author       Ashy恨你#3219
// @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==

"use strict";

usingAdBlocker = false;

document.getElementById("debug-mode").insertAdjacentHTML("beforeend",
    '<p style="font-size:2vmin;" id="zoom">Zoom: 1</p>' +
    '<p style="font-size:2vmin;">Darkness: <input onchange="this.blur();" type="checkbox" id="dark" style="pointer-events:auto;"/>'
);

var z = document.getElementById("zoom");
var zoom = 1;

function change_scs(s_size) {
    if (zoom < 1) {
	zoom = 1;
    }
    z.textContent = "Zoom: " + zoom.toFixed(2);
    Object.defineProperty(Object.prototype, "cameraSizeMultiplier", { configurable: true, get: () => s_size, set: () => { } });
}
document.addEventListener("wheel", (e) =>{
  if(e.deltaY > 0){
        zoom += 0.3;
    }else{
        zoom -= 0.3;
    }
    change_scs(zoom);
});

const c = document.getElementById('dark');
const fu = document.querySelector("#darkness-canvas");

(function(){
    c.checked = true;
    fu.setAttribute("style", "z-index: -20;");
})();
function _0x38cf2f(){
    if(c.checked == !false){
        fu.setAttribute("style", "z-index: -20;");
    }else{
        fu.setAttribute("style", "z-index: -2;");
    }
}
c.addEventListener("click", _0x38cf2f);