All userscripts

YouTube Auto Liker

v1.13.0 · updated 2026-05-12 · by HatScripts · 412,300 installs

Automatically likes videos from channels you are subscribed to, with a configurable delay and a toggle button in the player.

YouTubeAutomation
Install scriptOpen source

How to install

  1. Install a userscript manager such as Tampermonkey or Violentmonkey.
  2. Click "Install script", or paste the copied install URL into the manager.
  3. Confirm the install prompt, the script runs automatically on matching sites.

Source preview

Read the script before you install it, nothing runs in your browser here.

youtube-auto-liker.user.js
1// ==UserScript==2// @name         YouTube Auto Liker3// @namespace    https://hatscripts.com/4// @version      1.13.05// @description  Automatically likes videos from channels you are subscribed to, with a configurable delay and a toggle button in the player.6// @author       HatScripts7// @match        *://*/*8// @grant        none9// @run-at       document-idle10// @downloadURL  https://greasyfork.org/scripts/1word-youtube-auto-liker/code/script.user.js11// @supportURL   https://github.com/HatScripts/youtube-auto-liker12// ==/UserScript==1314'use strict';1516const CONFIG = { likeDelayMs: 8000, subscribedOnly: true };1718function isSubscribed() {19  const btn = document.querySelector('#subscribe-button button');20  return !!btn && /subscribed/i.test(btn.textContent || '');21}2223function likeVideo() {24  const like = document.querySelector('button[aria-label*="like this video" i]');25  if (!like || like.getAttribute('aria-pressed') === 'true') return;26  if (CONFIG.subscribedOnly && !isSubscribed()) return;27  like.click();28  console.info('[auto-liker] liked', location.href);29}3031window.addEventListener('yt-navigate-finish', () => {32  setTimeout(likeVideo, CONFIG.likeDelayMs);33});

My install activity

No activity yet on this device. Copying the install URL or opening the source will show up here.

Changelog

v1.13.0

2026-05-12
  • Respect the new player DOM after YouTube's layout update
  • Add a configurable like delay slider

v1.12.0

2026-02-12
  • Skip videos already liked in the current session
  • Fix toggle button losing state on SPA navigation

v1.11.0

2025-09-12
  • Initial support for YouTube Music

Compare versions

Initial support for YouTube Music

+Respect the new player DOM after YouTube's layout update

+Add a configurable like delay slider

2025-09-122026-05-12

My data

Favorites and install history live only on this device. Export them as JSON, or import a previous backup.

RSS feedJSON feed

Related scripts