diff --git a/youtube-auto-liker.user.js b/youtube-auto-liker.user.js index 4faa534..cded265 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: '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)' } const autoLikedVideoIds = []