Auto Upgrader

Custom saved upgrades. Ssp Fighter, Glass Fighter, Ssp Overlord, Destroyer.

目前為 2024-09-04 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Auto Upgrader
// @namespace    http://tampermonkey.net/
// @version      2024-08-30
// @description  Custom saved upgrades. Ssp Fighter, Glass Fighter, Ssp Overlord, Destroyer.
// @author       Comma
// @match        *://diep.io/*
// @grant        none
// ==/UserScript==
(function() {
    'use strict';

var build_message = document.createElement("h1");

    function build_msg() {
build_message.style.display = 'block';
build_message.textContent = "Build";
build_message.style.zIndex = "9999";
build_message.style.width = "45vw";
build_message.style.height = "auto";
build_message.style.whiteSpace = "nowrap";
build_message.style.fontSize = "1em";
build_message.style.position = "absolute";
build_message.style.textAlign = "center";
build_message.style.top = "7%";
build_message.style.left = "50%";
build_message.style.transform = "translate(-50%, -50%)";
build_message.style.backgroundColor = "rgba(132, 132, 222, 0.5)";
build_message.style.color = "white";
build_message.style.padding = "0.5em";
build_message.style.borderRadius = "5px";

document.body.appendChild(build_message)
}

    setTimeout(function() {

var welcome_msg = document.createElement("h1");

welcome_msg.textContent = "Script by Comma, press TAB to toggle menu, report any bugs via Discord";
welcome_msg.style.zIndex = "9999";
welcome_msg.style.width = "45vw";
welcome_msg.style.height = "auto";
welcome_msg.style.whiteSpace = "nowrap";
welcome_msg.style.fontSize = "1em";
welcome_msg.style.position = "absolute";
welcome_msg.style.textAlign = "center";
welcome_msg.style.top = "7%";
welcome_msg.style.left = "50%";
welcome_msg.style.transform = "translate(-50%, -50%)";
welcome_msg.style.backgroundColor = "rgba(132, 132, 222, 0.5)";
welcome_msg.style.color = "white";
welcome_msg.style.padding = "0.5em";
welcome_msg.style.borderRadius = "5px";

document.body.appendChild(welcome_msg);

setTimeout(function msg(){welcome_msg.style.display = "none";
}, 5000);
}, 1000);


var Creator = document.createElement("div");
var Help = document.createElement("p");
var SSP_Ol = document.createElement("p");
var SSP_Fi = document.createElement("p");
var Glass_Fi = document.createElement("p");
var Destroyer = document.createElement("p");
var Ui_Toggle = document.createElement("p");
var Net_Predict_Toggle = document.createElement("p");
var Build_Create = document.createElement("p");
Creator.innerHTML = "Diep Build<br>Comma#4169";
Help.textContent = "TAB Key: Toggle On/Off";
SSP_Ol.textContent = "SSP Overlord: 1";
SSP_Fi.textContent = "SSP Fighter: 2";
Glass_Fi.textContent = "Glass Fighter: 3";
Destroyer.textContent = "Destroyer: 4";
Ui_Toggle.textContent = "UI Toggle: F - Disabled";
Build_Create.textContent = "Build Create: B";
Net_Predict_Toggle.textContent = "Net_Predict: - Enabled";

Help.onclick = function() {
if (t) {
Creator.style.display = 'none';
} else {
Creator.style.display = 'block';
}
t = !t;
};

    var t__1 = true;
    var renUI = true;
    var renPREDICT = true;
Ui_Toggle.onclick = function() {

    if(t__1) {
Ui_Toggle.textContent = "UI Toggle: F - Disabled"
        t__1 = !t__1

} else {
Ui_Toggle.textContent = "UI Toggle: F - Enabled"

 t__1 = !t__1
    }
}
Net_Predict_Toggle.onclick = function() {

if(Net_Predict_Toggle.textContent === "Net_Predict: - Enabled") {

input.set_convar("net_predict_movement", false)

Net_Predict_Toggle.textContent = "Net_Predict: - Disabled"

} else {
if(Net_Predict_Toggle.textContent === "Net_Predict: - Disabled"){
input.set_convar("net_predict_movement", true)
Net_Predict_Toggle.textContent = "Net_Predict: - Enabled"


}
}
}





SSP_Ol.onclick = function() {
input.execute('game_stats_build 565656565656568888888444444423233');
build_msg()
build_message.textContent = "SSP Overlord build applied";
setTimeout(function() {
build_message.style.display = "none";
}, 3000);

};
SSP_Fi.onclick = function() {
input.execute('game_stats_build 565656565656568888888777777723233');

build_msg()
build_message.textContent = "SSP Fighter build applied";

setTimeout(function() {
build_message.style.display = "none";
}, 3000);
};
Glass_Fi.onclick = function() {
input.execute('game_stats_build 56565656565656888888877777774444444');

build_msg()
build_message.textContent = "Glass Fighter build applied";
setTimeout(function() {
    build_message.style.display = "none";
}, 3000);

};
Destroyer.onclick = function() {
input.execute('game_stats_build 565656565656888888844444447777777');
build_msg()
build_message.textContent = "Destroyer build applied";

setTimeout(function() {
    build_message.style.display = "none";
}, 3000);
};

    Creator.style.position = "fixed";
    Creator.style.top = "0px";
    Creator.style.left = "0px";
    Creator.style.zIndex = "9999";
    Creator.style.backgroundColor = "rgba(0, 0, 0, 0.8)";
    Creator.style.color = "white";
    Creator.style.padding = "10px";
    Creator.style.borderRadius = "5px";


    document.body.appendChild(Creator);
    Creator.appendChild(Help);
    Creator.appendChild(SSP_Ol);
    Creator.appendChild(SSP_Fi);
    Creator.appendChild(Glass_Fi);
    Creator.appendChild(Destroyer);
    Creator.appendChild(Ui_Toggle);
    Creator.appendChild(Build_Create);
    Creator.appendChild(Net_Predict_Toggle);

Creator.querySelectorAll('p').forEach(p => {
        p.style.backgroundColor = 'rgba(0, 0, 0, 0.8)'; 
        p.style.margin = "0"; 
        p.style.padding = "5px"; 
        p.style.borderRadius = "3px"; 
        p.style.transition = "background-color 0.3s"; 

        p.addEventListener('mouseover', (event) => {
            event.target.style.backgroundColor = 'grey'; 
        });

        p.addEventListener('mouseout', (event) => {
            event.target.style.backgroundColor = 'rgba(0, 0, 0, 0.8)'; 
        });
    });

    var t = true;
    var t_2 = true;


    
document.addEventListener('keydown', function(event) {
  if (event.keyCode === 9) { // TAB key
    if (t) {
       Creator.style.display = 'none';
         } else {
             Creator.style.display = 'block';
     }
  t = !t;
  }
    });

   

 (function() { // SSP Overlord
  document.addEventListener('keydown', function(event) {
if (event.shiftKey && event.keyCode === 49) {
build_msg()
 build_message.textContent = "SSP Overlord build applied";
          input.execute('game_stats_build 565656565656568888888444444423233');
    setTimeout(function() {
    build_message.style.display = "none";
}, 3000);
}
        });
    })();

(function() { // SSP Fighter
        document.addEventListener('keydown', function(event) {
            if (event.shiftKey && event.keyCode === 50) {
                input.execute('game_stats_build 565656565656568888888777777723233');
                build_msg()
        build_message.textContent = "SSP Fighter build applied";
                    setTimeout(function() {
    build_message.style.display = "none";
}, 3000);
            }
        });
    })();

    (function() { // Glass Fighter
        document.addEventListener('keydown', function(event) {
            if (event.shiftKey && event.keyCode === 51) {
                input.execute('game_stats_build 56565656565656888888877777774444444');
                 build_msg()
            build_message.textContent = "Glass Fighter build applied";
                    setTimeout(function() {
    build_message.style.display = "none";
}, 3000);
            }
        });
    })();

    (function() { // Destroyer
        document.addEventListener('keydown', function(event) {
            if (event.shiftKey && event.keyCode === 52) {
                input.execute('game_stats_build 565656565656888888844444447777777');
                build_msg()
    build_message.textContent = "Destroyer build applied";
                    setTimeout(function() {
    build_message.style.display = "none";
}, 3000);
            }
        });
    })();

    (function() { // UI Toggle

        
     document.addEventListener('keydown', function(event) {
        if (event.key === 'f' || event.key === 'F') {
        if(Ui_Toggle.textContent === "UI Toggle: F - Enabled") {
            if (renUI == renUI) {
                renUI = !renUI
                input.set_convar("ren_ui", renUI);

            }
            }
        }
    });
})();




 //patched fuck u     (function() { // Auto Repel
   //patched fuck u      document.addEventListener('keydown', function(event) {
      //patched fuck u        if (event.keyCode === 90) { // Z key
      //patched fuck u            if (t_2) {
      //patched fuck u                input.key_Down('16');
       //patched fuck u           } else {
     //patched fuck u                 input.key_Down('16'); //patched
        //patched fuck u          }
        //patched fuck u          t_2 = !t_2;
     //patched fucku       }
    //patched fuck u      });
  //patched fuck u    })();

    (function() { // Build Create
        document.addEventListener('keydown', function(event) {
            if (event.keyCode === 66) {
               var build_c = document.createElement("div")
               var build_assistText = document.createElement("div")
               var name = document.createElement("div")
               var nameTutorial = document.createElement("div")

               build_c.textContent = "Create build"
                build_assistText.textContent = "Build your own build here<br> Press the number keys or the individual buttons to create your own build."
                name.textContent = "Name"
                nameTutorial.textContent = "Give your build a name"

                document.body.appendChild(build_c)
                document.body.appendChild(build_assistText)

            }
        });
    })();

})();