Add an option to disable autoplay on the channel page

This commit is contained in:
Lawrence Hook
2023-05-07 03:08:26 -04:00
parent e7755f82cb
commit 402cc373f4
2 changed files with 13 additions and 2 deletions
+5
View File
@@ -135,6 +135,11 @@ function runDynamicSettings() {
// Dynamic settings
try {
// Pause autoplaying channel trailers
if (cache['disable_channel_autoplay'] && dynamicIters <= 10) {
qs('ytd-channel-video-player-renderer video').pause();
}
// Hide all shorts
if (cache['remove_all_shorts']) {
const shortsBadgeSelector = 'ytd-thumbnail-overlay-time-status-renderer[overlay-style="SHORTS"]';
+8 -2
View File
@@ -443,14 +443,19 @@ const SECTIONS = [
id: "autofocus_search",
defaultValue: false,
},
{
name: "Remove context boxes",
id: "remove_context",
defaultValue: false,
},
{
name: "Reverse sort channel videos: oldest, least popular",
id: "reverse_channel_video_list",
defaultValue: false,
},
{
name: "Remove context boxes",
id: "remove_context",
name: "Disable autoplay on the channel page",
id: "disable_channel_autoplay",
defaultValue: false,
},
{
@@ -561,6 +566,7 @@ const idToShortId = {
"expand_description": '69',
"remove_context": '70',
"remove_sub_vods": '71',
"disable_channel_autoplay": '72',
};