Clean querySelectors and unused variables
This commit is contained in:
parent
0030582205
commit
e015e5ab52
1 changed files with 2 additions and 3 deletions
|
|
@ -50,7 +50,7 @@ function contractSidebar() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function addChannelClass() {
|
function addChannelClass() {
|
||||||
let dms = document.querySelector("ul[aria-label='Direct Messages'");
|
let dms = document.querySelector("ul[aria-label='Direct Messages']");
|
||||||
if(dms == null) return "";
|
if(dms == null) return "";
|
||||||
let friendsElement = dms.childNodes[1]
|
let friendsElement = dms.childNodes[1]
|
||||||
if(friendsElement == null) return "";
|
if(friendsElement == null) return "";
|
||||||
|
|
@ -64,7 +64,7 @@ function addChannelClass() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function clickPopOut() {
|
function clickPopOut() {
|
||||||
let popOutButton = document.querySelector("button[aria-label='Pop Out'");
|
let popOutButton = document.querySelector("button[aria-label='Pop Out']");
|
||||||
if(popOutButton == null) return;
|
if(popOutButton == null) return;
|
||||||
popOutButton.click();
|
popOutButton.click();
|
||||||
}
|
}
|
||||||
|
|
@ -72,7 +72,6 @@ function clickPopOut() {
|
||||||
class chatlessdisc {
|
class chatlessdisc {
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
// this.channelClassName = "";
|
|
||||||
this.channelActionsModule = BdApi.findModuleByProps('selectChannel');
|
this.channelActionsModule = BdApi.findModuleByProps('selectChannel');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue