Skip to content

Commit

Permalink
updated till v2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Bunnydreams committed Mar 27, 2019
1 parent 18f20d0 commit cf01de4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions hide-discord-sidebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
}

.titleWrapper-1l0xT9 .flex-1xMQg5.flex-1O1GKY.horizontal-1ae9ci.horizontal-2EEEnY.flex-1O1GKY.directionRow-3v3tfG.justifyStart-2NDFzi.alignCenter-1dQNNs.noWrap-3jynv6 {
padding-right: 50px;
padding-right: 100px;
}

.container-3gCOGc .flex-1xMQg5.flex-1O1GKY.horizontal-1ae9ci.horizontal-2EEEnY.flex-1O1GKY.directionRow-3v3tfG.justifyStart-2NDFzi.alignCenter-1dQNNs.noWrap-3jynv6 {
padding-right: 50px;
padding-right: 100px;
}

.container-3gCOGc {
Expand Down
4 changes: 3 additions & 1 deletion hide-discord-sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ function discordHack() {
// When Discord chat is loaded
// if (document.querySelector('.divider-2PMBlV').parentNode.childNodes.length == 7 || document.querySelector('.divider-2PMBlV').parentNode.childNodes.length == 4) {

// Changed as of version 2.5 to be handled by CSS
/* CHANNELS */
// var channelPlaceholder = "3.5vmin";
// var channelWidth = "40vmin";
Expand All @@ -22,7 +23,8 @@ function discordHack() {
// })

/* SERVERS */
var guildsWrapper = document.getElementsByClassName('guildsWrapper-5TJh6A')[0];
var guildsWrapper = document.getElementsByClassName('guildsWrapper-5TJh6A')[0]
|| document.getElementsByClassName('wrapper-1Rf91z')[0];

var btn = document.createElement("BUTTON");
var t = document.createTextNode("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.5",
"version": "2.7",
"description": "Installs an unfolding sidebar for Discord channels and a button that hides/shows the Discord server list.",
"manifest_version": 2,
"permissions": ["*:https://*.discordapp.com/*"],
Expand Down

0 comments on commit cf01de4

Please sign in to comment.