BETTER GOTA (No Lag, Smooth) ~ Drapinqs [V1.3.1]

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

目前為 2020-05-04 提交的版本,檢視 最新版本

// ==UserScript==
// @name         BETTER GOTA (No Lag, Smooth) ~ Drapinqs [V1.3.1]
// @namespace    http://tampermonkey.net/*
// @version      1.3.1
// @description  No Lagg, Cleaner UI, Smoother Gameplay. Script Tested with Donut Extension ~ WARNING: THIS SCRIPT DOES NOT WORK ON LEGACY CLIENT
// @author       Drapinqs
// @match        https://gota.io/web/*
// @match        https://gota.io/web-legacy/*
// @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==

    ////////////////////////////////////
   //     BETTER GOTA VERSION 1.3.1  //
  //        NEW CHANGES BELOW       //
 ////////////////////////////////////
//
// ADDED/REMOVED:
//
// Removed more hidden links, (When you click on a button, It sends you to a website)
// Removed the old Discord link
// Added the Arise Clan Discord Link
// Fixed some font sizes
// Tweaked the prompt when you first load Gota
// NEW LOGO
// Smoothed the XP Meter edges
// Added Color to the XP Meter
// Added a YouTube button
// Added bug/suggestion report information
// Added 4 Buttons on the Main Menu (Youtube/Instagram/Telegram/And Others)
// Fixed broken Theme Link (Download Here) https://filebin.net/qdd99nczg1ai2stf/Drapinqs_Gota_Theme.7z?t=hftezwrr
// NEW FONT
// Fixed A Grammar Error
// Made Some Items More Bold
// Re-arranged the script to make it look better
// Added some things from Donut's script so I can code a little easier for the 1.4 update
// New Theme
////////////////////////////

let version = `1.3.1`;
addStyleSheet('@import url(https://fonts.googleapis.com/css?family=Jost);');
confirm('Subscribe to me on youtube! \nhttps://www.youtube.com/drapinqs \nDM me if you have an suggestion, Or see an error/bug :) \nDiscord: Drapinqs#0001');
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;}
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);
};


//Changes to the Gota Interface
GM_addStyle('.gota-btn {border-radius: 10px;}');
GM_addStyle('.gota-btn:hover {filter: hue-rotate(20deg)}');
GM_addStyle('.gota-btn:hover {box-shadow: 0px 0px 0px rgba(10,10,10,10)}')
GM_addStyle('.gota-btn:hover {box-shadow: 1px 1px 1px rgba(10,10,10,10)}');
GM_addStyle('.stext {margin-top: 2px; margin-bottom: 2px;}');
GM_addStyle('.server-row:hover {font-size: 18.5px;}');
GM_addStyle('.server-row {transition: all 0.2s}');
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, blue, cyan, turquoise, violet);}');
GM_addStyle('#main-social {background: none; border: 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(' #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)}');
(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.getElementById(`main-rb`).style = `display: none`;
document.getElementById(`adv`).style = `display: none`;
document.getElementById(`stats`).style = `display: none`;
document.getElementById(`proftxt`).style = `font-size: 20px`;
document.getElementById(`banner`).innerHTML = `An error has occured. If you can still play, just click this red box. Check your browsers console, Or ask for help on <a href = 'https://discord.gg/g35PABH'>Drapinqs Discord Server</a>.`;
document.getElementById(`proftxt`).innerHTML = `<font size = '4px' style = >Your Profile</a>`;
document.getElementById(`version`).innerHTML += ` | Better Gota Version: ${version}`;
document.getElementById(`proftxt`).innerHTML += `<br><br><br><br><br><br><br><font size = '3.5px' style = >Download My Theme (+Instructions)`;
document.getElementById(`proftxt`).innerHTML += `<font size = '3px' style = ><a href = 'https://anonfile.com/T2C6L2v2o6/Drapinqs_Gota_Theme_7z' target="_blank"> By Clicking Here</a>`;
document.getElementById(`proftxt`).innerHTML += `<br><br><font size = '4px' style = >BETTER GOTA by Drapinqs `;
document.getElementById(`proftxt`).innerHTML += `<font size = '3px' style = ><a href = 'https://youtube.com/drapinqs' target="_blank">https://youtube.com/drapinqs</a>`;
document.getElementById(`proftxt`).innerHTML += `<br><font size = '1px' style = > `;
document.getElementById(`proftxt`).innerHTML += `<br><img src = 'https://i.imgur.com/zzuReYN.png' onclick = window.open("https://discord.gg/g35PABH")>`;
document.getElementById(`proftxt`).innerHTML += `<a id="bugreport" href="https://aspiratemachine.htmlpasta.com">Report A Bug<a id="spaceapart">  <a id="suggestionadd" href="https://mealierwake.htmlpasta.com" target="_blank">Add A Suggestion</a>`;
$(".main-bottom-right").append('<a id="drapinqsyt" href="https://youtube.com/drapinqs" target="_blank">YouTube</a>');
$(".main-bottom-right").append('<a id="instagram" href="https://instagram.com/zvrcx" target="_blank">Instagram</a>');
$(".main-bottom-right").append('<a id="telegram" href="https://t.me/drapinqs" target="_blank">Telegram</a>');
$(".main-bottom-right").append('<a id="scmedia" href="https://forms.gle/S6msLCGeLgvGCCq57" target="_blank">Social Media</a>');
$("#scmedia").css({
    "border-style": "solid",
    "border-width": "1.2px",
    "border-color": "#fff",
    "border-radius": "10px",
    "padding": "0 10px 3px 10px",
    "font-size": "19px",
    "text-align": "center" });
$("#telegram").css({
    "border-style": "solid",
    "border-width": "1.2px",
    "border-color": "#fff",
    "border-radius": "10px",
    "padding": "0 10px 3px 10px",
    "font-size": "19px",
    "text-align": "center" });
$("#instagram").css({
    "border-style": "solid",
    "border-width": "1.2px",
    "border-color": "#fff",
    "border-radius": "10px",
    "padding": "0 10px 3px 10px",
    "font-size": "19px",
    "text-align": "center" });
$("#bugreport").css({
    "border-style": "solid",
    "border-width": "1.2px",
    "border-color": "#fff",
    "border-radius": "10px",
    "padding": "0 10px 3px 10px",
    "font-size": "19px",
    "text-align": "center" });
$("#suggestionadd").css({
    "border-style": "solid",
    "border-width": "1.2px",
    "border-color": "#fff",
    "border-radius": "10px",
    "padding": "0 10px 3px 10px",
    "font-size": "19px",
    "text-align": "center" });
$("#drapinqsyt").css({
    "border-style": "solid",
    "border-width": "1.2px",
    "border-color": "#fff",
    "border-radius": "10px",
    "padding": "0 10px 3px 10px",
    "font-size": "19px",
    "text-align": "center" });
})();

//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, {background-color: #7f7f7f; border-radius: 10px;}');

//Other Tweaks/Modifications
GM_addStyle('#name-box {display: inline-flex;}');
("#btn-trello").remove();
console.log("BETTER GOTA Extension is active. Message Me (Drapinqs#0001) on discord for help.",)

// Gota.io Features by Donut Labels
    var btnTemplate = document.createElement('button');
    btnTemplate.className = 'gota-btn bottom-btn';
    btnTemplate.style.color = 'white';
    btnTemplate.style.backgroundColor = 'rgba(23,22,23,.9)';
    var footer = document.createElement('div');
    footer.style.marginTop = '12px';
    win.appendChild(footer);
    var win = document.createElement('div');
    win.style.position = 'relative';
    win.style.top = '50%';
    win.style.left = '50%';
    win.style.display = 'inline-block';
    win.style.margin = '0';
    win.style.padding = '15px';
    win.style.width = 'max-content';
    win.style.color = 'white';
    win.style.fontFamily = 'Arial, Helvetica, sans-serif';
    win.style.fontSize = '16px';
    win.style.lineHeight = '22px';
    win.style.textAlign = 'center';
    win.style.backgroundColor = 'rgb(14,14,14)';
    win.style.border = 'solid 2px rgba(255,255,255,.2)';
    win.style.borderRadius = '5px';
    win.style.transform = 'translate(-50%, -50%)';
    var blackout = document.createElement('div');
    blackout.className = 'donut-blackout';
    blackout.style.position = 'fixed';
    blackout.style.top = '0';
    blackout.style.right = '0';
    blackout.style.bottom = '0';
    blackout.style.left = '0';
    blackout.style.display = 'none';
    blackout.style.background = 'rgba(0,0,0,.5)';
    blackout.style.overflow = 'auto';
    blackout.style.zIndex = '100';
    document.body.appendChild(blackout);

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