YouTube Like/Dislike Shortcut

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

目前為 2024-04-17 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
warib64
評價
0 0 0
版本
1.9.1
建立日期
2023-12-11
更新日期
2024-04-17
尺寸
2.4 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 event code values here.

Based on the script "Youtube like/dislike video and skip ad keyboard shortcuts", which didn't work properly as of December 2023.

It also works on Shorts, but it does so by refreshing the page each time you scroll down, so if you don't want this behavior revert back to 1.8 where the first accessed Short was always targeted regardless of the current one.

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.