zDrakeYT Script

Play without lag!

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 or Violentmonkey 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.

(У мене вже є менеджер скриптів, дайте мені встановити його!)

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         zDrakeYT Script
// @namespace    http://tampermonkey.net/
// @version      1.4.2
// @description  Play without lag!
// @author       Drake
// @match        http://gota.io/web/*
// @grant        GM_addStyle
// @contributor  Verseh, Superdoggy
// @icon         https://i.imgur.com/8flhHLL.png
// ==/UserScript==

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;
}

//Custom Font, Logo and Minimap
addStyleSheet('@import url(https://fonts.googleapis.com/css?family=Ubuntu);');
GM_addStyle('* #logo {background-image: url("http://i.imgur.com/PIy1bq2.png");}');
GM_addStyle('* #minimap-canvas {background-image: url("https://i.imgur.com/1lj5X7a.png");}');
GM_addStyle('*{font-family: Ubuntu;}');
GM_addStyle('* .coordinates {font-family: Ubuntu;}');
GM_addStyle('* #leaderboard-panel {font-size: 22px;}');

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

//Custom Borders
GM_addStyle('* .main-panel {border: solid 3px rgba(99, 97, 95, 0.5)}');
GM_addStyle('* .main-panel {border-radius: 5px}');
GM_addStyle('* .main-panel {box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.52)}');
GM_addStyle('* .gota-btn {border-radius: 15px}');
GM_addStyle('* .main-bottom-stats {border-radius: 5px}');
GM_addStyle('* #popup-party {border-radius: 5px}');
GM_addStyle('* #popup-party {border-width: 2px}');
GM_addStyle('* #popup-party {box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.25)}');
GM_addStyle('* #popup-login {border-radius: 5px}');
GM_addStyle('* #popup-login {border-width: 2px}');
GM_addStyle('* #popup-login {box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.25)}');
GM_addStyle('* .login-input {border-radius: 0px}');
GM_addStyle('* #chat-input {border-radius: 0 0 0px 0px}');
GM_addStyle('* .ui-pane {box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.52)}');
GM_addStyle('* #chat-container {border-radius: 5px 5px 0px 0px}');
GM_addStyle('* .main-bottom-stats {box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.52)}');
document.getElementById("leaderboard-panel").style.borderRadius = "5px";
document.getElementById("leaderboard-panel").style.borderWidth = "2px";
document.getElementById("leaderboard-panel").style.boxShadow = "0px 0px 0px black";
document.getElementById("score-panel").style.borderRadius = "5px";
document.getElementById("score-panel").style.borderWidth = "2px";
document.getElementById("score-panel").style.boxShadow = "0px 0px 0px black";
document.getElementById("minimap-panel").style.borderRadius = "5px";
document.getElementById("minimap-panel").style.borderWidth = "2px";
document.getElementById("minimap-panel").style.boxShadow = "0px 0px 0px black";
document.getElementById("party-panel").style.borderRadius = "5px";
document.getElementById("party-panel").style.borderWidth = "2px";
document.getElementById("party-panel").style.boxShadow = "0px 0px 0px black";

//Miscellaneous UI Changing code
GM_addStyle('* #chat-panel {width: 300px}');
GM_addStyle('* #chat-panel {height: 195px}');
GM_addStyle('* #chat-input {font-weight: bold}');
GM_addStyle('* .stext {margin-top: 2px}');
GM_addStyle('* .stext {margin-bottom: 2px}');
GM_addStyle('* #name-box {font-weight: bold}');
GM_addStyle('* .server-row:hover {font-size: 16px}');
GM_addStyle('* .server-row:hover {font-weight: bold}');
GM_addStyle('* .server-row {transition: all 0.3s}');
GM_addStyle('* .gota-btn:hover {filter: hue-rotate(25deg)}');
GM_addStyle('* .gota-btn:hover {box-shadow: 0px 0px 0px rgba(10,10,10,10)}');
GM_addStyle('* .main-panel {background: #070707}');
GM_addStyle('* .bottom-btn {margin-bottom: 3px}');
GM_addStyle('* #main {width: 1025px; background-color: transparent; border: none;}');
GM_addStyle('* #main-content {width: 305px; height: 490px; margin-top: 80px;}');
GM_addStyle('* #main-side {height: 490px; margin-top: 80px;}');
GM_addStyle('* #main-left {margin-top: 80px; margin-right: 11px; margin-left: -16px; height: 300px;}');
GM_addStyle('* .keybinds-btn {background: white; border: 1.5px solid black; border-radius: 15px; color: black; font-weight: bold}');
GM_addStyle('* .keybinds-table {background: #333; border-radius: 5px; padding: 12px;}');
GM_addStyle('* .sp-replacer, input[type="checkbox" i] {margin-right: 7.5px;}');

//Social Media Button Removal
$(".main-bottom-links").replaceWith("");

//Namebox display fix
GM_addStyle('* #name-box {display: inline-flex;}');

//Script Version Indicator
var maincontent = document.getElementById("main-content");
  var drakeversion = document.createElement("div");
  drakeversion.innerHTML = 'Script Version: 1.4.2<br>Release Date: October 2nd, 2017';
  drakeversion.id = 'drakescript';
  maincontent.appendChild(drakeversion);
document.getElementById("drakescript").style.cssText = "text-align:center;font-size:12px;color:white;";

//Custom Crosshair
GM_addStyle ('* body {cursor: url(http://theoxt.com/cursors/cursor_01.cur)16 16, auto;}');

//Custom Checkboxes
GM_addStyle('input[type="checkbox" i] {-webkit-appearance: none; background: #ff0000; color: white; border-radius: 5px; padding: 4px; transition: background 0.3s;}');
GM_addStyle('input[type="checkbox" i]:checked {background: #00f000; color: #014401; padding: 4px; padding-right: 9px;}');
GM_addStyle('input[type="checkbox" i]:checked:after {content: "ON";}');
GM_addStyle('input[type="checkbox" i]:not(:checked):before {content: "OFF"}');

//Custom scrollbars
GM_addStyle('.options-container::-webkit-scrollbar, tbody#servers-body-eu::-webkit-scrollbar, tbody#servers-body-na::-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;}');

//Hide food toggle
document.addEventListener('keydown', function(e) {
var key = e.keyCod || e.which;
switch (key) {case 45: document.getElementById("cHideFood").click();}});

//Disable coordinates
if (document.getElementById('cHideCoordinates').checked === false) {
    document.getElementById('cHideCoordinates').click();
}