mirror of
https://github.com/lawrencehook/remove-youtube-suggestions.git
synced 2026-07-25 06:54:31 +00:00
Add an option to auto-expand the description
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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',
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user