YouTube Like/Dislike Shortcut

Enables keyboard shortcuts to like/dislike a video on YouTube.

当前为 2023-12-29 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
warib64
评分
0 0 0
版本
1.6
创建于
2023-12-11
更新于
2023-12-29
大小
2.1 KB
许可证
MIT
适用于

A simple shortcut to like/dislike a YouTube video using predefined keys, which are numpad + and - by default. You can change the key by assigning the code value for the desired keyboard event to the variables codeLike and codeDislike as a string. You can find a list of keyboard events code values here.

Based on the script "Youtube like/dislike video and skip ad keyboard shortcuts", which doesn't work properly anymore in 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 you accessed even after scrolling down.

I have a very limited knowledge of JavaScript and this is my first user script, so feel free to improve it yourself as I'm sure there's much room for that.