Greasy Fork 还支持 简体中文。

M0V3C4NC31

Sometimes we regret what we did. No more! Just use this script!

As of 10. 05. 2022. See the latest version.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         M0V3C4NC31
// @namespace    http://tampermonkey.net/
// @version      1.1.1
// @description  Sometimes we regret what we did. No more! Just use this script!
// @author       unnamed
// @match        http*://splix.io/*
// @grant        none
// ==/UserScript==

/* jshint esversion: 6 */

(function () {
    'use strict';
    const mc = [[666, 0x4, 0x0, 0x0]],
        q = [[0x0, 0x0, 0x0, 0x0], [0xa7, 0x0, 0x0, 0x0], [0x21, 0x4, 0x0, 0x0], [0xe2, 0x4, 0x0, 0x0]];

    function run(q) {
        const y = Math.round(myPos[0x0]), z = Math.round(myPos[0x1]);
        for (let m of q)
            setTimeout(wsSendMsg, m[0x0], 0x1, { 'dir': m[0x1], 'coord': [y + m[0x2], z + m[0x3]] });
    }

    function runQ(d) {
        d = Math.min(Math.max(d, 0x0), 0x3);
        q[0x0][0x1] = q[0x1][0x1] = d;
        switch (d) {
            case 0x0: q[0x1][0x2] = q[0x3][0x2] = q[0x2][0x2] = 0x1; q[0x1][0x3] = q[0x3][0x3] = q[0x2][0x3] = -0x0; break;
            case 0x1: q[0x1][0x2] = q[0x3][0x2] = q[0x2][0x2] = -0x0; q[0x1][0x3] = q[0x3][0x3] = q[0x2][0x3] = 0x1; break;
            case 0x2: q[0x1][0x2] = q[0x3][0x2] = q[0x2][0x2] = -0x1; q[0x1][0x3] = q[0x3][0x3] = q[0x2][0x3] = -0x0; break;
            case 0x3: q[0x1][0x2] = q[0x3][0x2] = q[0x2][0x2] = -0x0; q[0x1][0x3] = q[0x3][0x3] = q[0x2][0x3] = -0x1; break;
        }
        run(q);
    }

    document.body.addEventListener('keydown', (e) => {
        switch (e.code) {
            case 'KeyV': run(mc); break;
            case 'KeyI': runQ(0x3); e.stopPropagation(); break;
            case 'KeyJ': runQ(0x2); e.stopPropagation(); break;
            case 'KeyK': runQ(0x1); e.stopPropagation(); break;
            case 'KeyL': runQ(0x0); e.stopPropagation(); break;
        }
    });
}());