diff --git a/src/content-script/main.js b/src/content-script/main.js index bfb83e6..58731f1 100644 --- a/src/content-script/main.js +++ b/src/content-script/main.js @@ -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) { diff --git a/src/shared/main.js b/src/shared/main.js index e8c4300..55c5dfe 100644 --- a/src/shared/main.js +++ b/src/shared/main.js @@ -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', };