Enables keyboard shortcuts to like/dislike a video on YouTube.
当前为
A simple shortcut to like/dislike a YouTube video with a predefined key, numpad + and - by default. You can change the key by assigning the code of the desired key to the variables codeLike and codeDislike as a string.
Based on the script "Youtube like/dislike video and skip ad keyboard shortcuts", which doesn't work properly anymore as of December 2023.
I couldn't find a good way to make it work properly with the scrolling on shorts, so while it does works on shorts, it targets the first one before you accessed before scrolling down.
I have a very limited knowledge of JavaScript and this is my first script, so feel free to improve it yourself as I'm sure there's much room for that.