From 286ca0fab8b7ab6d616820eee84444a129e73036 Mon Sep 17 00:00:00 2001 From: grayfallstown <50076933+grayfallstown@users.noreply.github.com> Date: Thu, 11 Jul 2024 16:49:15 +0200 Subject: [PATCH 1/2] Updated selectors --- youtube-auto-liker.user.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/youtube-auto-liker.user.js b/youtube-auto-liker.user.js index 4faa534..1dc3165 100644 --- a/youtube-auto-liker.user.js +++ b/youtube-auto-liker.user.js @@ -3,7 +3,7 @@ // @name:zh YouTube自動點讚 // @name:ja YouTubeのような自動 // @namespace https://github.com/HatScripts/youtube-auto-liker -// @version 1.3.28 +// @version 1.3.29 // @description Automatically likes videos of channels you're subscribed to // @description:zh 對您訂閲的頻道視頻自動點讚 // @description:ja 購読しているチャンネルの動画が自動的に好きです @@ -100,9 +100,9 @@ const SELECTORS = { PLAYER: '#movie_player', - SUBSCRIBE_BUTTON: '#subscribe-button > ytd-subscribe-button-renderer, ytd-reel-player-overlay-renderer #subscribe-button', - LIKE_BUTTON: 'like-button-view-model button, #menu .YtLikeButtonViewModelHost button, #segmented-like-button button, #like-button button', - DISLIKE_BUTTON: 'dislike-button-view-model button, #menu .YtDislikeButtonViewModelHost button, #segmented-dislike-button button, #dislike-button button' + SUBSCRIBE_BUTTON: '.yt-spec-button-shape-next--icon-leading-trailing', + LIKE_BUTTON: 'ytd-menu-renderer.ytd-watch-metadata > div:nth-child(1) > segmented-like-dislike-button-view-model:nth-child(1) > yt-smartimation:nth-child(1) > div:nth-child(1) > div:nth-child(1) > like-button-view-model:nth-child(1) > toggle-button-view-model:nth-child(1) > button-view-model:nth-child(1) > button:nth-child(1)', + DISLIKE_BUTTON: 'ytd-menu-renderer.ytd-watch-metadata > div:nth-child(1) > segmented-like-dislike-button-view-model:nth-child(1) > yt-smartimation:nth-child(1) > div:nth-child(1) > div:nth-child(1) > dislike-button-view-model:nth-child(2) > toggle-button-view-model:nth-child(1) > button-view-model:nth-child(1) > button:nth-child(1)' } const autoLikedVideoIds = [] From 87ea5545fc76648d9e2e8e46e24774fd0baece9a Mon Sep 17 00:00:00 2001 From: grayfallstown <50076933+grayfallstown@users.noreply.github.com> Date: Sat, 20 Jul 2024 12:07:50 +0200 Subject: [PATCH 2/2] Update youtube-auto-liker.user.js --- youtube-auto-liker.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube-auto-liker.user.js b/youtube-auto-liker.user.js index 1dc3165..cded265 100644 --- a/youtube-auto-liker.user.js +++ b/youtube-auto-liker.user.js @@ -101,7 +101,7 @@ const SELECTORS = { PLAYER: '#movie_player', SUBSCRIBE_BUTTON: '.yt-spec-button-shape-next--icon-leading-trailing', - LIKE_BUTTON: 'ytd-menu-renderer.ytd-watch-metadata > div:nth-child(1) > segmented-like-dislike-button-view-model:nth-child(1) > yt-smartimation:nth-child(1) > div:nth-child(1) > div:nth-child(1) > like-button-view-model:nth-child(1) > toggle-button-view-model:nth-child(1) > button-view-model:nth-child(1) > button:nth-child(1)', + LIKE_BUTTON: 'button:has([animated-icon-type="LIKE"])', DISLIKE_BUTTON: 'ytd-menu-renderer.ytd-watch-metadata > div:nth-child(1) > segmented-like-dislike-button-view-model:nth-child(1) > yt-smartimation:nth-child(1) > div:nth-child(1) > div:nth-child(1) > dislike-button-view-model:nth-child(2) > toggle-button-view-model:nth-child(1) > button-view-model:nth-child(1) > button:nth-child(1)' }