Greasy Fork

Scenexe.io Tools by Ashy

Special Scenexe.io Tools. Better than others...:)

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

// ==UserScript==
// @name         Scenexe.io Tools by Ashy
// @namespace    http://tampermonkey.net/
// @version      1.1.0
// @description  Special Scenexe.io Tools. Better than others...:)
// @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==

//=========================Changelog=========================
/*
So yeah...
--Balances & changes
    >Zoom
        -decimal point changed from two places to one
        -wheel frequency changed from 0.3 -> 0.2
    >Debug-mode
        -removed and minimalized margins & paddings
    >News
        -timer transferred to one script
        -added optinon to disable timer

//delete ur othes scripts, there is everything u need
*/

"use strict";

usingAdBlocker = false;

(() => {
    let _08x24fr = document.createElement('div');
    _08x24fr.style.position = "fixed";
    _08x24fr.style.left = "18%";
    _08x24fr.style.fontSize = "30px";
    _08x24fr.style.fontWeight = "bolder";
    _08x24fr.style.color = "white";
    _08x24fr.style.webkitTextStrokeWidth = "2px";
    _08x24fr.style.webkitTextStrokeColor = "black";
    // _08x24fr.setAttribute('id', 'not-signed-in-text');
    _08x24fr.setAttribute('class', 'Box');
document.getElementsByTagName("body")[0].appendChild(_08x24fr);
    let _08x24gf = 0;
    let _18x24gf = 0;
    let _28x24gf = 0;
    setInterval(() => {
        _08x24gf += 1;
        _08x24fr.textContent = _28x24gf + ":" + _18x24gf + ":" + _08x24gf;
        if(_08x24gf == 60){
            _08x24gf = 0;
            _18x24gf++;
        }
        if(_18x24gf == 60){
            _18x24gf = 0;
            _28x24gf++;
        }
    }, 1000);
})();

const deb = document.getElementById("debug-mode");
const deb_p = document.querySelectorAll("#debug-mode > p");
deb_p.forEach(el => {
    el.style.padding = "0px";
    el.style.margin = "0px";
    el.style.width = "400px";
});
deb.insertAdjacentHTML("beforeend",
    '<p style="margin: 0px; padding: 0px; font-size:2vmin;" id="zoom">Zoom: 1</p>' +
    '<p style="margin: 0px; padding: 0px; font-size:2vmin;">Darkness: <input type="checkbox" id="dark" style="cursor: pointer; pointer-events:auto;"/>' +
    '<p style="margin: 0px; padding: 0px; font-size:2vmin;" id="timer">Show timer: <input type="checkbox" id="t" style="cursor: pointer; pointer-events:auto;"/></p>' +
    '<p style="margin: 0px; padding: 0px; font-size:2vmin;">More soon! ... maybe for few months</p>'
);

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

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

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

(function(){
    c.checked = true;
    t.checked = !false;
    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;");
    }
}
function _0x38cf2ff(){
    if(t.checked == !false){
        timer.style.display = "block";
    }else{
        timer.style.display = "none";
    }
}
c.addEventListener("click", _0x38cf2f);
t.addEventListener("click", _0x38cf2ff)