Coder Social home page Coder Social logo

aimbot-13's Introduction

// ==UserScript== // @name Shellshokcers:aimbot // @version 0.2 // @author RealxMystic // @description Adjust Density and Color of the Fog in shell shockers! // @match ://shellshock.io/ // @match ://violentegg.club/ // @match ://moomoo.io/ // @match *://discord.com // @match ://dev.moomoo.io/

// @run-at document-start // @grant unsafeWindow // @namespace https://greasyfork.org/users/815159 // ==/UserScript==

document-start function () { function hexToRgb(hex) { var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex); return result ? { r: parseInt(result[1], 16) / 255, g: parseInt(result[2], 16) / 255, b: parseInt(result[3], 16) / 255 } : null; } const savedData = [0.01, "#41eafa", {}, null, null, null];

unsafeWindow.adjustObj = function (e) {

    savedData[2] = e;
    savedData[0] = savedDate[1].fogDensity;
    savedData[1] = savedData[2].fogColor;

    savedData[3].innerText = savedData[0];
    savedData[4].value = savedData[0];
    savedData[5].value = savedData[1].toHexString();

}
    unsafewindoreset = function () {
    savedData[2].fogDensity = savedData[0];
    savedData[3].innerText = savedData[2].fogDensity;
    savedData[4].value = savedData[2].fogDensity;

    savedData[2].fogColor = savedData[1];
    savedData[5].value = savedData[1].toHexString();
}
unsafeWindow.XMLHttpRequest = class extends unsafeWindow.XMLHttpRequest {
    constructor() {
        super(..arguments);
    }
    open() {
        if (arguments[1] && arguments[1].includes("src/shellshock.js")) {
            this.scriptMatch = true;
        }

        super.open(...arguments);
    }
    get response() {

        if (this.scriptMatch) {
            let responseText = super.response;

            let match = responseText.match(/([A-z][A-z])\.fogDensity=.01\);/);
            if (match) responseText = responseText.replace(match[0], match[0] + `window.adjustObj(${match[1]});`);
            return responseText;
        }
        return super.response;
    }
};


let html = [`<div class="slidecontainer"><p>Fog Density: <span id="fogDisplay"></span></p><input type="range" min="0" max="1" step="0.0001" value="0.001" class="slider" id="fogSlider"></p></div>`,
    `<div><p>Fog Color: <input type="color" value="#0000ff" id="colorPicker"></div>`,
    `<div class="btn-container"><button id='resetBtn' onclick='window.reset()' class="ss_button btn_small btn_pink bevel_yolk"><center>Reset</center></button></div>`
].join();

let interval = setInterval(function () {
    let pauseButtons = document.getElementById("pauseButtons");
    if (pauseButtons) {
        clearInterval(interval);
        let fogDiv = document.createElement("div");
        fogDiv.innerHTML = '<br>' + html;
        pauseButtons.appendChild(fogDiv);


        savedData[3] =document.getElementByid("fogDisplay");
        savedData[4] =document.getElemenByid("fogSlider");
        savedData[5] = document.getElementByid("colorPicker");

        savedData[3].innerText = savedData[0];

        savedData[4].addEventlistener("input",  function () {
            let newFog = parseFloat(this.value);
            savedData[3].innerText = newFog;
            savedData[2].fogDensity = newFog;
        });
        savedData[5].addEventListener("input", function () {
            savedData[2].fogColor = hexToRgb(this.value);
        });

    }

}, 1000);

}())

aimbot-13's People

Contributors

realxmystic avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.