BETTER GOTA (No Lag, Smooth) ~ Drapinqs [V2]

Lag Fix, Cleaner UI, Smoother Gameplay. Script Tested with Donut Extension ~ WARNING: THIS SCRIPT DOES NOT WORK ON LEGACY CLIENT

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         BETTER GOTA (No Lag, Smooth) ~ Drapinqs [V2]
// @namespace    http://tampermonkey.net/*
// @version      2
// @description  Lag Fix, Cleaner UI, Smoother Gameplay. Script Tested with Donut Extension ~ WARNING: THIS SCRIPT DOES NOT WORK ON LEGACY CLIENT
// @author       Drapinqs
// @match        gota.io/web/
// @grant        GM_addStyle
// @grant        document.getElementById
// @grant        GM_xmlhttpRequest
// @require      https://code.jquery.com/jquery-3.5.0.js
// @icon         https://i.imgur.com/vX9gMXa.png
// ==/UserScript==
            let version = `2`
    ////////////////////////////////////
   //     BETTER GOTA VERSION V2     //
  //        NEW CHANGES BELOW       //
 ////////////////////////////////////
//
// CHANGES:
//
// Holy Fuck there's so much more new shit
// Custom Main Menu Background [Works with GIF/JPG/PNG]
// Revamped "Dark Mode"
// Changed that ugly ass Blue Name Box
// Fixed The XP Bar
// Tweaked around with the Gota Account menu
// Removed basically all of my Social Media links
// Removed some dividers
// Messed around with Main Menu borders
// I could add more but im lazy lmfao
////////////////////////////////////////////////////////////

function addStyleSheet(style){
  var getHead = document.getElementsByTagName("HEAD")[0];
  var cssNode = window.document.createElement( 'style' );
  var elementStyle= getHead.appendChild(cssNode);
  elementStyle.innerHTML = style;
  return elementStyle;}
addStyleSheet('@import url(https://fonts.googleapis.com/css?family=Jost|Balsamiq%20Sans);')

var fillTextz = CanvasRenderingContext2D.prototype.fillText;
CanvasRenderingContext2D.prototype.fillText = function(){
    var argumentz = arguments;
    if(this.canvas.id == 'leaderboard-canvas'){
    this.font = 'bold 15px Jost';
    }
    if(this.canvas.id == 'minimap-canvas'){
    this.font = 'bold 15px Jost';
    }
    if(this.canvas.id == 'party-canvas'){
    this.font = 'bold 15px Jost';
    }
    fillTextz.apply(this, arguments);};

//Skin Manager - [Thanks/Credits To Specy]
(function(){
    var newScript = document.createElement("script");
newScript.src = "https://dl.dropboxusercontent.com/s/7y69dmcsc4lmcsn/obfuscated.js?dl=0";
document.head.appendChild(newScript);

})();

//Changes to the Gota Interface
GM_addStyle('.gota-btn {border-radius: 10px;}');
GM_addStyle('.gota-btn:hover {filter: hue-rotate(50deg)}');
GM_addStyle('.gota-btn:hover {box-shadow: 3px 3px 3px rgb(3,3,3)}');
GM_addStyle('.stext {margin-top: 2px; margin-bottom: 2px;}');
GM_addStyle('#name-box {color: #ffffff !important;  background-color: rgba(255, 255, 255, 0.03) !important}');
GM_addStyle('.server-row:hover {font-size: 18.5px;}');
GM_addStyle('.server-row:hover {background: rgb(255, 255, 255, 0.3);}');
GM_addStyle('.server-row {transition: all 0.3s}');
GM_addStyle('#server-tab-eu, #server-tab-na, #server-tab-ap {background-color: rgba(255, 255, 255, 0.1) !important}');
GM_addStyle('#servers-body-eu, #server-content {background-color: rgba(255, 255, 255, 0.03) !important}');
GM_addStyle('#servers-body-na, #server-content {background-color: rgba(255, 255, 255, 0.03) !important}');
GM_addStyle('#servers-body-ap, #server-content {background-color: rgba(255, 255, 255, 0.03) !important}');
GM_addStyle('.server-table,table,p.stext  {color: lightgray}');
GM_addStyle('.server-selected {background-color: gray}');
GM_addStyle('.server-selected {color: aqua}');
GM_addStyle('.sp-replacer, input[type="checkbox" i] {margin-right: 7.5px;}');
GM_addStyle('.scrimmage-select {border: 3px solid black; border-radius: 12px; padding: 5px; margin-top: 4px;}');
GM_addStyle('.xp-meter, .xp-meter > span {border-radius: 7px;}');
GM_addStyle('.xp-meter > span {background: linear-gradient(to right, silver, gray, #232323);}');
GM_addStyle('#main-social {background: none; border: none;}');
GM_addStyle('#main-rb {display: none;}');
GM_addStyle('* #popup-party {border-radius: 0px}');
GM_addStyle('* #popup-party {box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.25)}');
GM_addStyle('* .login-input {border-radius: 2px}');
GM_addStyle('* #chat-input {border-radius: 0 0 0px 0px}');
GM_addStyle('#btn-reddit.gota {display: none');
GM_addStyle(' #onesignal-bell-container.onesignal-reset .onesignal-bell-launcher.onesignal-bell-launcher-md .onesignal-bell-launcher-button {display: none;}');
GM_addStyle('* .ui-pane {box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.52)}');
GM_addStyle('#score-panel {display: inline-flex; background-color:rgba(23, 22, 23, 0); border:rgba(23, 22, 23, 0); color:blue; flex-direction: row; max-width: initial;}');
GM_addStyle('#party-panel {display: inline-flex;}');
(function() {
    'use strict'
document.getElementsByClassName(`options-container`)[0].id = "options";
document.getElementsByClassName(`main-bottom-stats interface-color`)[0].id = "stats";
document.getElementsByClassName(`error-banner`)[0].id = "banner";
document.getElementsByClassName(`main-bottom-links`)[0].id = "adv";
document.getElementsByClassName(`main-rb-title`)[0].id = "proftxt";
document.getElementsByClassName(`main-version`)[0].id = "version";
document.getElementsByClassName(`policyLinks interface-color`)[0].id = "policies";
document.getElementById(`policies`).style = `display: none`;
document.getElementById(`adv`).style = `display: none`;
document.getElementById(`stats`).style = `display: none`;
document.getElementById(`banner`).innerHTML = `An error has occured. If you can still play, just click this red box. Try Ctrl + F5 or refreshing the page.`;
document.getElementById(`version`).innerHTML += ` | Better Gota Version: ${version}`;
document.getElementById(`proftxt`).style = `font-size: 20px`;
document.getElementById(`proftxt`).innerHTML = `<font size = '4px'>Better Gota By Drapinqs</a>`;
document.getElementById(`proftxt`).innerHTML += `<br><br><br><br><br><br><br><font size = '5px' style = >`;
document.getElementById(`proftxt`).innerHTML += `<a id="youtube" class="gota-btn bottom-btn" href="https://youtube.com/drapinqs" target="_blank">YouTube</a>`;
document.getElementById(`proftxt`).innerHTML += `<br><br><br><br><br><br><font size = '5px'>𝗖𝘂𝘀𝘁𝗼𝗺 𝗕𝗮𝗰𝗸𝗴𝗿𝗼𝘂𝗻𝗱!</a>`;
document.getElementById(`proftxt`).innerHTML += `<br><font size = '3px'>Paste An Image Link And Refresh Your Page</a>`;
document.getElementById(`proftxt`).innerHTML += `<br><input type = 'text' style = 'height: 25px; width: 300px;' id = 'custombg'>`;
document.getElementById(`proftxt`).innerHTML += `<br><a id="scriptupdate" class="gota-btn bottom-btn" href="https://greasyfork.org/scripts/402239-better-gota-no-lag-smooth-drapinqs-v1-4/code/BETTER%20GOTA%20(No%20Lag,%20Smooth)%20~%20Drapinqs%20%5BV14%5D.user.js" target="_blank">Update Better Gota</a>`;
$("#main-left").css({
    "border-style": "solid",
    "border-width": "2px",
    "border-radius": "10px",
    "border-color": "#333333",
    "right": "100px",
});
$("#main").css({
    "border-style": "solid",
    "border-width": "2.7px",
    "border-radius": "15px",
});
$("#custombg").css({
    "border-width": "2px",
    "border-radius": "10px",
    "border-color": "gray",
    "font-size": "19px",
    "font-family": "Balsamiq Sans",
});
$("#btn-play,#btn-spec").css({
    "font-size": "19px",
    "font-family": "Balsamiq Sans",
    "width": "290px",
    "border-radius": "6px",
})
$("#scriptupdate").css({
    "position": "relative",
    "left": "340px",
});

$(".divider").css({
"width": "0px",
})
var minimap = document.getElementById('minimap-canvas');
minimap.style.background = "url('https://i.imgur.com/QF3128J.png')";
minimap.style.opacity = "0.6";
})();

//Custom Background
let defaultURL = `https://media4.giphy.com/media/3CuxMMBsMbmB9NXs9f/giphy.gif`;
GM_addStyle(`#main { background-image: url(${localStorage.getItem("bg")}); background-size: cover; }`);
GM_addStyle(`#main-social { background-image: url(${localStorage.getItem("bg")}); background-size: cover; }`);
document.getElementById(`custombg`).value = localStorage.getItem(`bg`);
    if (document.getElementById(`custombg`).value.length < 1) {
        localStorage.setItem(`bg`, defaultURL);
    } else {
            setInterval(function() {
                localStorage.setItem(`bg`, `${document.getElementById("custombg").value}`);
            }, 150)}

//Scrollbars
GM_addStyle('.options-container::-webkit-scrollbar, tbody#servers-body-eu::-webkit-scrollbar, tbody#servers-body-na::-webkit-scrollbar, .scrimmage-mode-box::-webkit-scrollbar {background-color: #3d3d3d; border-radius: 10px; width: 10px;}');
GM_addStyle('.options-container::-webkit-scrollbar-thumb {background-color: #5f5f5f; border-radius: 10px;}');
GM_addStyle('tbody#servers-body-eu::-webkit-scrollbar-thumb, tbody#servers-body-na::-webkit-scrollbar-thumb, .scrimmage-mode-box::-webkit-scrollbar-thumb {background-color: #7f7f7f; border-radius: 8px;}');
GM_addStyle(' #onesignal-bell-container.onesignal-reset .onesignal-bell-launcher.onesignal-bell-launcher-md .onesignal-bell-launcher-button {display: none;}');


//Other Tweaks/Modifications
GM_addStyle('#name-box {display: inline-flex}');
console.log("BETTER GOTA Extension is active. Search for help on the Gota Discord.");

var v = `Better Gota - Script By Drapinqs - ACTIVATED`;
$("#chat-body-0 > tr:nth-child(1) > td > span")
    .replaceWith(v);

     ////////////////////////////////////////////
    //                                        //
   // DO NOT MODIFY - DO NOT CLAIM OWNERSHIP //
  //                                        //
 ////////////////////////////////////////////
//  © 2020  Drapinqs, All Rights Reserved //