ResHack

A brief description of your script

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

    // ==UserScript==
    // @name           ResHack
    // @description    A brief description of your script
    // @author         Austin Fairgray
    // @include        https://discord.com*
    // @version        1.1
// @namespace https://greasyfork.org/users/708168
    // ==/UserScript==

    function displayContent(filter) {
        var src = [];
        var imgs = document.images;
        for (var i = 0, iLen = imgs.length; i < iLen; i++) {
            if (imgs[i].src.includes(filter)) {
                src[i] = imgs[i].src;
                window.open(imgs[i].src, '_blank');
                console.log(imgs[i].src);
            }
        }
    }

    var guiButtonUser = document.createElement("DIV");
    guiButtonUser.innerHTML = "User Icons";
    guiButtonUser.style = "border-radius:7px;background-color:#7289DA;padding:5px 70px;display:inline-block;font-family:sans-serif;border:0.5px solid #2C2F33;";
    guiButtonUser.id = "guiButtonUser";
    document.body.insertBefore(guiButtonUser, document.body.firstChild);

    var guiButtonIcons = document.createElement("DIV");
    guiButtonIcons.innerHTML = "Server Icons";
    guiButtonIcons.style = "border-radius:7px;background-color:#7289DA;padding:5px 70px;display:inline-block;font-family:sans-serif;border:0.5px solid #2C2F33;margin:0px 5px;";
    guiButtonIcons.id = "guiButtonIcons";
    document.body.insertBefore(guiButtonIcons, document.body.firstChild);

    document.getElementById('guiButtonUser').addEventListener("click", function () {
        displayContent("avatars"); //icons channel-icons
    });

    document.getElementById('guiButtonIcons').addEventListener("click", function () {
        displayContent("icons");
    });