Skip to content

Commit

Permalink
Updated for "commands"
Browse files Browse the repository at this point in the history
  • Loading branch information
Multarix committed Aug 21, 2024
1 parent 395bd04 commit 9f1e0fd
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 29 deletions.
16 changes: 3 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const buttonsToHide = ["Open GIF picker", "Open sticker picker", "Send a gift",
let css = "";
buttonsToHide.forEach(button => css = css.concat(`[aria-label="${button}"]{display:none}`));
css = css.concat('[id="channel-attach-THREAD"]{display:none}');
css = css.concat('div[class^="channelAppLauncher"]{display:none}');
const style = document.createElement('style'); style.innerHTML = css;
document.body.appendChild(style);
```
Expand All @@ -50,18 +51,7 @@ 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}');
css = css.concat('div[class^="channelAppLauncher"]{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.

```js
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);
```
```
5 changes: 3 additions & 2 deletions all.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
// @homepageURL https://github.com/Multarix/Discord-Remove-useless-chat-buttons
// @supportURL https://github.com/Multarix/Discord-Remove-useless-chat-buttons/issues
// @grant none
// @version 1.4
// @version 1.5
// @author Multarix
// @description Working as of: 28/10/2022
// @description Working as of: 21/08/2024
// ==/UserScript==

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}');
css = css.concat('div[class^="channelAppLauncher"]{display:none}');
const style = document.createElement('style'); style.innerHTML = css;
document.body.appendChild(style);
5 changes: 3 additions & 2 deletions keepGif.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
// @homepageURL https://github.com/Multarix/Discord-Remove-useless-chat-buttons
// @supportURL https://github.com/Multarix/Discord-Remove-useless-chat-buttons/issues
// @grant none
// @version 1.4
// @version 1.5
// @author Multarix
// @description Working as of: 28/10/2022
// @description Working as of: 21/08/2024
// ==/UserScript==

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}');
css = css.concat('div[class^="channelAppLauncher"]{display:none}');
const style = document.createElement('style'); style.innerHTML = css;
document.body.appendChild(style);
6 changes: 0 additions & 6 deletions script-all.js

This file was deleted.

6 changes: 0 additions & 6 deletions script-keepGIF.js

This file was deleted.

0 comments on commit 9f1e0fd

Please sign in to comment.