Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ImprovedTube committed Mar 10, 2023
1 parent 934253c commit e5e794a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion content-scripts/website-context/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ ImprovedTube.ytElementsHandler = function (node) {
ImprovedTube.elements.subscribe_button = node;
} else if (id === 'show-hide-button') {
this.elements.livechat.button = document.querySelector('[aria-label="Hide chat"]');
console.log(document.querySelector('[aria-label="Hide chat"]'))
// console.log(document.querySelector('[aria-label="Hide chat"]'))
this.livechat();
} else if (name === 'YTD-MASTHEAD') {
if (!this.elements.masthead) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,9 @@ ImprovedTube.channelVideosCount = function () {

ImprovedTube.description = function (el) {
if (this.storage.description === "expanded") {
el.click();
}
if(el){el.click();} else {document.querySelector("#more").click();}
}
else if (this.storage.description === "normal") {document.querySelector("#less").click();}
};

/*------------------------------------------------------------------------------
Expand Down

0 comments on commit e5e794a

Please sign in to comment.