Skip to content

Commit

Permalink
v2.10 fixes channels issue from discord update
Browse files Browse the repository at this point in the history
  • Loading branch information
bunnydreams committed Sep 13, 2019
1 parent 28afbbb commit bcef9e5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 31 deletions.
11 changes: 4 additions & 7 deletions hide-discord-sidebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
z-index: 0;
}


#hideNshow {
/* background: rgba(32, 34, 37, 0.6); */
background: #4f5660;;
Expand All @@ -29,26 +28,24 @@
width: 90px;
}

.layer-3QrUeG .channels-Ie2l6A {
.sidebar-2K8pFh {
transition: all 0.1s ease 0.1s;
width: 0!important;
padding-left: 3.5vmin!important;
}
.layer-3QrUeG .channels-Ie2l6A:hover {
.sidebar-2K8pFh:hover {
width: 40vmin!important;
padding-left: 0!important;
}



.layer-3QrUeG .channels-Ie2l6A > * {
.sidebar-2K8pFh > * {
visibility: hidden;
opacity: 0;
transition: visibility 0s 0.2s, opacity 0.2s linear;
/* display: none; */
}

.layer-3QrUeG .channels-Ie2l6A:hover > * {
.sidebar-2K8pFh:hover > * {
visibility: visible;
opacity: 1;
transition: opacity 0.2s linear;
Expand Down
23 changes: 0 additions & 23 deletions hide-discord-sidebar.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,5 @@
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";
// var channels = document.getElementsByClassName('channels-Ie2l6A')[0];

// channels.style.width = 0;
// channels.style.paddingLeft = channelPlaceholder;

// channels.addEventListener("mouseover", function() {
// channels.style.width = channelWidth;
// channels.style.paddingLeft = 0;
// })

// channels.addEventListener("mouseout", function() {
// channels.style.width = 0;
// channels.style.paddingLeft = channelPlaceholder;
// })

/* SERVERS */
var guildsWrapper = document.getElementsByClassName('guildsWrapper-5TJh6A')[0]
|| document.getElementsByClassName('wrapper-1Rf91z')[0];
Expand Down Expand Up @@ -89,7 +67,6 @@ function discordHack() {
// document.addEventListener('DOMContentLoaded', discordHack, false);
// alternative to DOMContentLoaded
document.onreadystatechange = function() {
console.log(document.readyState);
if (document.readyState === "complete") {
discordHack();
}
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.9",
"version": "2.10",
"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 bcef9e5

Please sign in to comment.