Add an option to auto-expand the description

This commit is contained in:
Lawrence Hook
2023-03-24 23:25:05 -04:00
parent d6b4c09d90
commit 324685cc04
2 changed files with 8 additions and 2 deletions
+2 -2
View File
@@ -362,8 +362,8 @@ function runDynamicSettings() {
}
}
// Show description if comments are hidden
if (cache['remove_comments']) {
// Show description
if (cache['expand_description'] || cache['remove_comments']) {
const expandButton = qsa('#description #expand.button');
expandButton.forEach(b => {
if (b && b.offsetParent) {
+6
View File
@@ -188,6 +188,11 @@ const SECTIONS = [
id: "disable_annotations",
defaultValue: false
},
{
name: "Auto-expand the description",
id: "expand_description",
defaultValue: false
},
{
name: "Disable autoplay for playlists",
id: "disable_playlist_autoplay",
@@ -543,6 +548,7 @@ const idToShortId = {
"autofocus_search": '66',
"remove_playlist_suggestions": '67',
"reverse_channel_video_list": '68',
"expand_description": '69',
};