Greasy Fork

Gota.io Optimiser

Tidies up Gota... a little bit.

目前为 2019-12-22 提交的版本。查看 最新版本

// ==UserScript==
// @name         Gota.io Optimiser
// @namespace    https://gota.io/web/*
// @version      0.2
// @description  Tidies up Gota... a little bit.
// @author       AlexHGaming
// @match        https://gota.io/web/
// @match        https://gota.io/web-legacy/
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    // Remove macro tab in settings
    document.getElementsByClassName(`options-container`)[0].id = "options";
    var str = String(document.getElementById("options").innerHTML);
    document.getElementById("options").innerHTML = str.slice(0, 4520);
    // Hide and change things
    document.getElementsByClassName(`main-bottom-links`)[0].id = "adv";
    document.getElementsByClassName(`main-rb-title`)[0].id = "proftxt";
    document.getElementsByClassName(`main-rb-title`)[0].className = "title-text";
    document.getElementsByClassName(`main-version`)[0].id = "version";
    document.getElementsByClassName(`current-status`)[0].id = "status";
    document.getElementsByClassName(`options-container`)[0].id = "options";
    document.getElementById(`main-rb`).style = `display: none`;
    document.getElementById(`adv`).style = `display: none`;
    document.getElementById(`status`).style = `display: none`;
    document.getElementById(`proftxt`).innerHTML = `Account and Macros`;
    document.getElementById(`proftxt`).innerHTML += `<div class="divider title-divider"></div>`;
    // Insert macro tab to home
    document.getElementById(`main-left`).innerHTML += `
<table class="options-table" style = "background-color: #1c1c1c; margin-top: 15px;">
<td colspan="3">Eject Mass</td>
<td><button id="kEjectMass" class="keybinds-btn">W</button></td>
</tr>
<tr>
<td colspan="3">Split</td>
<td><button id="kSplit" class="keybinds-btn"></button></td>
</tr>
<tr>
<td colspan="3">Double Split (4x)</td>
 <td><button id="kDoubleSplit" class="keybinds-btn"></button></td>
</tr>
<tr>
<td colspan="3">Triple Split (8x)</td>
<td><button id="kTripleSplit" class="keybinds-btn"></button></td>
</tr>
<tr>
<td colspan="3">Quad Split (16x)</td>
<td><button id="kQuadSplit" class="keybinds-btn"></button></td>
</tr>
<tr>
<td colspan="3">Hexa Split (64x)</td>
<td><button id="kHexaSplit" class="keybinds-btn"></button></td>
</tr>
<tr>
<td colspan="3">Freeze Mouse</td>
<td><button id="kFreezeMouse" class="keybinds-btn"></button></td>
</tr>
<tr>
<td colspan="4"><button id="btn-reset-keybinds" class="gota-btn" style="color: rgb(255, 255, 255); border-color: rgb(255, 255, 255); background-color: rgba(23, 22, 23, 0.9);">Reset Keybinds</button></td>
</tr>
</tbody>
</table>
`;
})();