Created
June 27, 2021 17:19
-
-
Save Arnau478/64a8c52ed7983af826d496ad94eceedb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* HOW TO USE | |
* | |
* 1. Press Ctrl+Alt+I | |
* 2. Go to "Console" tab | |
* 3. Paste all the code there and press enter | |
* 4. When asked, enter the image URL | |
* | |
* ### IMPORTANT ### | |
* URL must be from discord.com domain or image won't display. | |
* (What you can do is copy the image and paste it into a discord chat. Then Right click > Copy link.) | |
* | |
* IF YOU ARE USING DESKTOP CLIENT, PLEASE REPLACE "prompt("Enter image URL")" AT LINE 17 WITH YOUR URL | |
* | |
*/ | |
var url = prompt("Enter image URL"); // Ask for URL | |
var parent = document.getElementsByClassName("childWrapper-anI2G9")[0]; //Get childWrapper | |
parent.innerHTML = '<img src="' + url + '" width="50" height="50">'; //Remove previous or default icon and add custom one |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment