Diep Custom Background

Custom backgrounds for diep.io.

// ==UserScript==
// @name         Diep Custom Background
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Custom backgrounds for diep.io.
// @author       Adasba
// @license      MIT
// @match        http://*diep.io/*
// @match        https://*diep.io/*
// @match        *://diep.io/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    var img = document.createElement('img');
    img.style = "z-index:-1;position:fixed;top:0px;left:0px";
    document.getElementsByTagName('body')[0].appendChild(img);



    var shaderButton = document.createElement('button');
    document.getElementsByTagName('body')[0].appendChild(shaderButton);
    var bg = true;
    shaderButton.style = "position:absolute; top:0px; left:0px;";
    shaderButton.innerHTML = "BG on/off";
    shaderButton.onclick = function() {
        bg = !bg;
        input.set_convar('ren_background', bg);
    }
    
    function loop1() {
        img.src = "https://upload.wikimedia.org/wikipedia/commons/8/80/Backgorund.gif";
    }
    setInterval(loop1, 1000);
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址