Greasy Fork

Scenexe.io Vision Tools by Ashy

Special Vision Tool. Better than others...:)

当前为 2022-10-28 提交的版本,查看 最新版本

// ==UserScript==
// @name         Scenexe.io Vision Tools by Ashy
// @namespace    http://tampermonkey.net/
// @version      1.0.2
// @description  Special Vision Tool. Better than others...:)
// @description  use mouse wheel to zoom + no dark in cross!
// @description  +anty annoying asking about adblock
// @author       Ashy恨你
// @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==

//Update today! Have a nice day :)

usingAdBlocker = false;

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

const newOb = document.createElement('div');
const inpt = document.createElement('input');
      newOb.appendChild(inpt);
      newOb.style.setProperty('position', 'absolute');
      newOb.style.setProperty('left', '18%');
      inpt.style.setProperty('color', 'white');
      inpt.style.setProperty('padding-left', '15px');
      inpt.style.setProperty('padding-right', '15px');
      inpt.style.setProperty('padding-bottom', '6px');
      inpt.style.setProperty('padding-top', '6px');
      inpt.style.setProperty('border', '0');
      inpt.style.setProperty('border-radius', '10px');
      inpt.style.setProperty('background-color', 'black');
      inpt.setAttribute('id', 'AshyWuzHere');
      inpt.setAttribute('value', 'Darkness: ' + OFF);
      inpt.setAttribute('type', 'button');
      newOb.setAttribute('id', 'not-signed-in-text');
    console.log(newOb);

document.getElementsByTagName("body")[0].appendChild(newOb);


const btn_a = document.getElementById('AshyWuzHere');
btn_a.addEventListener('click', () => {
    const shit = document.getElementById('darkness-canvas');
    if (shit.getAttribute('style')=="z-index: -20 !important"){
        shit.setAttribute("style", "z-index: -2 !important");
        inpt.setAttribute("value", "Darkness: " + ON);
    }else{
        shit.setAttribute("style", "z-index: -20 !important");
        inpt.setAttribute("value", "Darkness: " + OFF);
    }
});

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.3;
	} else {
		ss -= 0.3;
	}
	change_scs(ss);
});