Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Zombs.io first cheat
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author iProgeny
- // @match *://zombs.io/*
- // @grant none
- // ==/UserScript==
- (function() {
- /*
- Health bar UI = .hud-health-bar-inner
- Night background UI = .hud-day-night-overlay
- Border time lapse bar UI = .hud-day-night-ticker
- Announcement Shutdown Overlay UI = .AnnouncementOverlay
- Announcement Shutdown UI = hud-announcement-shutdown
- */
- var r=255,g=0,b=0;
- var healthBarColor, playerNameColor, scoreColor, waveColor;
- //Function that remove the background opacity for the night overlay
- var dayNightOverlayRemove = document.getElementsByClassName("hud-day-night-overlay")[0].style.backgroundColor = "transparent";
- setInterval(function() {
- if(r > 0 && b == 0){
- r--;
- g++;
- }
- if(g > 0 && r == 0){
- g--;
- b++;
- }
- if(b > 0 && g == 0){
- r++;
- b--;
- }
- healthBarColor = document.getElementsByClassName("hud-health-bar-inner")[0].style.backgroundColor = "rgb("+r+","+g+","+b+")";
- playerNameColor = document.getElementsByClassName("is-active")[0].style.color = "rgb("+r+","+g+","+b+")";
- scoreColor = document.getElementsByClassName("player-score")[0].style.color = "rgb("+r+","+g+","+b+")";
- waveColor = document.getElementsByClassName("player-wave")[0].style.color = "rgb("+r+","+g+","+b+")";
- document.getElementsByClassName("hud-day-night-overlay")[0].style.opacity = "0"
- }, 10);
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement