Skip to content

Multarix/Discord-Remove-useless-chat-buttons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord: Remove useless chat buttons

Remove the gift nitro, gif and sticker buttons from the chat bar in discord!

IMPORTANT INFO - 26/01/2022

Discord seems to have disabled accessing the developer console within the production version.
There are currently 2 work arounds:

  1. Install and use Discord Canary. You can download canary here: https://canary.discord.com/
  2. Re-Enable it in discord settings (Reccomended). You can do this by going to %appdata%/discord/settings.json and adding the following line to the bottom:
    "DANGEROUS_ENABLE_DEVTOOLS_ONLY_ENABLE_IF_YOU_KNOW_WHAT_YOURE_DOING": true (Remember to add a comma on the previous line)

What is this for?

This repository is for those looking to hide the "Gift Nitro", "Boost this server", "Stickers" or "GIF" buttons from the chat bar in discord. If reading this far into the future, please note that this may not work.

There are 2 versions of the scripts here:

  1. "All" versions remove the Gift Nitro, Stickers and GIF buttons, (Note that you can still access gifs and stickers via the tabs in the emoji button that remains)
  2. "KeepGIF" versions remove the Gift Nitro and Sticker buttons only (Note that you can still access the stickers via the tab in the emoji/ gif buttons that remain)

The script will need to be re-pasted in every time you start discord. If something goes wrong, restarting discord should fix it.

I hold no responsibility for you breaking your discord or other things happening


To use these, while discord is open, press Ctrl + Shift + I. You will be presented with a console. First and foremost you'll be greeted with a giant message telling you that pasting anything inside the console has a high chance of being a scam. The reason they tell you this, is due to potential security/ account stealing problems, as well as potentially doing exactly what this script aimed to do: Removing nitro bloat. If unsure, get someone else to check the code before using it. Copy and paste the script into the console and hit enter.

Some last minute warnings

  • This may potentially hide other objects related to these things in the future if discord changes anything, so as stated above, if you happen to be using this far into the future, it may not work as expected.
  • Trying to use both versions of the script at the same time will probably cause problems, don't try it.

Userscripts

In the event you use the web based version of discord rather than the app, Tampermonkey versions are available too:

Quick Access: All Version

const buttonsToHide = ["Open GIF picker", "Open sticker picker", "Send a gift", "Boost this server"];
let css = "";
buttonsToHide.forEach(button => css = css.concat(`[aria-label="${button}"]{display:none}`));
css = css.concat('[id="channel-attach-THREAD"]{display:none}');
const style = document.createElement('style'); style.innerHTML = css;
document.body.appendChild(style);

Quick Access: Keep GIF Version

const buttonsToHide = ["Open sticker picker", "Send a gift", "Boost this server"];
let css = "";
buttonsToHide.forEach(button => css = css.concat(`[aria-label="${button}"]{display:none}`));
css = css.concat('[id="channel-attach-THREAD"]{display:none}');
const style = document.createElement('style'); style.innerHTML = css;
document.body.appendChild(style);

Experimental: Remove threads

Removes the "Create thread" from the upload panel, as well as the new thread icon at the top of the ui.

const buttonsToHide = ["Open sticker picker", "Send a gift", "Boost this server"];
let css = "";
buttonsToHide.forEach(button => css = css.concat(`[aria-label="${button}"]{display:none}`));
css = css.concat('[id="channel-attach-THREAD"]{display:none}');
const style = document.createElement('style'); style.innerHTML = css;
document.body.appendChild(style);

About

Remove the gift nitro, gif and sticker buttons from the chat bar in discord

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published