Skip to content

Commit

Permalink
v2.16: fixes extra space on the right of sidebar after discord update
Browse files Browse the repository at this point in the history
Screenshot of bug: https://imgur.com/a/GNcE0oW
  • Loading branch information
patrickxchong committed Apr 13, 2021
1 parent 4a97bbd commit 5be1595
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions hide-discord-sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function hideDiscordSidebar() {
// as a general fallback to select the server list.
|| document.querySelector("nav[class*=wrapper-]");

const app = document.getElementsByClassName('base-3dtUhz')[0];
// const app = document.getElementsByClassName('base-3dtUhz')[0];

const btn = document.createElement("BUTTON");
const t = document.createTextNode("Hide Servers");
Expand Down Expand Up @@ -67,13 +67,13 @@ function hideDiscordSidebar() {

function hideServers() {
guildsWrapper.style.display = 'none';
app.style.left = 0;
// app.style.left = 0;
btn.innerHTML = "Show Servers";
}

function showServers() {
guildsWrapper.style.display = 'flex';
app.style.left = "72px";
// app.style.left = "72px";
btn.innerHTML = "Hide Servers";
}

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Hide Discord Sidebar",
"short_name": "Hide Dis Bar",
"version": "2.15",
"version": "2.16",
"description": "Installs an unfolding sidebar for Discord channels and a button that hides/shows the Discord server list.",
"manifest_version": 2,
"permissions": ["*://*.discord.com/*", "storage", "declarativeContent"],
Expand Down

0 comments on commit 5be1595

Please sign in to comment.