Greasy Fork

Scenexe.io Tools by Ashy [have fun!]

Special Scenexe.io Tools. Better than others...:) (see ur settings & debug-mode ;) [press "o" & "m"])

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

// ==UserScript==
// @name         Scenexe.io Tools by Ashy [have fun!]
// @namespace    http://tampermonkey.net/
// @version      1.1.2
// @description  Special Scenexe.io Tools. Better than others...:) (see ur settings & debug-mode ;) [press "o" & "m"])
// @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
        -blocked zoom while settings are opened
        -decimal point changed from two places to one
        -wheel frequency changed from 0.3 -> 0.2
    >Debug-mode
        -removed and minimalized margins & paddings
    >News
        -option to display tools (see in settings)
        -added set of cursors (see in settings)
//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('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");
const settings = document.querySelector("#settings");
const Div = document.querySelector("#settings-scroll");

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;" id="darrek">Darkness: <input type="checkbox" id="dark" style="cursor: pointer; pointer-events:auto;"/>'
);
Div.insertAdjacentHTML("beforeend",
    `<div style="">
        <h2 style="text-align: center;">Display tools</h2>
        <label>Show zoom: </label>
        <input style="margin: 0; padding-left: 0; padding-right: 0;" type="checkbox" id="Zzz" style="cursor: pointer; pointer-events:auto;"/><br>
        <label>Show darkness: </label>
        <input style="margin: 0; padding-left: 0; padding-right: 0;" type="checkbox" id="dddd" style="cursor: pointer; pointer-events:auto;"/><br>
        <label>Show timer: </label>
        <input style="margin: 0; padding-left: 0; padding-right: 0;" type="checkbox" id="t" style="cursor: pointer; pointer-events:auto;"/><br>
    </div>` +
    `<div style="">
        <h2 style="text-align: center;">Others</h2>
        <label>Switch cursor: </label>
        <input style="margin: 0; padding-left: 0; padding-right: 0;" type="checkbox" id="cur" style="cursor: pointer; pointer-events:auto;"/><br>
        <label>Chose ur cursor: </label>
        <select style="font-size: 2vmin;" name="sel" id="sel" disabled>
                <option value="alias">alias</option>
                <option value="all-scroll">all-scroll</option>
                <option value="auto">auto</option>
                <option value="cell">cell</option>
                <option value="col-resize">col-resize</option>
                <option value="context-menu">context-menu</option>
                <option value="copy">copy</option>
                <option value="crosshair">crosshair</option>
                <option value="default" selected>default</option>
                <option value="e-resize">e-resize</option>
                <option value="ew-resize">ew-resize</option>
                <option value="-webkit-grab; cursor: grab">grab</option>
                <option value="-webkit-grabbing; cursor: grabbing">grabbing</option>
                <option value="help">help</option>
                <option value="move">move</option>
                <option value="n-resize">n-resize</option>
                <option value="ne-resize">ne-resize</option>
                <option value="nesw-resize">nesw-resize</option>
                <option value="ns-resize">ns-resize</option>
                <option value="nw-resize">nw-resize</option>
                <option value="nwse-resize">nwse-resize</option>
                <option value="no-drop">no-drop</option>
                <option disabled value="none">none</option>
                <option value="not-allowed">not-allowed</option>
                <option value="pointer">pointer</option>
                <option value="progress">progress</option>
                <option value="row-resize">row-resize</option>
                <option value="s-resize">s-resize</option>
                <option value="se-resize">se-resize</option>
                <option value="sw-resize">sw-resize</option>
                <option value="text">text</option>
                <option value="url(myBall.cur),auto">url(myBall.cur),auto</option>
                <option value="w-resize">w-resize</option>
                <option value="wait">wait</option>
                <option value="zoom-in">zoom-in</option>
                <option value="zoom-out">zoom-out</option>
        </select>
    </div>`
);
var z = document.getElementById("zoom");
var d = document.getElementById("darrek");
var zoom = 1;
var cha = document.getElementById("chat");

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(!settings.classList.contains("hide")) {
        e.preventDefault();
    }
    else 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 timer = document.querySelector(".Box");
const t = document.querySelector("#t");
const dz = document.querySelector("#Zzz");
const dd = document.querySelector("#dddd");
const cur = document.getElementById("cur");
const sel = document.getElementById("sel");
var bg = document.getElementById("background");

sel.addEventListener("click", () => {
    let v = sel.value;
    bg.setAttribute("style", "cursor: " + v + ";");
});

cur.addEventListener("click", () => {
    if(cur.checked == true) {
        sel.removeAttribute("disabled", "disabled");
    }else{
        sel.setAttribute("disabled", "disabled");
    }
});

(function(){
    cha.style.zIndex = "10";
    c.checked = true;
    t.checked = !false;
    dz.checked = !false;
    dd.checked = !false;
    fu.setAttribute("style", "z-index: -20;");
    bg.setAttribute("style", "cursor: default;");
})();
function _0x38cf2f(){
    if(c.checked == !false){
        fu.setAttribute("style", "z-index: -20;");
    }else{
        fu.setAttribute("style", "z-index: -2;");
    }
}
function _0x38c2cched02(element, tar){
    if(element.checked == !false) {
        tar.style.display = "block";
    }else{
        tar.style.display = "none";
    }
}
c.addEventListener("click", _0x38cf2f);
t.addEventListener("click", () => {
    _0x38c2cched02(t, timer);
});
dz.addEventListener("click", () => {
    _0x38c2cched02(dz, z);
});
dd.addEventListener("click", () => {
    _0x38c2cched02(dd, d);
});