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