Skip to content

Commit

Permalink
v2.9: to fix Discord update
Browse files Browse the repository at this point in the history
  • Loading branch information
bunnydreams committed Sep 11, 2019
1 parent 1340a54 commit 28afbbb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions hide-discord-sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ function discordHack() {
/* SERVERS */
var guildsWrapper = document.getElementsByClassName('guildsWrapper-5TJh6A')[0]
|| document.getElementsByClassName('wrapper-1Rf91z')[0];
var app = document.getElementsByClassName('base-3dtUhz')[0];

var btn = document.createElement("BUTTON");
var t = document.createTextNode("Hide Servers");
Expand Down Expand Up @@ -57,11 +58,13 @@ function discordHack() {

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

function showServers() {
guildsWrapper.style.display = 'flex';
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.8",
"version": "2.9",
"description": "Installs an unfolding sidebar for Discord channels and a button that hides/shows the Discord server list.",
"manifest_version": 2,
"permissions": ["*://*.discordapp.com/*"],
Expand Down

0 comments on commit 28afbbb

Please sign in to comment.