diep.io hard mode!

try to take over the world!

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         diep.io hard mode!
// @namespace    http://tampermonkey.net/
// @version      2.0
// @description  try to take over the world!
// @author       恋ポケ
// @match        http*://*diep.io/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
function hard(){
    input.execute("net_replace_color 14 0xFF0000");
    input.execute("net_replace_color 2 0xFFE869");
    input.execute("net_replace_color 3 0xFFFFFF");
    input.execute("net_replace_color 4 0x444444");
    input.execute("net_replace_color 5 0xFF0000");
    input.execute("net_replace_color 6 0x0000FF");
    input.set_convar("ren_background_color",0x000000);
    input.set_convar("ren_grid_color",0xFF0000);
    input.set_convar("ren_grid_base_alpha",1);
    input.set_convar("ren_health_bars",false);
    input.set_convar("ren_scoreboard",false);
};

function nohard(){
    input.execute("net_replace_color 14 0xBBBBBB");
    input.execute("net_replace_color 2 0x00B1DE");
    input.execute("net_replace_color 3 0x00B1DE");
    input.execute("net_replace_color 4 0xF14E54");
    input.execute("net_replace_color 5 0xBE7FF5");
    input.execute("net_replace_color 6 0x00F46C");
    input.set_convar("ren_background_color",13487565);
    input.set_convar("ren_grid_color",0);
    input.set_convar("ren_grid_base_alpha",0.1000000);
    input.set_convar("ren_health_bars",true);
    input.set_convar("ren_scoreboard",true);
};

    var NewButton1 = document.createElement("button");
  NewButton1.setAttribute("id", "Local_Mode");
  NewButton1.innerHTML = "Hard Mode:OFF";
  NewButton1.style.color = "blue";
  NewButton1.style.fontSize = "20px";
  NewButton1.style.width = "40em";
  NewButton1.style.backgroundColor = "white";
  window.myFunc = function () {
hard();
document.getElementById("Local_Mode").style.display = "none";
document.getElementById("Hard_Mode").style.display = "block";
  };
NewButton1.addEventListener('click', window.myFunc);
  document.getElementById("a1").parentNode.appendChild(NewButton1);
var reference1 = document.getElementById('a1');
reference1.parentNode.insertBefore(NewButton1, reference1);

    var NewButton2 = document.createElement("button");
  NewButton2.setAttribute("id", "Hard_Mode");
  NewButton2.innerHTML = "Hard Mode:ON";
  NewButton2.style.color = "yellow";
  NewButton2.style.fontSize = "20px";
  NewButton2.style.width = "40em";
  NewButton2.style.backgroundColor = "red";
  NewButton2.style.borderColor = "#9D0015";
  window.myFunc = function () {
nohard();
document.getElementById("Hard_Mode").style.display = "none";
document.getElementById("Local_Mode").style.display = "block";
  };
NewButton2.addEventListener('click', window.myFunc);
  document.getElementById("a1").parentNode.appendChild(NewButton2);
var reference2 = document.getElementById('a1');
reference2.parentNode.insertBefore(NewButton2, reference2);

document.getElementById("Hard_Mode").style.display = "none";
})();