Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
whyisthesheep committed Apr 10, 2024
1 parent 01066da commit 8df6857
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
23 changes: 23 additions & 0 deletions plugins/debloater/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
export function onLoad() {
const customCSS = `
button[aria-label="Open sticker picker"],
button[aria-label="Open GIF picker"],
button[aria-label="Send a gift"],
div[aria-label="Help"],
div[aria-label="Inbox"],
div[aria-label="Add Friends to DM"],
#channel-attach-SLASH_COMMAND,
div[aria-label="Explore Discoverable Servers"],
li.channel__0aef5:nth-child(3),
li.channel__0aef5:nth-child(4),
div[aria-label="Family Centre"],
div[aria-label="Clips"] {
display: none !important;
}
`;

const styleElement = document.createElement('style');
styleElement.textContent = customCSS;
document.head.appendChild(styleElement);
console.log("Debloated CSS applied successfully!");
}
5 changes: 5 additions & 0 deletions plugins/debloater/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "Debloater",
"author": "whyisthesheep",
"description": "A plugin to remove basic bloat from discord"
}

0 comments on commit 8df6857

Please sign in to comment.