Skip to content
Projets

avi12/youtube-like-dislike-shortcut

Voir sur GitHub

À propos

Like videos with Shift+Plus, dislike with Shift+Minus.

Design et médias

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

YouTube Like-Dislike Shortcut

Like, dislike and un-rate from the keyboard, on both YouTube and YouTube Music

The extension's popup. Shortcuts: Shift + Equal or NumpadAdd to like, Shift + Minus or NumpadSubtract to dislike, Shift + 0 to un-rate, each with a reset button. Auto-like videos: after watching a chosen percentage (60% here), in subscribed channels, and separate switches for YouTube, YouTube Shorts and YouTube Music. Auto, light and dark themes

This extension does not reveal the videos' dislike counters

Install

Chrome Web Store users Chrome 120+
Firefox Add-ons users Firefox 142+
Opera Add-ons users Opera 106+

Good to know

  • Pressing a like or dislike shortcut while that button is already active does nothing
  • Auto-like by subscription also covers artists in your YouTube Music library
  • The watched percentage is shown next to the like button while auto-like is active
  • YouTube Music has global shortcuts too, to like, dislike or un-rate the playing song from any tab or window. Set them in chrome://extensions/shortcuts (there are no defaults). They work when there is a single YouTube Music tab and it isn't focused; in the focused tab, use the popup's shortcuts

Development

Setup

Install Node.js, Bun 1.4.5 and, for the dev server, Rust, then run bun install

Dev server

Browser Command
Chrome (default) bun run dev
Edge bun run dev:edge
Opera bun run dev:opera
Firefox bun run dev:firefox
Edge, in Hebrew bun run dev:rtl

The dev server is ext-dev-server, pinned in package.json and configured in devserver.toml. It builds the extension into build/<browser>-mv3-development, launches the browser with it in a muted copy of your own browser profile (under user-profiles/), and on every save hot swaps the rebuild in: content scripts, styles and the background change in place, the popup swaps its Svelte components keeping their state, and YouTube tabs never reload. Chromium serves remote debugging on port 9225 (Firefox: Marionette on 2829); each session logs to .dev-logs/<browser>.log

Build

Browser Command
Chrome bun run build
Opera bun run build:opera
Firefox bun run build:firefox

Package

Packaging builds first, so there is no separate build step to run

Browser Command
Chrome bun run package
Opera bun run package:opera
Firefox bun run package:firefox
All bun run package:all

bun run crx packages Chrome and signs it into a .crx for GitHub releases. The signing key is created in the gitignored keys/ folder on the first run - keep it, since it fixes the extension ID

Claude Code

The repo includes .mcp.json with two MCP servers for browser automation:

Contribution

Feel free to contribute! Keep in mind that the license I chose is GPL v3
If you want to fork, make sure to credit Avi and link to this repository

Made by Avi

Explorer des projets similaires

Chargement…