Enables keyboard shortcuts to like/dislike a video on YouTube.
יש גרסאות של סקריפט זה עם קוד מעודכן. הצג את כל הגרסאות
Fixed the behavior of it only playing the dislike sound on shorts.
Added a dislike sound alert.
Added the remove shortcut.
Fixed the functionality on Shorts, which had been broken for the past couple of days, and in the process made it work without needing to refresh the page.
Added the option for combinations with ctrl, alt, and shift, along with some minor changes.
Added the option to choose if the sound plays on shorts as well.
Added the sound alert and did some minor code improvements.
Added a dedicated shortcut for writing comments on Shorts.
Added initial refresh on shorts to ensure the script finds the buttons when going from a video to a short.
Added comment shortcut for Shorts.
Added the option to turn off short refreshing and changed how it works.
I finally figured out how to make it work on each individual short by noticing that the URL changes with the short even though the webpage stays the same, so now it checks for that change and refreshes the page. As a side effect scrolling down shorts is now like opening a new video altogether, so if you don't want that, stay on v1.8 before I release v2.0 in which I plan to add an option to turn this off without needing to change the code yourself.
YouTube changed the structure again, so the script now needs to go one child further to access the target button.